Cipher Utility

MD5 Hash Generator

H-01

MD5 of any text or file, with a checker for a hash you already have. Runs in your browser; nothing is uploaded.

Case:

128 bits, 32 hex characters

How to check a file

  1. Click File in the middle column.
  2. Drop the file into the box.
  3. Paste the published MD5 into Compare with.
  4. A green bar means the file is intact.

Worked example

One capital letter changes everything:

hello

5d41402abc4b2a76b9719d911017c592

Hello

8b1a9953c4611296a827abf8c47804d7

Further reading

Cipher Utility reference card Catalog no. H-01

What an MD5 hash is

MD5 is a hash function designed by Ronald Rivest in 1991 and published as RFC 1321. It turns any input, a single word or a whole disk image, into a 128-bit value, usually written as 32 hexadecimal characters. The same input always gives the same hash, and any change to the input, even one bit, gives a completely different one.

InputMD5
(empty)d41d8cd98f00b204e9800998ecf8427e
hello5d41402abc4b2a76b9719d911017c592
password5f4dcc3b5aa765d61d8327deb882cf99
The quick brown fox jumps over the lazy dog9e107d9d372bb6826bd81d3542a419d6

The empty-input hash is worth knowing: if a file's MD5 is d41d8cd98f00b204e9800998ecf8427e, the file is empty.

Can MD5 be decrypted?

No. A hash is not encrypted text, so there is no key and nothing to decrypt. MD5 throws away information by design: endless different inputs map to the same 32 characters.

What MD5 "decrypt" sites do is look your hash up in a database of hashes they computed in advance. The hash of "password" above is in every such list, so it is found instantly. A long random string is not, and cannot be recovered. That is also why MD5 must not be used to store passwords.

Is MD5 secure?

Not against an attacker. In 2004 researchers showed how to build two different inputs with the same MD5 hash, a collision, and the attacks have become much faster since. In 2012 the Flame malware used an MD5 collision to fake a Microsoft code-signing certificate.

MD5 still works well for what it is mostly used for today: noticing accidental changes, such as a download that got cut off or a file that was corrupted on disk. For anything where someone might change data on purpose, use SHA-256. Our article why MD5 is not secure goes deeper.

MD5 on your own computer

To hash a large file without a browser, use the built-in tools:

macOS: md5 file.zip Linux: md5sum file.zip Windows: certutil -hashfile file.zip MD5 PowerShell: Get-FileHash file.zip -Algorithm MD5

The checker above accepts a line copied straight from md5sum, with the file name after the hash, and ignores letter case.

Questions about MD5

Can an MD5 hash be decrypted?

No. MD5 is a one-way function, and the hash does not contain the original text. Sites that claim to decrypt MD5 look the hash up in huge lists of hashes they computed in advance from common words and leaked passwords. If the original was short or common, it is probably in such a list. If it was long and random, nobody can recover it.

How do I check the MD5 of a downloaded file?

Click File above, drop the file in, and paste the MD5 the publisher lists into Compare with. A green bar means the file matches. The file is read by your browser and never leaves your computer.

Is MD5 still secure?

Not for security. Since 2004 researchers can make two different inputs with the same MD5 hash, and attackers have used this to forge a code-signing certificate. MD5 is still fine for spotting accidental damage, such as a broken download, but use SHA-256 when someone might tamper with the data on purpose.

Should I store passwords as MD5?

No. MD5 is so fast that an attacker can test billions of guesses per second, and unsalted hashes of common passwords are already in lookup lists. Use a slow, salted password hash such as bcrypt.

Why does my MD5 differ from another tool?

The input is almost certainly different. A trailing space or line break, Windows line endings, or a different text encoding all change the hash completely. This tool hashes text as UTF-8 exactly as typed.

Is my text or file sent to a server?

No. Hashing runs in your browser with JavaScript. Neither the text nor the file is uploaded.