MD5 Hash Generator
Generate the MD5 hash of any text or file, as hex or Base64, with optional HMAC and a check against an expected hash.
·
✓ The hashes match
✗ The hashes do not match
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the MD5 Hash Generator
- 1 Type or paste your text, or switch to File and choose a file.
- 2 Optionally turn on HMAC and enter a key.
- 3 Copy the MD5 hash, or paste an expected hash to compare.
About the MD5 Hash Generator
MD5 turns any input into a fixed-length fingerprint of 128 bits, written as 32 hexadecimal characters. The same input always gives the same hash, the smallest change gives a completely different one, and you cannot turn the hash back into the input.
MD5 is broken for security: since 2004 collisions (two different inputs with the same hash) can be made in seconds. Use it only for checksums against accidental corruption, cache keys or deduplication, never for passwords or signatures.
Text is hashed as UTF-8 bytes, exactly like most programming languages do, so the result matches md5 on the command line for the same bytes. Files are read in chunks in your browser, so even very large files work. With HMAC, a secret key is mixed in (RFC 2104), which is how APIs and webhooks sign their messages.
Frequently asked questions
Can a MD5 hash be decrypted?
No. A hash is a one-way function: there is no key to reverse it. "Decrypting" sites only look the hash up in tables of known inputs, which works for common words and short passwords.
Why does my MD5 differ from another tool?
Usually because of invisible differences in the input: a trailing newline, a different line ending (Windows CRLF versus LF) or a different text encoding. This tool hashes exactly the characters in the box, as UTF-8.
What is the MD5 of an empty string?
d41d8cd98f00b204e9800998ecf8427e. It's a quick way to recognise an empty input.
What is HMAC for?
HMAC proves that a message was made by someone who knows the secret key, and that it was not changed. Webhook providers such as Stripe and GitHub sign their requests with HMAC-SHA256.
Should I use MD5 for passwords?
No. Plain hashes are far too fast: attackers try billions per second. Store passwords with a slow, salted hash such as Argon2id or bcrypt; our password hash generator makes them.