Hash generator
Hash text or a file with MD5, SHA-1, SHA-256, SHA-384 and SHA-512, or compute an HMAC with a key.
HMAC
Enter a key to compute the HMAC.
Digests
Enter some text or choose a file to see its hashes.
Compare
When to use it
You want to check that a download arrived intact, spot duplicate pages, or match a signature an API expects. Paste text or drop a file, and every common hash is shown at once.
What a hash is for
A hash function turns any input into a fixed-length fingerprint. The same input always gives the same output. Change one byte and the whole result changes. That makes a hash good for checking a download, for spotting duplicate pages when you scrape a site, and for building cache keys from URLs.
Which algorithm to use
SHA-256is the sensible default.SHA-384andSHA-512are longer members of the same family.MD5andSHA-1are broken for security: someone can make two different inputs with the same hash on purpose. They're still fine as checksums and for finding duplicates. That's why so many APIs and download pages still publish them.
HMAC
An HMAC mixes a secret key into the hash, so only someone with the key can make or check it. Most APIs sign requests and webhooks this way. If your signature doesn't match, the usual causes are a key that needed hex or Base64 decoding first, or a body that was re-serialised before hashing. Hash the exact bytes that were sent.
Where the work happens
Your browser's Web Crypto computes the SHA family. Web Crypto has no MD5, so a small implementation on this page computes that one. Files are read in this tab and aren't uploaded.
Questions people ask
How do I get the SHA-256 of a file?
Drop the file on the page. It is read and hashed in your browser, and every digest is shown at once, so you can compare it with the checksum the publisher gives.
Is MD5 still safe to use?
For spotting accidental corruption or finding duplicate files, yes. For anything where someone might tamper with the data, no: MD5 and SHA-1 collisions can be produced on purpose. Use SHA-256.
What is the difference between a hash and an HMAC?
A hash depends only on the data. An HMAC mixes in a secret key, so only someone with the key can produce or check it. APIs use HMACs to sign requests and webhooks.
Can a hash be reversed?
Not by calculation. Short or common inputs can still be found by guessing, which is why passwords need a slow, salted algorithm such as bcrypt or Argon2 rather than a plain hash.
Get started
Blocked by bot protection? $5 is 5,000 solves.
No subscriptionCredit never expiresFailed solves are free