SHA-256 Hash Generator
Hash any text with SHA-256, SHA-1 or SHA-512 using the Web Crypto API.
What is a SHA hash?
A cryptographic hash function turns any input into a fixed-length "digest" β 64 hex characters for SHA-256 β that changes completely if a single input byte changes. Hashing is one-way: you cannot recover the original text from the digest, which is why hashes are used for integrity checks and fingerprints.
Choosing an algorithm
SHA-256 and SHA-512 are members of the SHA-2 family and are recommended for new work. SHA-1 is included for compatibility with legacy systems, but it is considered broken for security purposes and should not be relied on to prevent tampering.
How to use the SHA-256 Hash Generator
- Enter your text. Type or paste the content you want to hash.
- Pick an algorithm. Choose SHA-256, SHA-1 or SHA-512.
- Generate the hash. Click the button to compute the hex digest.
- Copy the digest. Use the Copy button to reuse the result.
Frequently asked questions
Can I reverse a hash to get the text?
No. Hashing is one-way by design. So-called "reverse" services only look up precomputed hashes of common inputs.
Which algorithm should I use?
Prefer SHA-256 or SHA-512 for anything new. Use SHA-1 only when an old system explicitly requires it.
Why is the Web Crypto API needed?
It provides fast, audited hashing in the browser and requires a secure context, so open the page over HTTPS.
Is my input sent anywhere?
No. The digest is computed locally; your text never leaves the browser.