Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text. Runs locally in your browser via Web Crypto API.
Generate hashes
Hashing runs locally in your browser. Nothing is sent to a server.
SHA-1
SHA-256
SHA-384
SHA-512
Frequently Asked Questions about the Hash Generator
What is a hash function used for?
Hash functions create a fixed-length fingerprint of any input. They are used to verify file integrity, store passwords (with salting), generate IDs, and detect duplicate content without comparing the originals byte by byte.
Which hash algorithm should I use?
SHA-256 is the modern default for most uses. SHA-1 is deprecated for security but still appears in Git commits. SHA-384 and SHA-512 offer larger output for high-security applications.
Why is SHA-1 considered insecure?
Researchers have demonstrated practical collision attacks against SHA-1, meaning two different inputs can produce the same hash. Use it only for non-security purposes like Git or legacy compatibility.
Can I reverse a hash to get the original text?
No. Hash functions are one-way by design. Attackers crack short or common inputs by guessing and rehashing (rainbow tables, brute force), which is why password hashes need a unique salt and a slow algorithm.
Is my input sent to a server?
No. The hash runs in your browser using the Web Crypto API (SubtleCrypto.digest). Your text never leaves your device.