Hash Generator (SHA)
Generate a SHA hash of any text — computed securely in your browser.
How to use
- Type or paste your text.
- Choose a SHA algorithm.
- The hash appears instantly — click Copy to grab it.
How the Hash Generator (SHA) works
Computes SHA cryptographic hashes of any text — the fingerprints used for integrity checking, deduplication and digital signatures.
It calls the browser's built-in Web Crypto API (crypto.subtle.digest), which is a native, audited implementation. The resulting bytes are rendered as lowercase hexadecimal.
SHA-256 → 256 bits → 64 hex characters
Worked example
Hashing the string 'hello' with SHA-256 always produces 2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824. Change one character and the output changes completely.
Things worth knowing
- Hashing is one-way. There is no operation that recovers the input from the hash.
- The avalanche effect means a single-bit change to the input alters roughly half the output bits — which is exactly what makes hashes useful for detecting tampering.
- SHA-1 is cryptographically broken and should not be used for security. SHA-256 is the current default choice.
- For password storage, plain SHA is the wrong tool — use bcrypt, scrypt or Argon2, which are deliberately slow.
Frequently asked questions
Is my text sent to a server?
No — hashing uses your browser's built-in Web Crypto, so nothing leaves your device.
Which algorithm should I use?
SHA-256 is a solid default; SHA-1 is included for legacy needs but isn't recommended for security.
Can a hash be reversed?
Not by computation. Attackers instead guess inputs and compare hashes, which is why fast hashes are poor for passwords.
What is a hash collision?
Two different inputs producing the same hash. They are theoretically inevitable but computationally infeasible to find for SHA-256; they have been demonstrated for SHA-1.