The MD5 hash generator creates the MD5 hash, also called an MD5 checksum, of any text or file. The hash is a 32-character code that changes completely if even one character of the input changes, so it’s a quick way to check that a file arrived intact or that two pieces of text are identical. For example, the MD5 hash of the word abc is 900150983cd24fb0d6963f7d28e17f72. Everything is worked out on your device, so files and text are never uploaded.
How to use the MD5 hash generator
- Choose Text or File.
- Type or paste your text, or choose a file of up to 1 GB.
- Click Generate hash to see the MD5 hash in hex, plus Base64.
- To check a download, paste the MD5 checksum from the website into the compare box. The tool tells you whether the hashes match.
- Copy the hash, in lower or upper case.
What is an MD5 hash?
MD5 is a hash function designed by Ronald Rivest and published in 1992 as RFC 1321. It takes input of any length and turns it into a fixed 128-bit value, written as 32 hexadecimal characters. The same input always gives the same hash, and it’s practically impossible to rebuild the input from the hash. Tiny changes give completely different hashes: abc and abd have nothing in common in their MD5 hashes.
| Input | MD5 hash |
|---|---|
| (empty) | d41d8cd98f00b204e9800998ecf8427e |
| a | 0cc175b9c0f1b6a831c399e269772661 |
| abc | 900150983cd24fb0d6963f7d28e17f72 |
| message digest | f96b697d7cb7938d525a2f31aaf161d0 |
These are test values from RFC 1321, and the tool reproduces them exactly.
Checking a download with MD5
Many software sites, Linux distributions and file archives publish an MD5 checksum next to each download. After downloading, choose the file, paste the published checksum into the compare box and generate the hash. If they match, the file is the same as the one the site published. If they don’t, the download may be incomplete or damaged, so download it again. Case and spaces don’t matter when comparing.
Is MD5 secure?
No, not for security. Since the mid-2000s, researchers have shown practical ways to create two different files with the same MD5 hash, called a collision. The IETF’s RFC 6151 says MD5 should not be used where collision resistance is needed, such as digital signatures. That’s why browsers’ built-in cryptography doesn’t even offer it. MD5 is still fine for spotting accidental corruption and for quick comparisons, but use SHA-256 to check that a file hasn’t been tampered with.
Don’t use MD5 for passwords
MD5 is very fast, which makes it easy for attackers to try billions of guesses a second against a stolen list of MD5 password hashes. Password storage should use a slow, salted algorithm designed for the job, such as bcrypt, scrypt or Argon2. If you’re building an app, use your framework’s built-in password hashing rather than MD5.
Hashing text: every character counts
The hash covers every byte, including spaces, tabs and line breaks. Text copied from a document may include a line break at the end, which gives a different hash from the same text without it. Text is encoded as UTF-8, the standard for the web, so letters with accents and emoji hash the same way as in most programming languages.
Base64 and upper-case hashes
The hex form is the most common way to write an MD5 hash. Some systems, such as cloud storage services, show it in Base64 instead, a 24-character form of the same 16 bytes. Tick the capital letters box if a system expects upper-case hex.
Where MD5 is still used
- Download checksums on older software sites and mirrors, to catch files damaged in transfer.
- Finding duplicate files, since identical files have identical hashes. Backup and photo tools often use it this way.
- Cache keys and ETags on web servers, where speed matters more than security.
- Database and data checks, such as spotting when a record has changed.
- Legacy systems that were built before stronger algorithms became common.
In each case, MD5 detects accidental changes. None of these uses relies on stopping someone who is deliberately trying to fool the check.
MD5 compared with SHA-256
| MD5 | SHA-256 | |
|---|---|---|
| Hash length | 128 bits, 32 hex characters | 256 bits, 64 hex characters |
| Collisions found | Yes, practical since 2004 | None known |
| Good for security | No | Yes |
| Good for spotting accidental damage | Yes | Yes |
If a website publishes both, compare the SHA-256 hash.
Command-line equivalents
You can make the same hash on a computer without a browser. On a Mac, open Terminal and run md5 followed by the file name. On Linux, use md5sum. On Windows, open PowerShell and run Get-FileHash with the option -Algorithm MD5. All of them give the same 32 characters as this tool for the same file.
Your text and files stay on your device. For a secure checksum, use the SHA-256 hash generator, and to encode text, try the Base64 encoder and decoder.
What next
Use this often? Add MD5 Hash to your Home screen.
Frequently asked questions
How does the MD5 hash generator work?
It runs the MD5 algorithm from RFC 1321 on your text or file in your browser and shows the 128-bit result as 32 hex characters.
Can an MD5 hash be decrypted?
No. A hash is one-way. Short common inputs can be looked up in tables of known hashes, which is one reason not to use MD5 for passwords.
Is MD5 safe to use?
Not for security, as collisions can be created on purpose. It’s fine for spotting accidental corruption; use SHA-256 for security.
Are my files uploaded?
No. The hash is worked out on your device, and nothing is sent anywhere.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.