StringMash.com

MD5 generator

The MD5 hash of your text, for checksums and legacy systems.

3 characters
Updates as you type

Show the steps
  1. MD5 of 3 bytes of UTF-8: 128 bits, written as 32 hex digits. The same input always gives the same hash, and any change gives a completely different one.
  2. MD5 is broken for security: practical collisions have been found since 2004. Use it only as a checksum, never for passwords or signatures.
  3. Hashing is one-way: there is no key, and the input can't be worked back out from the hash. For passwords, use a slow, salted function such as bcrypt, scrypt or Argon2 rather than any of these.

Using the generator

Type or paste text and its MD5 hash appears, 32 hex digits. The text is hashed as UTF-8, so the result matches md5sum on a file with the same contents and no trailing newline. Algorithm switches to the SHA family.

MD5 isn't in the browser's Web Crypto API, so this page carries its own implementation, checked against the test suite in RFC 1321, the standard that defines it.

Worked examples

The first two are from RFC 1321's own test suite.
TextMD5
abc900150983cd24fb0d6963f7d28e17f72
message digestf96b697d7cb7938d525a2f31aaf161d0
The quick brown fox jumps over the lazy dog9e107d9d372bb6826bd81d3542a419d6
The quick brown fox jumps over the lazy dog.e4d909c290d0fb1ca068ffaddf22cbd0
(empty)d41d8cd98f00b204e9800998ecf8427e

How MD5 works

MD5 pads the message so its length is 64 bits short of a multiple of 512, then adds the original length as a 64-bit number. It works through the result 512 bits at a time, mixing each block into a 128-bit state of four 32-bit words in four rounds of 16 steps. The final state, written as 32 hex digits, is the hash.

Every bit of the hash depends on every bit of the input. Add a full stop to the fox sentence above and the hash changes completely: 9e107d9d… becomes e4d909c2…. That's what makes a hash useful as a fingerprint, and it's why the same text must be byte for byte the same to give the same hash.

Is MD5 safe?

Not for security. Collisions, two inputs with the same MD5, have been practical since 2004, so MD5 can't vouch that a file or message is genuine, and it's far too fast for passwords. It's still a handy checksum against accidental damage, and it lives on in older systems and APIs. For anything new, use SHA-256; the comparison page has the details.

Questions

Can an MD5 hash be decrypted?

No. It's a hash, not encryption. Sites that "decrypt" MD5 look the hash up in tables of hashes of common inputs.

What's the MD5 of an empty string?

d41d8cd98f00b204e9800998ecf8427e.

Why does my md5sum differ?

echo adds a newline. Use echo -n, or printf, to hash the text alone.

How do I get an MD5 hash in the terminal?

On macOS, md5 -s "abc". On Linux, printf abc | md5sum. For a file, md5 file.zip or md5sum file.zip; in Windows PowerShell, Get-FileHash file.zip -Algorithm MD5. In Python, hashlib.md5(b"abc").hexdigest().

Sources

Added . Last updated and reviewed . What's new