MD5 Generator
Compute MD5 online and get the 32-character digest
What is MD5 Generator?
This MD5 generator produces a 128-bit digest (32 hexadecimal characters) for any text input, with a toggle for upper- or lowercase output. MD5 is fine for checking that a file or piece of content is intact, but practical collision attacks rule it out for password storage and signatures. Everything is computed locally in your browser.
How to use MD5 Generator
- 1Enter the text you want to digest.
- 2The digest appears instantly; switch between uppercase and lowercase as needed.
- 3Compare it character by character against the value you were given.
How do I do this in code?
Use the tool above for one-off work; for anything you repeat, move it into a script or your project.
# Note the -n, otherwise the trailing newline is hashed too echo -n "hello" | md5sum # Digest of a file md5sum ./app.tar.gz
Common errors and how to fix them
| Symptom | Cause | Fix |
|---|---|---|
| The command line result does not match the one on this page | echo appends a newline by default, so one extra byte is hashed. | Use echo -n or printf instead. |
Frequently asked questions
What is MD5 still safe to use for?+
Only for non-security consistency checks — verifying that a file transferred completely, or deriving a cache key, for example. Anywhere an attacker has an incentive to forge content (passwords, signatures, integrity proofs) you need SHA-256 or a purpose-built password hashing algorithm instead.
Why is MD5 considered broken?+
Because two different inputs that produce the same MD5 digest — a collision — can now be constructed on ordinary hardware. The assumption that "same digest means same content" no longer holds, so any signature or integrity check built on MD5 can be bypassed.
Is salted MD5 good enough for passwords?+
Still no. Salting defeats rainbow tables, but MD5 is far too fast: a modern GPU can try tens of billions of candidates per second, which makes brute force cheap. Password storage should use bcrypt, scrypt, or Argon2, where the iteration cost is tunable.
Related tools
All toolsBase64 Encoder & Decoder
Encode and decode Base64, with UTF-8 and URL-safe support
File to Base64
Convert files to Base64 and data URIs — nothing is uploaded
URL Encoder & Decoder
Percent-encode URLs, with separate modes for full URLs and parameter values
HTML Entity Encoder
Escape and unescape HTML entities
Hex to Text Converter
Convert between text and hex with several separator styles
Unicode Escape Converter
Escape and unescape Unicode in three notations