Home › Developer Tools › MD5 Hash Generator

MD5 Hash Generator

Type or paste text to see its MD5 hash instantly, hash a whole list line by line, or drop files of any size to get their MD5 checksums. Everything is computed in your browser, so nothing is uploaded.

Last updated:

0 characters · 0 bytes
Advertisement
Advertisement

How to use the MD5 Hash Generator

  1. Choose Text or Files. Type or paste text, or drop one or more files onto the box.
  2. Read the MD5 hash: text is hashed as you type, files start hashing as soon as you add them.
  3. Tick Hash each line to get a separate MD5 for every line of a list, for example emails or IDs.
  4. Paste an expected checksum in the Verify box to see at once whether it matches.
  5. Copy a hash, switch to uppercase, or press Download to save the results as an .md5 file.

MD5 test vectors

These values come from the MD5 specification (RFC 1321) and let you check that any MD5 tool or library works correctly. Type the input above (without quotes) and compare.

InputMD5 hash
"" (empty)d41d8cd98f00b204e9800998ecf8427e
"a"0cc175b9c0f1b6a831c399e269772661
"abc"900150983cd24fb0d6963f7d28e17f72
"message digest"f96b697d7cb7938d525a2f31aaf161d0
"abcdefghijklmnopqrstuvwxyz"c3fcd3d76192e4007dfb496cca67e13b
"The quick brown fox jumps over the lazy dog"9e107d9d372bb6826bd81d3542a419d6

Adding a full stop to the last sentence ("…lazy dog.") gives e4d909c290d0fb1ca068ffaddf22cbd0: one extra byte changes the whole hash, which is called the avalanche effect.

What MD5 is still good for

  • Download checks: many mirrors and older projects publish MD5 checksums to detect a corrupted or incomplete download.
  • Finding duplicates: files with different MD5 hashes are certainly different, so MD5 is a fast way to spot duplicate photos or backups.
  • Cache keys and ETags: a short, stable fingerprint of content for caching, deduplication and change detection.
  • Gravatar and legacy APIs: some services identify an item by the MD5 of a normalised string (for example a trimmed, lowercase email address). Bulk mode with Trim spaces is handy here.

Do not use MD5 to store passwords, sign documents or prove that a file was not tampered with by an attacker. Collisions can be created in seconds on a laptop. Use SHA-256 for integrity and bcrypt or Argon2 for passwords.

MD5 on the command line

SystemFileText (no trailing newline)
Linuxmd5sum file.zipprintf '%s' 'abc' | md5sum
macOSmd5 file.zipmd5 -s 'abc'
Windows PowerShellGet-FileHash file.zip -Algorithm MD5(hash a file instead)
Windows CMDcertutil -hashfile file.zip MD5(hash a file instead)

Beware of echo 'abc' | md5sum: echo adds a newline, so it prints the MD5 of "abc\n" (0bee89b07a248e27c83fc3d5951213c1), not of "abc". The .md5 file this tool downloads uses the same format as md5sum, so you can check files later with md5sum -c checksums.md5.

How MD5 works

MD5 was designed by Ronald Rivest in 1991. It pads the message so its length is 64 bits short of a multiple of 512 bits, appends the original length as a 64-bit number, and then processes the data in 512-bit blocks. Each block passes through four rounds of 16 steps that mix it into a 128-bit state of four 32-bit words using additions, bit rotations and the non-linear functions F, G, H and I, with constants taken from the sine function. The final state, written in little-endian byte order, is the hash. Practical collisions were published by Xiaoyun Wang and colleagues in 2004, and in 2012 the Flame malware used an MD5 collision to forge a Microsoft code-signing certificate.

Frequently asked questions

What is an MD5 hash?

MD5 (Message-Digest Algorithm 5, RFC 1321) turns any input into a 128-bit value, written as 32 hexadecimal characters. The same input always gives the same hash and a one-character change gives a completely different one, which makes MD5 handy for checksums and for spotting duplicate files.

Is MD5 secure?

No, not for security. Researchers can create two different files with the same MD5 hash (a collision), so MD5 must not be used for digital signatures, certificates or password storage. It is still fine for detecting accidental corruption, cache keys and matching checksums that a website publishes.

