Hash Generator
Hashes and HMACs of text with every common algorithm.
Runs in your browser. Nothing is uploaded.
Updated
- SHA-256
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 - SHA-512
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e - SHA-384
38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b - SHA-224
d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f - SHA-512/256
c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a - SHA3-256
a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a - SHA3-512
a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26 - BLAKE2b-512
786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce - SHA-1 broken for security; fine for checksums
da39a3ee5e6b4b0d3255bfef95601890afd80709 - MD5 broken for security; fine for checksums
d41d8cd98f00b204e9800998ecf8427e - CRC-32 a checksum, not a secure hash
00000000
printf '%s' '' | sha256sumHow to use Hash Generator
- Type or paste the text.
- Add a secret key for HMAC if needed.
- Copy a hash, or paste one to compare.
Hash Generator at a glance
Typical use: Check a webhook signature with HMAC-SHA256.
Runs in your browser; nothing is sent.
Which hash to use
- SHA-256: the usual choice for checksums, signatures and identifiers. SHA-512 and SHA-3 are equally safe alternatives.
- MD5 and SHA-1: broken for security (two different inputs can be made to give the same hash), but still used for checksums, cache keys and old systems.
- CRC-32: a fast error check used in ZIP, PNG and gzip; not a security hash.
- Passwords should never be stored as a plain hash of any kind: use bcrypt, scrypt or Argon2, which are made to be slow.
HMAC
An HMAC mixes a secret key into the hash, so only someone with the key can make or check it. Webhooks (GitHub, Stripe, Slack) sign their messages this way: paste the exact request body and your signing secret, choose the algorithm, and compare the result with the signature header using the Compare box.
Hash Generator example
A download page lists the SHA-256 of a text snippet as dffd6021…. Paste the text, paste that hash into “Compare with a hash”: the matching line turns green and the page tells you which algorithm it is. For files, use File Checksum, which reads files of any size.
Prefer the terminal?
The same in a terminal:
printf '%s' 'Hello, World!' | sha256sumOn macOS use shasum -a 256 (md5 for MD5). For HMAC: printf '%s' 'text' | openssl dgst -sha256 -hmac 'key'. echo adds a line break and gives a different hash.
References
Frequently asked questions
Is my text sent anywhere?
No. Every hash is computed in your browser.
Can a hash be reversed to get the text back?
No, a hash is one-way. Short or common inputs can be found by guessing, though, which is why passwords need slow, salted algorithms instead of plain hashes.
Why is my hash different from another tool’s?
The input differs, usually by a line break at the end, spaces, or a different text encoding. This page hashes the text exactly as typed, as UTF-8.
How do I hash a file?
Use the File Checksum tool: it hashes files of any size in your browser and compares them with a published checksum.