Paste a message into the MD5 hash generator and you can create an MD5 hash of a string in the time it takes to type it. Your input becomes a 128-bit fingerprint written as 32 characters of hexadecimal, so you can verify a download, match two records or reproduce a legacy value without installing anything.
What Is an MD5 Hash? The Message-Digest Algorithm Explained
MD5 is a hash function published as RFC 1321 by Ron Rivest. The message-digest algorithm reads a message of any length and returns a 128-bit hash, always shown as 32 hexadecimal digits. Internally the message is padded, split into 512-bit blocks and mixed through four rounds of sixteen operations each, which is why the digest depends on every part of the message. Whether you feed it one letter or an entire novel, the digest keeps the same size.
Three properties explain why people still reach for it. The same input always produces the same digest. A tiny change to the message scrambles the result completely. And the process is one-way: nobody can run it backwards to reverse the original message from the digest alone. That also means a hash is not encryption, because nothing is locked and no key exists to unlock it. Every digest is meant to be unique to its message, a short fingerprint rather than a container.
How to Use This Online Tool to Get a Hash Value
Everything runs in your browser, so the message never leaves your computer. Work through the controls from top to bottom. When testing a database or protocol that still uses the standard, teams often generate an sha1 hash and keep the legacy algorithm away from authentication.
Enter your text
Whatever text you paste into the input box is hashed as raw bytes, so type it exactly as it should be counted. Keep an eye on trailing spaces and stray line breaks, because every invisible character you leave in changes the digest.
Choose UTF-8 or another input encoding
Pick UTF-8 for ordinary words. Switch to Hex or Base64 only when what you pasted already represents encoded bytes instead of literal characters.
Pick the output encoding
Lowercase hex is the form most documentation shows. Uppercase hex carries identical information in capitals, while a Base64 result is shorter and handy for headers and config files.
Turn on HMAC for a keyed result
When a protocol asks for a keyed digest, enable the option and add your secret key. The next sections explain what changes.
Hash and copy the result
Press the button, or leave auto-update switched on, then copy the result and paste it wherever you need it.
A Worked Example with the MD5 Hash Generator
Take a made-up order reference, invoice-2024-0417. Written as a formula, the result is simply: On a server that may use another plugin, check whether caching_sha2_password is active before you generate a mysql password hash, since that plugin stores a different value.
$$h = \mathrm{MD5}(m)$$
Here \(m\) is the message and \(h\) is its digest. For this reference the answer is 1a468fb82b3559de8a1ab3bacbb685c4. Run it twice, or on a friend's computer, and nothing changes: the same message always lands on the same digest. The table shows how small edits to the same message change that answer.
| Message | What changed | MD5 digest |
|---|---|---|
invoice-2024-0417 | Original reference | 1a468fb82b3559de8a1ab3bacbb685c4 |
Invoice-2024-0417 | Capital first letter | addaf39a53441eb24d538d1bb3f073c0 |
invoice-2024-0418 | Last digit raised by one | 0c5abb74ab6290ccb0144f1018e0ce7c |
invoice-2024-0417 | One trailing space | e4549c3ea44a40e373f6cf93aeb85fee |
invoice-2024-0417 plus a line break | Newline added at the end | 374a542334d8f7cf629eb2167d67d2cd |
No two rows resemble each other, even though the messages differ by a single character. That avalanche effect is why a digest exposes accidental changes so reliably. It also explains the classic puzzle of two programs disagreeing: one of them probably counted different line endings, such as a Windows CRLF pair, or a stray space.
MD5 and HMAC-MD5: Keyed Hashing in an MD5 Tool
Plain MD5 has no secret, so anyone can recompute it. HMAC-MD5 mixes a key into the calculation, which is called keyed hashing, and gives you message authentication: only someone who holds the key can produce the matching value.
$$T = H\big((K' \oplus \mathrm{opad}) \,\|\, H((K' \oplus \mathrm{ipad}) \,\|\, m)\big)$$
In this formula \(K'\) is the padded key, \(H\) is the underlying hash and \(\|\) means concatenation. Because the key enters twice, the output differs from the plain digest of the same message. Keep it for compatibility with an existing integration only; new designs should pick a stronger partner, and the next sections show which ones.
Matching a Customer Record with a Message Digest Lookup
Dana, an analyst, has to find one customer in an old order table whose email column holds only digests, never the address itself. She wants to know whether [email protected] is already on file before creating a duplicate account.
She opens the generator, keeps the default input encoding, selects lowercase hex output and leaves HMAC off, because the old export used plain MD5. The result is b757a0def4bbc16eaf330577f83527be, and a quick search of the table finds exactly that value in row 5,812. The customer exists, so she links the new order to the old record instead.
What stands out is how fragile the match is. She reruns the check with the address as the customer typed it, [email protected], and the digest becomes 2896b2b724d67461634a1c7449248366, which matches nothing. A single trailing space gives cfc340caa69d7e023f87471a1187405f, also a miss.
| Variant entered | Found in the table? |
|---|---|
| Lowercase, no spaces | Yes, row 5,812 |
| Capitalised as typed | No |
| Lowercase plus trailing space | No |
My judgement call: normalise before you hash. The old system lowercased and trimmed every address, so the number to trust is the one produced after that cleanup, not the one from the raw form field. The caveat is that a missing match proves nothing on its own. It may only mean the original added a secret prefix or a different encoding, and then no amount of retrying will find the row. In that case she asks the database owner how the values were produced, and she checks the result against a second known record before trusting the lookup again.
Where a Message Digest Still Helps Data Integrity
MD5 is fast, and speed is the reason it survives in jobs where nobody is attacking you:
- Data integrity and integrity verification: compare the digest you compute with the one a publisher lists next to a download.
- File checksum routines that confirm a copy matches its source after a transfer.
- Duplicate detection across large folders or datasets, where identical digests flag identical content.
- Hash tables and caching, where a short key standing in for a long value saves memory.
- Older legacy systems, including MySQL records written years ago, that still store MD5 values and need them reproduced exactly.
To verify a download, follow this short routine:
- Copy the published digest from the vendor's page.
- Hash your copy of the download, using a local command line utility for very large archives.
- Compare the two values character by character; a single mismatch means the copy is damaged or altered.
A match only proves your copy equals whatever the publisher listed. If an attacker can edit the download page, they can edit the listed digest as well, so fetch it over a trusted channel or pair it with a signed release. The routine catches corrupted transfers very well and tampering hardly at all.
Why a Hash Function Is Not Safe for Passwords
Modern cryptography treats MD5 as retired, and any system that leans on it is vulnerable to forgery. MD5 is cryptographically broken. Researchers showed that two different messages can be built to share one digest, and these collision attacks mean MD5 is no longer collision-resistant. That rules it out for digital signatures, certificates and anything else where security depends on a digest being unforgeable.
Password storage, salt and bcrypt
Fast hashing makes password storage risky. A modern graphics card can attempt billions of guesses every second, and published rainbow tables already cover enormous lists of common words. Adding a salt helps against tables, yet a plain brute force run is still quick. Use a purpose-built scheme such as bcrypt instead.
SHA-256 and SHA-512 alternatives
For a fresh design choose SHA-256 or SHA-512. SHA1 shares MD5's weaknesses, and SHA-3 is a newer family with a different internal structure. Any of them is a safer default than MD5 whenever an adversary might be involved. Treat MD5 as a convenience for comparing, never as a shield.
Frequently Asked Questions
- What is MD5 used for?
- MD5 is a widely used legacy checksum algorithm -- verifying a downloaded file matches its published checksum, generating cache keys, or working with older systems that still expect an MD5 value. It should not be used anywhere security matters, since practical collision attacks against MD5 have been known since 2004.
- Is MD5 safe for hashing passwords?
- No -- MD5 (like every hash function on this page except the dedicated password-hashing tools) is designed to be fast, which is exactly the wrong property for password storage: fast hashes let an attacker try billions of guesses per second on stolen data. Use this site's Bcrypt Generator, Password Hash Generator's Argon2id notes, or a dedicated slow KDF (PBKDF2, scrypt, Argon2) for anything storing real user passwords.
- Is the output the same every time for the same input?
- Yes -- MD5 is deterministic: the exact same input text always produces the exact same hash, with no randomness involved. That's what makes it useful for integrity checks (comparing two files or messages) but unsuitable on its own for password storage, where each user needs a unique, unpredictable salt.
- Can a hash be reversed back to the original text?
- Not directly -- hash functions are one-way by design. The only practical way to "reverse" one is to guess inputs and hash each guess until a match is found (a dictionary or brute-force attack), which is exactly why fast hashes like this one are unsuitable for protecting secrets on their own.
- Is my text sent anywhere?
- No. The hash is computed entirely in your browser -- nothing is transmitted to a server or stored.