Can an MD5 hash be decrypted?

No. A hash is not encryption and cannot be reversed. Websites that claim to 'decrypt' MD5 only look the hash up in huge tables of hashes of common words and passwords, which is why short or common inputs can be found.

Why is my MD5 different from another tool?

MD5 works on bytes, so encoding and invisible characters matter. This tool hashes the text as UTF-8, exactly as it is in the box, including spaces and line breaks. A trailing newline (as added by echo on the command line), Windows CRLF line endings or a different encoding change the hash.

How do I check a file's MD5 on my computer?

On Linux run md5sum file, on macOS run md5 file, and on Windows run certutil -hashfile file MD5 in Command Prompt or Get-FileHash file -Algorithm MD5 in PowerShell. The result should match the hash shown here.

Is there a file size limit?

No fixed limit. Files are read in small chunks, so even multi-gigabyte files can be hashed without loading them into memory at once. Very large files simply take longer.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Hash GeneratorGenerate MD5, SHA-1, SHA-256 and SHA-512 hashes of text or files.Base64 Encoder DecoderEncode or decode Base64 text and files, and make data URIs.File Info ViewerCheck file size, type, date and MD5/SHA hashes.UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Bcrypt Hash Generator & CheckerCreate bcrypt password hashes and check a password against a hash.CRC32 Checksum CalculatorCalculate CRC-32, CRC-32C, CRC-16 and Adler-32 checksums of text or large files.HMAC GeneratorGenerate and verify HMAC signatures with SHA-256, SHA-512, SHA-1 or MD5.SHA-256 Hash GeneratorSHA-256 and HMAC-SHA256 hashes of text, lines or files, in hex or Base64.Password GeneratorCreate strong passwords and passphrases.URL Encoder DecoderPercent-encode or decode URLs, query strings and form data.HTML Entity Encoder / DecoderEscape and unescape HTML entities, named or numeric.Binary TranslatorConvert text to binary, hex, octal and back.JWT DecoderDecode JSON Web Tokens, read the claims and expiry, and verify HS256 signatures.JWT GeneratorCreate and sign HS256, HS384 or HS512 JSON Web Tokens in your browser and verify them.Password Strength CheckerSee how strong a password really is, how long it takes to crack and how to improve it.Caesar CipherEncode and decode Caesar shift ciphers and crack unknown shifts with a ranked brute force.Vigenère CipherEncrypt and decrypt Vigenère and Autokey ciphers, and crack unknown keys with frequency analysis.Atbash CipherEncode and decode Atbash ciphers (A↔Z, B↔Y) in Latin or Hebrew, with a live letter mapping table.ASCII TableFull ASCII code chart 0–255 in decimal, hex, octal, binary and HTML, with search and copy.Unicode Character LookupFind Unicode characters by name or code point and copy them with UTF-8, HTML and code escapes.Punycode ConverterConvert international domain names, emails and URLs between Unicode and xn-- Punycode, in bulk.JSON Escape / UnescapeEscape text for a JSON string, unescape \n and \" back to text, or stringify a whole object.Binary to HexConvert binary to hex instantly with steps and signed mode.Hex to BinaryConvert hex to binary instantly with steps and signed mode.Binary CalculatorAdd, subtract, multiply, divide, AND, OR, XOR and shift binary numbers with decimal values.Hex CalculatorHexadecimal + − × ÷ and AND, OR, XOR, NOT, shifts with decimal and binary equivalents.Base32 Encoder / DecoderEncode and decode Base32 (RFC 4648), Base32hex, Crockford and z-base-32 from text, hex or files.Base58 Encoder / DecoderEncode and decode Base58 and Base58Check (Bitcoin alphabet) from text or hex, with checksum verification.Unicode Escape / UnescapeConvert text to \uXXXX, \u{...}, \x, &#...; or CSS escapes and decode them back.File Hash CheckerGet MD5, SHA-1, SHA-256 and SHA-512 checksums of files and verify them against a hash.TOTP GeneratorGenerate 2FA one-time codes from a secret key, create otpauth QR codes and verify codes.RSA Key GeneratorGenerate 2048, 3072 or 4096-bit RSA key pairs as PEM, PKCS#1, JWK or OpenSSH, locally.SSL Certificate DecoderDecode PEM SSL/X.509 certificates: subject, issuer, expiry, SANs, key and fingerprints.Text Encryption ToolEncrypt and decrypt text with a password using AES-256-GCM, entirely in your browser.Argon2 Hash GeneratorHash passwords with Argon2id, Argon2i or Argon2d and verify them against an encoded hash.Base64 to PDFDecode a Base64 string to a PDF with preview and download, or encode a PDF to Base64.Bitwise CalculatorCalculate AND, OR, XOR, NOT and bit shifts at 8–64 bits with a bit grid and all bases.CSR GeneratorCreate a certificate signing request (CSR) and private key with SANs, RSA or ECDSA, in your browser.Self-Signed Certificate GeneratorCreate a self-signed SSL certificate and key for localhost or dev servers, as PEM or PFX.SHA-1 Hash GeneratorSHA-1 and HMAC-SHA1 of text or files in hex or Base64, plus Git blob hashes and verify.SRI Hash GeneratorCreate Subresource Integrity hashes (sha256/384/512) and ready <script> or <link> tags.SSH Key GeneratorGenerate Ed25519 or RSA SSH key pairs in your browser: OpenSSH public key plus private key.String Escape / UnescapeEscape or unescape strings for JavaScript, Java, C#, Python, C, SQL, regex, CSV and shell.UTF-8 Encoder / DecoderConvert text to UTF-8 bytes in hex, decimal, binary, \x or % and decode bytes back to text.UUID Decoder & ValidatorDecode any UUID: version, variant, v1/v6/v7 timestamp and MAC node, plus bulk validation.Base64 to FileDecode Base64 or a data URI to a downloadable file; detects the real file type and previews it.File Encryption ToolEncrypt and decrypt any file with a password using AES-256-GCM, entirely in your browser.Passphrase GeneratorMake strong, memorable diceware passphrases from a 7,776-word list, with entropy in bits.CSR DecoderDecode a PEM certificate signing request: subject, SANs, key size, signature and CA readiness checks.Enigma Machine SimulatorEncrypt and decrypt with a virtual Enigma I, M3 or M4: rotors, rings, plugboard and lampboard.Hex Opacity CalculatorConvert opacity percent to a 2-digit HEX alpha code and full #RRGGBBAA color, with a 0-100% table.Playfair CipherEncrypt and decrypt Playfair ciphers from a keyword, with the 5x5 key square and every digraph step.Pwned Password CheckerCheck if a password appeared in data breaches; only 5 characters of its SHA-1 hash are sent.RSA Encryption ToolEncrypt text with an RSA public key and decrypt it with the private key using RSA-OAEP in your browser.SAML DecoderDecode SAMLRequest and SAMLResponse messages to readable XML, attributes and validity times.SSL Certificate ConverterConvert SSL certificates and keys between PEM, DER, PFX/P12 and P7B in your browser.Checksum CalculatorCompute 8-bit sum, two's complement LRC, XOR/BCC, NMEA, Fletcher and Internet checksums of bytes.PBKDF2 Hash GeneratorDerive PBKDF2 keys from a password, salt and iteration count with SHA-1, SHA-256 or SHA-512.Protobuf DecoderDecode raw Protocol Buffers hex or Base64 without a schema, or add a .proto for field names.XML Escape / UnescapeEscape & < > " ' for XML text and attributes, unescape entities back, or wrap text in CDATA.Binary Search Tree VisualizerInsert, delete and find in BST, AVL and red-black trees with animated rotations and traversals.MongoDB ObjectId to TimestampDecode a MongoDB ObjectId to its creation date, or build ObjectIds from dates for range queries.PGP Encrypt / DecryptEncrypt, decrypt, sign and verify PGP messages with your armored keys, entirely offline.PGP Key GeneratorGenerate an OpenPGP key pair (Curve25519, NIST ECC or RSA) with passphrase and expiry, offline.Quoted-Printable Encoder / DecoderEncode or decode quoted-printable email text (MIME) with UTF-8 and 76-character soft line breaks.
See all 65 Encoders, Hashes & Crypto →