MD5 Generator

Share calculator:
Embed this tool:

Enter any text and the tool returns its MD5 digest, a 32-character hexadecimal fingerprint. The guide explains what the value is good for and where MD5 should no longer be used.

What is MD5?

MD5 (Message-Digest algorithm 5) is a hash function designed by Ronald Rivest and published in 1992 as RFC 1321, as the successor to MD4. It reads a message of any length and produces a fixed 128-bit value, written as 32 hexadecimal characters. The same input always gives the same digest, and the process only runs one way: you cannot recover the text from its hash.

Internally MD5 pads the message to a multiple of 64 bytes, then processes it in 64-byte blocks. Each block is mixed into four 32-bit state words through 64 steps of bitwise operations, additions and rotations. The four words, written out one after another, are the digest.

These reference values, from the RFC and from common test suites, are handy for checking any MD5 tool:

InputMD5 digest
(empty message)d41d8cd98f00b204e9800998ecf8427e
a0cc175b9c0f1b6a831c399e269772661
abc900150983cd24fb0d6963f7d28e17f72
message digestf96b697d7cb7938d525a2f31aaf161d0
abcdefghijklmnopqrstuvwxyzc3fcd3d76192e4007dfb496cca67e13b

The empty message has a well-defined digest, but this tool needs at least one character, so an empty box shows no result.

How to use the MD5 generator

  1. Type or paste your text into the String box.
  2. Press Calculate. The hash appears in the results table with a button to copy it.
  3. Compare it with the checksum you were given, or keep it as a fingerprint of that exact text.

What is hashed. The tool hashes the UTF-8 bytes of the text exactly as you typed it. Nothing is trimmed, normalised or added, and the digest is shown in lower-case hexadecimal.

  • Every character counts. Leading and trailing spaces, tabs, capital letters and blank lines all change the digest.
  • UTF-8 encoding. A plain ASCII character is one byte, é is two (c3 a9), 日 is three (e6 97 a5) and an emoji such as 😀 is four (f0 9f 98 80).
  • Line breaks are kept as they arrive. A browser text box stores each line break as a single line-feed character (LF, byte 0a), and text pasted with Windows CR LF line endings normally arrives as LF too. The tool does not convert it to anything else, so the digest equals what printf piped into md5sum gives for the same text.
  • A final line break counts. Pressing Enter after the last word adds one more byte, which is why printf hello | md5sum and printf 'hello\n' | md5sum differ.
Each row can be reproduced on the command line, for example with printf 'a\nb' | md5sum.
You typeBytes hashed (hex)MD5 digest
hello68 65 6c 6c 6f5d41402abc4b2a76b9719d911017c592
hello, then Enter68 65 6c 6c 6f 0ab1946ac92492d2347c6235b4d2611184
a, Enter, b61 0a 628cdeb44417f3c26826595d5820cf5700

To get the digest of a file that uses Windows CR LF line endings, hash the file itself with a command-line tool. This page can only hash text the way a browser text box holds it.

A tiny change gives a completely different hash

A good hash function changes about half of its output bits when a single character of the input changes. MD5 still behaves this way for ordinary inputs:

InputMD5 digest
The quick brown fox jumps over the lazy dog9e107d9d372bb6826bd81d3542a419d6
The quick brown fox jumps over the lazy dog.e4d909c290d0fb1ca068ffaddf22cbd0
The quick brown fox jumps over the lazy cog1055d3e698d289f2af8663725127bd4b
the quick brown fox jumps over the lazy dog77add1d5f41223d5582fca736a5cb335

Adding a full stop changes 69 of the 128 bits and swapping dog for cog changes 71, close to the 64 you would expect from two unrelated values. Nothing in the first line hints at the others.

Is MD5 secure?

No. A hash function is meant to make it infeasible to find two different inputs with the same digest (a collision). In 2004 and 2005 researchers led by Xiaoyun Wang showed how to produce MD5 collisions with modest computing power, and the attacks have only become cheaper since. In 2008 a team used a collision to build a forged certificate authority certificate, and the Flame malware abused an MD5 weakness in 2012 to fake Microsoft code-signing certificates. Browsers and certificate authorities no longer accept MD5-signed certificates.

  • Do not use MD5 for digital signatures, certificates or anything where an attacker might choose the input.
  • Never use MD5 to store passwords, with or without a salt. MD5 is built to be fast, and a single graphics card can test many billions of MD5 guesses per second. Passwords need a deliberately slow, salted, purpose-built function such as Argon2, scrypt or bcrypt (PBKDF2 with a high iteration count if those are unavailable).
  • For new general-purpose hashing choose the SHA-256 or SHA-512 hash instead. These are faster than a password hash should be, so the warning about passwords applies to them too.

If you need a strong password for an account, our random password generator creates one. How a service stores that password is a separate question, and the answer is never plain MD5.

Where MD5 is still used

MD5 remains common as a checksum. Download pages often publish an MD5 value next to a file; you hash your copy and compare. A match tells you the file was not damaged by a transfer error. It does not prove the file is safe: someone who can swap the file can usually swap the published checksum too, and a deliberate attacker can craft a different file with the same MD5.

Other legitimate uses are non-security ones: spotting duplicate files, building cache keys, and generating short stable identifiers where nobody is trying to forge a collision. Older systems also use MD5 in ETag headers and in legacy protocols. If you are comparing several algorithms, the SHA-1 generator is another legacy hash with the same caveats.

Frequently asked questions

What does an MD5 hash look like?

It is always 32 hexadecimal characters (digits 0-9 and letters a-f), which represents 128 bits. For example, the MD5 of the text 123456 is e10adc3949ba59abbe56e057f20f883e.

Can an MD5 hash be decrypted?

No, MD5 is a hash, not encryption, so there is nothing to decrypt. Short or common inputs can be found by guessing and comparing hashes, which is why lookup tables for common passwords exist. A long, random input cannot be recovered this way.

Is MD5 safe for passwords?

No. MD5 is fast by design, so attackers can test many billions of guesses per second on ordinary graphics hardware, and adding a salt does not change that speed. Passwords need a slow, salted, purpose-built hash such as Argon2, scrypt or bcrypt.

Why does the same text sometimes give a different MD5 elsewhere?

Hashes depend on the exact bytes. The usual causes are a trailing space or line break, a different line ending (files saved on Windows often use CR LF, while this tool hashes a typed line break as the single LF byte), or a different character encoding (this tool uses UTF-8).

Is MD5 the same as a checksum?

It can be used as one. A checksum catches accidental corruption, and MD5 does that well. Unlike a CRC it is also meant to resist tampering, but that property is broken for MD5, so it only guards against accidents.

References

  1. R. Rivest, "The MD5 Message-Digest Algorithm", RFC 1321, 1992
  2. X. Wang and H. Yu, "How to Break MD5 and Other Hash Functions", EUROCRYPT 2005

Cite this calculator and page

If you use this page in your work, you can cite it as:

Reeliy Editorial Team. (2026). MD5 Generator. Reeliy. https://reeliy.com/calculators/md5-online-generator“MD5 Generator.” Reeliy, 2026, https://reeliy.com/calculators/md5-online-generator.