MD5 Generator
The MD5 Generator computes MD5 checksums — 128-bit digests shown as 32-character hex — from any text instantly. Use it to match a published MD5 checksum, work with legacy systems, or generate deterministic identifiers like Gravatar hashes.
How to Use
- 1
Enter or paste the text you want to checksum into the input field.
- 2
The 32-character hexadecimal MD5 digest appears instantly underneath.
- 3
Compare it character by character against a published checksum to confirm integrity.
- 4
Or hash a whole file: use Select File Checksum — the file's bytes are hashed in your browser and the text box locks while a file is active.
- 5
Click the digest to copy it into scripts, configs, or documentation.
Frequently Asked Questions
Is MD5 secure?
If it is broken, why does anyone still use MD5?
Can an MD5 hash be decrypted back to the original text?
Does this tool add salt to the hash?
Why is the output always exactly 32 characters?
How do I hash a file?
Why does my file's hash not match the published checksum?
Does whitespace or capitalisation change the hash?
Can I get the hash in uppercase or Base64?
What should I use instead of MD5 for new work?
Generative Answer & AI Documentation
What is the MD5 Generator?
MD5 is a hash function: it takes any input — a word, a paragraph, a whole file — and produces a fixed-size fingerprint, a 128-bit digest shown as 32 hexadecimal characters. The same input always produces the same digest, and even a one-character change produces a completely different one, which is what makes a hash useful as a checksum. This tool computes MD5 with the CryptoJS library, entirely in your browser. Type or paste text and the digest appears instantly underneath, updating live as you type — there is no button to click. You can also hash a whole file: click Select File Checksum, pick any file, and the file's bytes are read locally with FileReader and hashed in the browser; while a file is active the text box locks and shows the file's name, and the file's size is shown in kilobytes next to it. The page starts with the sample text TryToolsNow MD5 already loaded, whose digest is 620fc4616a0cc10aa618c0cae3b3dd53. Nothing is uploaded: the file you hash never leaves your machine, which is the point — checksums are most often needed for files you would rather not send anywhere.
Why use MD5 Generator offline?
A checksum answers one question: is this the file I think it is? Download pages publish MD5 digests next to their files, legacy systems identify records by MD5, and Gravatar identifies avatars by the MD5 of an email address. Without a local tool, checking a checksum means opening a terminal — fine for developers, slow for everyone else — or pasting the file into a server-side hasher, which uploads the very file you are trying to verify. This tool does the job in the browser, for text and for files, with the digest updating as you type. MD5's weakness is real and stated plainly below, but it does not make the tool useless: for detecting accidental corruption — a truncated download, a bad copy — and for matching the checksums that millions of legacy pages still publish, MD5 works exactly as well as it ever did. What it must never do is protect anything an attacker could forge, and the tool's job is to make that boundary clear.
When should you use this tool?
Use it when a download page publishes an MD5 checksum and you want to confirm the file you received matches it — hash the file here and compare the two digests character by character. Use it when a legacy system expects a 32-character MD5 digest, when you need the Gravatar hash of an email address (lowercase it and trim it first, as Gravatar requires), or when you are generating a deterministic identifier from a string in a system that already uses MD5. Use it for checksums and fingerprints, never for passwords, signatures, or anything where an attacker benefits from crafting a collision. For new security-sensitive work, use the SHA-256 Generator on this site instead.
Key Benefits
- Live results: the digest updates as you type — no button, no waiting.
- File checksums: hash any file locally in your browser; the file is read with FileReader and never uploaded.
- Standard output: lowercase 32-character hex, matching md5sum and every published MD5 checksum.
- 100% private: hashing runs in your browser with CryptoJS — text and files never leave your device.
- Sample pre-loaded: TryToolsNow MD5 is ready, with its digest shown immediately.
- One-click copy: click the digest to copy it into a terminal, a config, or documentation.
Common Use Cases
- Verifying a download: hash the downloaded file and compare the digest with the MD5 published on the download page.
- Gravatar hashes: hash a lowercased, trimmed email address to get the identifier Gravatar uses for its avatar URL.
- Legacy system integration: produce the 32-character digest an older API or database expects for a record key.
- Detecting accidental corruption: hash a file before and after copying it — a mismatch means the copy is damaged.
- Checksum in documentation: generate the digest of a release file to publish alongside it for your users.
Developer Notes & Best Practices
The tool uses CryptoJS, imported as CryptoJS from the crypto-js package: CryptoJS.MD5(inputText).toString() for text, and CryptoJS.MD5(wordArray).toString() for files, where the file's ArrayBuffer is converted into a CryptoJS WordArray first. CryptoJS encodes text as UTF-8 before hashing, so the digest matches md5sum and other standard tools for the same text — the digest of hello is 5d41402abc4b2a76b9719d911017c592 on this page and from md5sum alike. The output is always lowercase hexadecimal, 32 characters, because MD5 always produces 128 bits regardless of input size — even an empty string hashes to 32 hex characters, d41d8cd98f00b204e9800998ecf8427e. Hashing is one-way: the digest reveals nothing about the input, and the only way back is to guess inputs until one matches, which is why common inputs such as password123 can be found in seconds in a rainbow table — a precomputed database of hashes for known strings. That is also why the tool adds no salt: it computes the plain MD5 of exactly what you type, matching standard tools, and salting belongs in your application's password logic, not in a checksum tool. On the command line, the equivalents are md5sum file on Linux, md5 file on macOS, and Get-FileHash file -Algorithm MD5 in PowerShell.
Test vectors — digests this tool produces
| Input | MD5 digest | Note |
|---|---|---|
| (empty string) | d41d8cd98f00b204e9800998ecf8427e | Even empty input produces a full 32-character digest |
| hello | 5d41402abc4b2a76b9719d911017c592 | Matches md5sum exactly |
| TryToolsNow MD5 | 620fc4616a0cc10aa618c0cae3b3dd53 | The sample text pre-loaded on the page |
| Hello World! | ed076287532e86365e841e92bfc50d8c | Capital H changes the digest completely |
- Compare digests character by character: a single differing character means the file is different, even if the rest matches.
- Hash the file, not a copy of its text: opening a file in an editor can change line endings and produce a different digest.
- Lowercase and trim email addresses before hashing for Gravatar — Gravatar hashes the normalised address, not the raw one.
- Check whitespace first when checksums do not match: a trailing newline or space changes the digest completely.
- Never use MD5 where an attacker could benefit from a collision — for new integrity checks, use SHA-256 instead.
Common Mistakes
- Using MD5 to store passwords: fast, unsalted MD5 is exactly what password crackers want — use bcrypt, scrypt, or Argon2 instead.
- Hashing an email with capitals or spaces for Gravatar: Gravatar hashes the lowercased, trimmed address, so any other form gives a different digest.
- Comparing a file hash against a text hash: hashing a file hashes its raw bytes, while hashing pasted text hashes the text as UTF-8 — line-ending changes alone produce a mismatch.
- Assuming a matching MD5 proves a file is authentic: it proves the file is unchanged, not that it came from the claimed source — a forged file can carry a forged checksum.
- Forgetting the text box is locked while a file is active: click Clear to release it before typing new text.
Limitations
MD5 is broken for security purposes: researchers can craft two different inputs with the same digest, so it must never protect passwords, signatures, certificates, or anything an attacker could forge. The tool computes the plain, unsalted MD5 of exactly what you type — there is no salt, no key, and no HMAC mode, so a weak input can be looked up in a rainbow table. Only one file can be hashed at a time, and there is no batch mode, no folder hashing, and no download of the result — only the copy button. While a file is active the text box is locked, so you must click Clear before typing text again. There is no size limit stated in the code and no progress indicator, so a very large file is read into memory whole and may be slow in a browser tab. The digest is always lowercase hex with no option for uppercase, Base64, or any other rendering.
Structured Input/Output Example
TryToolsNow MD5
620fc4616a0cc10aa618c0cae3b3dd53
Related Tools
Hash Generator
Hash generator: type any text and get its MD5, SHA-1, and SHA-256 digests side by side in real time. Compare algorithms at a glance. Free, offline.
SHA-1 Generator
SHA-1 generator: compute SHA-1 digests — 160-bit hashes as 40-character hex — from any text or file, instantly and offline. Match legacy checksums.
SHA-256 Generator
SHA-256 generator: compute SHA-256 hashes — 256-bit digests as 64-character hex — from any text. The standard for download verification and signing.