Skip to content

MD5 Hash Generator - Generate MD5 Checksums Online

MD5 Hash
—

Generate an MD5 Hash

Type or paste text and its MD5 digest appears below as 32 lower-case hex characters, ready to copy. The text is encoded as UTF-8 first, so accented letters and emoji give the same result as hashlib.md5(s.encode()) in Python or crypto.createHash("md5") in Node. Browsers' Web Crypto API does not offer MD5, so this page computes it with a small JavaScript implementation of RFC 1321. Nothing is sent to a server.

Where You Still Meet MD5

  • S3 and other object stores. For a single-part upload, an S3 object's ETag is the hex MD5 of its contents. Multipart uploads have ETags like ...-12, which are an MD5 of the part MD5s, so they will not match a hash of the whole file.
  • HTTP Content-MD5. This header carries the MD5 as Base64, not hex. The 16 bytes are the same, written differently.
  • Download checksums. Older projects and mirrors still publish .md5 files. They catch a truncated or corrupted download, but not a file swapped by someone who can also edit the checksum.
  • Cache keys and deduplication. MD5 is fast and short, which is fine when nobody benefits from forcing a collision.

Checking a File's MD5

This page hashes text. For files, use the built-in command for your system and compare against the published value:

md5sum file.iso              # Linux
md5 file.iso                 # macOS
certutil -hashfile file.iso MD5   # Windows

Why MD5 Cannot Be Decoded

MD5 maps every possible input onto 2128 outputs, so countless inputs share each hash and the original is simply not in there. What does work is guessing: a GPU can try billions of MD5 candidates per second, and lookup tables cover common passwords already. That is why an unsalted MD5 password database is effectively plain text. Store passwords with bcrypt, scrypt or Argon2, and use SHA-256 where you need a hash that resists deliberate collisions. If you need the data back later, use Base64 (no secrecy) or real encryption.

Related Tools

Frequently Asked Questions

How long is an MD5 hash?
128 bits, written as 32 hex characters. The length is the same for one letter or a 4 GB file. The MD5 of "hello" is 5d41402abc4b2a76b9719d911017c592.
Is MD5 secure?
Not against an attacker. Researchers produced MD5 collisions in 2004, and by 2008 had used one to forge a working CA certificate. Collisions can now be generated in seconds on a laptop. It still detects accidental corruption fine, which is why it survives in checksums and ETags.
Why is my MD5 different from md5sum?
echo "text" | md5sum includes the newline that echo adds. Use echo -n "text" | md5sum, or md5 -s "text" on macOS. Windows line endings (\r\n) and stray spaces also change the hash.
Can I decode or reverse an MD5 hash?
No. "MD5 decrypt" sites look the hash up in a database of hashes of known strings. That finds dictionary words and leaked passwords, which is exactly why MD5 must never be used to store passwords. Random or long inputs will not be found.
What is d41d8cd98f00b204e9800998ecf8427e?
The MD5 of an empty input. If you see it in a log or a checksum file, whatever was hashed had zero bytes, often a failed download or an empty request body.