Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes via the Web Crypto API. Runs 100% locally.
Input encoding
Note: MD5 is not available via the Web Crypto API (it's considered cryptographically broken and was intentionally excluded from the spec). For MD5 use a native tool.
Same input, same output — always
A cryptographic hash function takes any input and produces a fixed-length fingerprint. The same input always produces the same output, but a single changed character produces a completely different hash. That avalanche property is intentional: it makes tampered files immediately detectable. It does not make the data secret.
SHA-256
256 bits
General checksums, content verification
SHA-384
384 bits
TLS certificates, higher security contexts
SHA-512
512 bits
Maximum collision resistance
SHA-1
160 bits
Legacy (git commits) — not collision-safe
SHA-256 live demo
Interactive — edit the input to see the output update
Input text
SHA-256 hash (hex)
Start typing to see the output…
Note: Change a single character and watch the entire hash change. This avalanche effect is a core property of cryptographic hash functions.
What hashes are good for — and not good for
| Good use | Bad use | Why |
|---|---|---|
| Content checksums | Storing passwords | Passwords need bcrypt/argon2 with salting and work factor |
| File integrity checks | Encryption | Hashing is one-way and non-reversible but not secret |
| Detecting duplicate content | Authentication secrets | Hashes are deterministic — same input always gives same output |
| Cache keys and ETags | Hiding data | Anyone with the input can verify or re-compute the hash |
Common misconceptions
Note: This tool computes hashes entirely in your browser using the Web Crypto API. No input leaves your machine. That said, a hash of sensitive data is still a fingerprint of it — treat it with the same care as the original.
Your files stay on your computer. Dad promised.