MD5 Generator

This MD5 generator turns any text into its 32-character MD5 hash as you type, and checks it against a checksum you paste.

Hashed in your browser. Your text is not uploaded.

Hashed as UTF-8. A trailing space or line break changes the hash.

Algorithms

How to use the MD5 Generator

  1. Type or paste the text into Text to hash. The MD5 row updates while you type.
  2. Pick Hex, lowercase, Hex, uppercase, or Base64 under Output format.
  3. To check a value from somewhere else, paste it into Compare with. The row shows Match or No match.
  4. Press the copy button on the row to take the hash.

How MD5 works

MD5 was designed by Ronald Rivest and published as RFC 1321 in 1992. It pads the input to a multiple of 512 bits, then runs each 512-bit block through 64 steps that mix it into four 32-bit words. Those four words, 128 bits in all, are the hash. Written in hex, that is 32 characters.

Your text is turned into UTF-8 bytes first, so é and e give different hashes. Browsers have no built-in MD5, so the page loads a small WebAssembly hasher from this site and runs it locally. Nothing is sent to a server.

Examples

InputMD5
abc900150983cd24fb0d6963f7d28e17f72
hello5d41402abc4b2a76b9719d911017c592
Hello8b1a9953c4611296a827abf8c47804d7
empty textd41d8cd98f00b204e9800998ecf8427e

The value for abc is the test vector printed in RFC 1321. One capital letter is enough to change every character of the result, as the hello and Hello rows show.

Limitations

  • MD5 is broken for security. Researchers published practical collisions in 2004, and two different files with the same MD5 can now be made on a laptop. Use it for checksums and cache keys, never for passwords or signatures.
  • The box hashes text you type or paste. It does not read files.
  • A line break at the end of the text changes the hash. hello followed by a newline gives b1946ac92492d2347c6235b4d2611184, the value echo hello | md5sum prints.

Frequently asked questions

Can an MD5 hash be decrypted?

No. MD5 is a one-way function, not encryption. Sites that claim to decrypt MD5 look the hash up in a list of hashes of common words, which only works for short or common inputs.

Is MD5 safe for passwords?

No. It is fast to compute and has known collisions. Store passwords with bcrypt or Argon2, which are slow on purpose. The Bcrypt Generator makes bcrypt hashes.

Why does my MD5 differ from the one in my terminal?

echo adds a newline to the text. Use echo -n, or add the line break in the box, and the two hashes match.

Why is MD5 still used?

It is quick and every system supports it, so it still works for spotting accidental changes, such as a file damaged during a download.

Often used together with MD5 Generator.

  • SHA-256 Generator

    SHA-256 hash of text in hex or Base64, compared with a checksum when you paste one.

  • Hash Generator

    Hashes text with ten algorithms and compares the result with an expected hash.