MD5 Hash Generator
Create the MD5 hash of any text or file instantly — right in your browser. Verify MD5 checksums, get hex or Base64, hash line by line or create an HMAC-MD5 with a secret key.
MD5 is broken for security. Anyone can create two different files with the same MD5, so never use it for passwords, signatures or proving a file wasn’t tampered with. It’s still fine for quick checksums, cache keys and older systems. For security, use SHA-256 — or bcrypt for passwords.
Same input, other algorithms
–
–
–
–
–
How to Generate an MD5 Hash
Hash text or files in seconds, then copy the result or check it against a known MD5 checksum.
Add text or a file
Type or paste text, or switch to File and drop any file to hash it.
Get the MD5 hash
The 32-character MD5 hash appears instantly and updates as you type.
Pick a format or add a key
Choose hex or Base64, or turn on HMAC to sign with a secret key.
Copy, verify or download
Copy the hash, paste an expected checksum to compare, or download the result.
Output
128 bits · 32 hex chars
Files
Up to 2 GB
HMAC
HMAC-MD5
Formats
hex · HEX · Base64
Batch
One hash per line
Verify
Checksum match
Privacy
Nothing uploaded
Price
100% free
MD5 Generator Features
Everything you need to work with MD5 hashes, in one free tool.
Live hashing
The MD5 hash updates as you type — no button to press, even for long text.
File checksums
Drop any file up to 2 GB to get its MD5 checksum. The file is read in your browser and never uploaded.
Verify a checksum
Paste the expected hash from a download page and see instantly whether it matches — in hex or Base64.
HMAC-MD5
Turn on “Use a secret key” to create an HMAC-MD5 signature. Keys can be text, hex or Base64.
Hex or Base64
Copy the hash as lowercase hex, UPPERCASE hex, Base64 or URL-safe Base64.
Hash each line
Hash a list of values one line at a time and download the results as a CSV file.
Text, hex or Base64 input
Hash plain UTF-8 text, or raw bytes written as hex or Base64.
Other algorithms
See MD5, SHA-1, SHA-256, SHA-384 and SHA-512 for the same input side by side.
Private by design
MD5 runs in your browser with our own tested code (browsers don’t include MD5). Nothing you enter is sent anywhere.
MD5 Example Hashes
Use these known values to check that any MD5 tool or library gives the right result.
| Input | MD5 hash (hex) |
|---|---|
| (empty string) | d41d8cd98f00b204e9800998ecf8427e |
| abc | 900150983cd24fb0d6963f7d28e17f72 |
| hello world | 5eb63bbbe01eeed093cb22bb8f5acdc3 |
| The quick brown fox jumps over the lazy dog | 9e107d9d372bb6826bd81d3542a419d6 |
When Is MD5 Still OK to Use?
MD5 is broken for security but still common. Here’s when it’s fine and when to switch.
| Use | OK with MD5? | Better choice |
|---|---|---|
| Spotting accidental file corruption | Yes | SHA-256 if available |
| Cache keys, ETags and deduplication | Yes | — |
| Matching values in older databases and APIs | Yes, where required | SHA-256 for new systems |
| Storing passwords | No — never | bcrypt, scrypt or Argon2 |
| Proving a file wasn’t tampered with | No — collisions are easy | SHA-256 or SHA-512 |
| Digital signatures and certificates | No | SHA-256 or SHA-512 |
What Can You Use It For?
Common reasons people still need MD5.
Verify downloads
Check a file against the MD5 checksum on its download page.
Legacy systems
Match hashes stored by older apps, databases and APIs.
Deduplication
Fingerprint files or records to find duplicates quickly.
Cache keys & ETags
Create short, stable keys for caches and file names.
Upload checks
Compare Content-MD5 values used by some storage services.
HMAC-MD5
Test older APIs that still sign requests with HMAC-MD5.
Debugging
Compare the hash your code produces with a known-good value.
Learning
See how a tiny change gives a completely different hash.
Tips for Accurate MD5 Hashes
- Watch for hidden newlines. echo adds a line break — use echo -n, or turn on “Trim spaces & line breaks”.
- Text is hashed as UTF-8. This matches PHP md5(), Python hashlib and most other tools.
- Compare in the same format. Hex and Base64 look different but can be the same hash — the checker understands both.
- Use the command line too. Run md5sum file (Linux), md5 file (macOS) or certutil -hashfile file MD5 (Windows).
- Never store passwords with MD5. Use bcrypt instead — MD5 hashes can be cracked in seconds.
- Upgrading? SHA-256 is a drop-in replacement for checksums.
Private by Design
Everything happens in your browser. What you type and any files you open are never sent to Toolszu or anyone else, and nothing is stored.
Results are calculated with standard, tested algorithms, so they match the command line and every major programming language.
Frequently Asked Questions
Answers about MD5 hashes, checksums and HMAC-MD5.
MD5 (Message-Digest Algorithm 5) turns any input into a fixed 128-bit value, usually written as 32 hexadecimal characters. It was designed by Ron Rivest in 1991 and is still widely used for checksums.
No. Practical MD5 collisions have been known since 2004, and real attacks have used them to forge certificates. Never use MD5 for passwords, signatures or tamper-proofing. It’s still fine for spotting accidental corruption and for cache keys.
No. Hashing is one-way. Sites that claim to “decrypt” MD5 only look the hash up in huge lists of hashed common words — which is exactly why MD5 must never be used for passwords.
128 bits: 32 characters in hex, or 24 characters in Base64.
Switch to File, drop your file, then paste the MD5 from the download page into “Compare with an expected hash”. You’ll see Match or No match instantly.
Usually because of an invisible difference in the input: a trailing newline, a space, Windows line endings or a different text encoding. Try “Trim spaces & line breaks”, and make sure both tools use UTF-8.
Yes. Text is hashed as UTF-8 bytes, exactly like PHP md5(), Python hashlib.md5(), Node.js crypto and the md5sum command.
d41d8cd98f00b204e9800998ecf8427e — useful for spotting accidentally empty inputs.
HMAC-MD5 combines MD5 with a secret key to sign a message. Unlike plain MD5 it isn’t directly broken by collisions, but HMAC-SHA256 is the better choice for anything new.
Yes. Turn on “Hash each line separately” to get one MD5 per line, then download the results as a CSV file.
No. MD5 is calculated in your browser. Your text and files never leave your device.
Yes, it’s completely free with no sign-up and no limits.
Related Free Tools
Generate an MD5 Hash Now
Paste text or drop a file and get its MD5 instantly. Free, private and no sign-up.
Start Now