MD5 hash generator
Get the MD5 hash of any text as hex and Base64, computed in your browser. MD5 is broken for security: use it only for checksums and systems that require it.
MD5 is broken for security: two different inputs with the same hash can be made in seconds. Use it only as a checksum against accidental damage or where an old system demands it. Never for passwords, signatures or proving a file was not tampered with.
Hashed in your browser as UTF-8, exactly as typed: a trailing space or line break changes the hash.
The result appears here.The result appears here.Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.
How to use the MD5 hash generator
- Type or paste the text. It is hashed as UTF-8, exactly as entered.
- Read the hash as 32 hex characters, or as Base64 (the form the Content-MD5 header uses).
- Copy the form you need. Do not use it for anything that has to resist an attacker.
About this tool
MD5 turns any input into a 128-bit value, written as 32 hex characters. Ron Rivest published it in 1992 as RFC 1321, and for a decade it was the default hash for everything. It is broken for security. Collisions, two different inputs with the same hash, were shown in 2004 and can now be produced in seconds on a laptop. In 2008 researchers used one to forge a trusted certificate authority, and the Flame malware later forged a Microsoft signature the same way.
So MD5 must not be used for signatures, certificates, password storage, or to prove a file has not been tampered with. An attacker can make a harmful file that shares its MD5 with a harmless one they prepared. As a password hash it is even worse: it is unsalted and so fast that billions of guesses a second are routine.
What remains is the checksum role. MD5 still detects accidental damage, a truncated download or a flipped bit, and many systems are built around it: the Content-MD5 header, ETags on some object storage, old database columns, cache keys, file deduplication among files you trust. Use this tool to work with those. When you have the choice, use SHA-256. The browser’s Web Crypto has no MD5, so this page computes it with its own implementation of RFC 1321.
Sources
Questions
No. It has been broken for collision resistance since 2004, and RFC 6151 says it is no longer acceptable where collision resistance is required. It should not be used for signatures, certificates or passwords. It still works as a checksum against accidental errors.
Not mathematically, but in practice often yes for short inputs. MD5 is so fast, and so many precomputed tables exist, that the hash of a common password or short string can be looked up at once. That is another reason not to store passwords with it.
It detects accidental corruption. It does not protect against a deliberately altered file, because someone who controls the file can craft one that keeps the same MD5 as another they made. If the publisher offers SHA-256, use that.
Usually a trailing newline: echo adds one, and this tool hashes exactly what is in the box. Use echo -n or printf. A different text encoding or different line endings, CRLF against LF, also change the hash.