MD5 hash generator

Create an MD5 checksum of text or a file in one step, and check it against another value.

Free, no sign-upRuns in your browserWorks on any device
Preset: MD5 selected, sample text "hello". You can change any setting.Open the full tool →
0
Input Length
0
Hash Length
โ€”
File Status
Input Text Type or paste text to hash
Or upload a file to hash
MD5 Hash
Enter text to generate hash...
Compare Hash

What MD5 is still good for

MD5 was designed by Ron Rivest in 1991 and turns any input into a 32-character fingerprint. It is no longer secure: since 2004 researchers have been able to create two different files with the same MD5 hash. Even so, it is still everywhere as a quick checksum, for example to spot accidental corruption, find duplicate files or match the checksums older download sites publish.

This page opens the Hash Generator with MD5 selected and "hello" already entered, so the result is on screen as soon as the page loads. Replace the text with your own or hash a file instead. If you need protection against deliberate tampering, switch to SHA-256 with one click.

Algorithm facts

Output128 bits, shown as 32 hexadecimal characters
Designed1991, by Ron Rivest
Security statusBroken for security: collisions can be created deliberately
Still fine forDetecting accidental corruption, finding duplicates, cache keys
Built intoWindows: certutil -hashfile file MD5 ยท macOS: md5 file ยท Linux: md5sum file

Example hashes

Every MD5 hash is 32 hexadecimal characters (128 bits), whatever the size of the input. Changing one letter, or adding a full stop, produces a completely different result:

InputMD5 hash
hello5d41402abc4b2a76b9719d911017c592
Hello8b1a9953c4611296a827abf8c47804d7
hello.d94c10e437d18531e122ed0b45badd2a

The hash of empty input is always d41d8cd98f00b204e9800998ecf8427e. If you see that value, nothing was hashed.

Values calculated when this page was built, using UTF-8 text with no trailing newline. Paste any of the inputs above into the tool to check them.

How to use the MD5 Hash Generator

  1. Type or paste text, or open the file tab and choose a file.
  2. The MD5 hash appears as you type.
  3. Paste a checksum into the compare box to see if they match.
  4. Copy the hash or download it as a text file.

Tips

Use it for accidents, not attackers

MD5 reliably catches a file that got damaged while copying or downloading. It does not protect you from someone who swaps the file on purpose; use SHA-256 for that.

Finding duplicate files

Two files with the same MD5 are almost certainly identical. Hashing photos or documents is a fast way to spot copies with different names.

Never for passwords

Old websites stored MD5 password hashes, and huge lookup tables now exist for them. Modern sites use bcrypt or Argon2.

Other hash algorithms

Need different settings? Use the full MD5 & SHA Hash Generator.

Frequently asked questions

Is MD5 encryption?

No. Encryption can be reversed with a key; a hash cannot be reversed at all. MD5 only creates a fingerprint of the data.

Why do people say MD5 is broken?

Because attackers can deliberately make two different inputs with the same MD5 hash. That breaks its use for signatures and security, though not for spotting random corruption.

Can two different files have the same MD5 by accident?

The odds are astronomically small. Matching MD5 hashes from accidental changes is not a real-world concern; deliberate collisions are.

Should I use MD5 or SHA-256?

Use SHA-256 whenever you can choose. Use MD5 only when a system or website gives you an MD5 checksum to compare against.

Related developer tools

View all →