What Is MD5?
MD5 (Message Digest Algorithm 5) is a cryptographic hash function designed by Ron Rivest in 1991. It takes any input — a string, a file, an image, a binary blob — and produces a fixed 128-bit (32 hexadecimal characters) output called a hash or digest.
The same input always produces the same hash. But even a single-bit change to the input produces a completely different hash — a property called the avalanche effect.
Example
| Input | MD5 Hash |
|---|---|
hello | 5d41402abc4b2a76b9719d911017c592 |
Hello | 8b1a9953c4611296a827abf8c47804d7 |
hello (trailing space) | b1946ac92492d2347c6235b4d2611184 |
hello! | 06f66dfa6b4a6abf9c39f5f41b1d04d2 |
Notice how a single character change produces a completely different hash — with no visible pattern.
What MD5 Is Good For
- File integrity checks — detect accidental corruption during transfer or storage.
- Checksum verification — publishers distribute MD5 alongside downloads; you can verify the file matches.
- Cache-busting URLs — MD5 of file content makes a great cache key.
- Deduplication — quickly detect identical files in a large set.
- Legacy systems — some old APIs, OAuth 1.0a and database schemas still require MD5.
What MD5 Is NOT Good For
- Password storage — MD5 is way too fast. Use bcrypt, scrypt or Argon2 with a per-user salt.
- Digital signatures — collisions break MD5's security guarantee. Use SHA-256 or SHA-512.
- SSL/TLS certificates — browsers and CAs have banned MD5-signed certs since 2016.
- Anti-tamper protection — an attacker can craft a malicious file that produces the same MD5.
MD5 vs SHA-1 vs SHA-256
| Algorithm | Output Size | Status | Speed |
|---|---|---|---|
| MD5 | 128-bit (32 hex) | Broken | Fastest |
| SHA-1 | 160-bit (40 hex) | Deprecated | Fast |
| SHA-256 | 256-bit (64 hex) | Secure | Moderate |
| SHA-512 | 512-bit (128 hex) | Secure | Slower on 32-bit, fast on 64-bit |
How to Verify a Downloaded File
- Download the file and get the publisher's official MD5 checksum.
- Hash the downloaded file with this tool (File to MD5 tab).
- Compare the result with the publisher's checksum — case doesn't matter.
- If they match, the file is unmodified. If not, do not use the file — re-download from a trusted source.
On Linux or macOS you can also verify with the command line: md5sum filename or md5 filename. On Windows: certutil -hashfile filename MD5.
How to Use This Tool
- Text to MD5: Paste text. Hashes update live as you type (toggleable). Toggle uppercase output and line-break preservation as needed.
- File to MD5: Drop one or more files. Hashes are computed asynchronously with a progress bar. Export results as CSV or TXT.
- HMAC-MD5: Enter a message and a secret key. Optionally interpret the key as hex bytes. Get the HMAC-MD5 signature.
- Verify: Paste text or upload a file, then paste an expected MD5. The tool tells you if it matches.
⚠️ AI-Generated Tool Notice: This Online MD5 Generator was built with AI assistance. It uses a self-contained pure-JavaScript MD5 implementation. While it produces correct results on all tested inputs, you should independently verify output against a trusted reference before relying on it for security-critical decisions.