Hash generator

Type text or pick a file to get its MD5, SHA-1, SHA-256, SHA-384 and SHA-512 hashes at once, computed on your device.

Runs entirely in your browser. Nothing you paste is uploaded.

How it works

SHA-1 and the SHA-2 family are computed with the browser's Web Crypto API (crypto.subtle.digest). MD5 is not part of Web Crypto, so it is computed with a small JavaScript implementation of RFC 1321. Text is hashed as UTF-8 bytes.

Known values to check against

InputAlgorithmHash
(empty)MD5d41d8cd98f00b204e9800998ecf8427e
(empty)SHA-256e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
hello worldMD55eb63bbbe01eeed093cb22bb8f5acdc3
hello worldSHA-12aae6c35c94fcfb415dbe95f408b9ce91ee846ed
hello worldSHA-256b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9

Which hash should I use?

AlgorithmOutputStatus
MD5128 bits / 32 hexBroken for security; fine for non-adversarial checksums
SHA-1160 bits / 40 hexCollisions demonstrated (2017); avoid for signatures
SHA-256256 bits / 64 hexCurrent standard choice
SHA-384384 bits / 96 hexTruncated SHA-512, used in TLS suites and SRI
SHA-512512 bits / 128 hexFaster than SHA-256 on 64-bit CPUs

For storing passwords use a slow, salted algorithm such as Argon2, scrypt or bcrypt, never a plain fast hash.

Frequently asked questions

Can a hash be reversed?
No. Hashes are one-way. Short or common inputs can be found by lookup tables, which is why passwords need salted slow hashes.
Why does my hash differ from another tool?
Usually a trailing newline or different text encoding. "hello" and "hello\n" have completely different hashes.