SHA Hash Generator
Compute SHA-1, SHA-256 or SHA-512 hashes using Web Crypto.
What this tool does
A hash is a fixed-length fingerprint of data. This tool computes SHA hashes from your text entirely in the browser — useful for checking file integrity or understanding how hashing works, without sending anything anywhere.
How to use this tool
- 1
Paste the input
Even a single changed space produces a completely different hash.
- 2
Choose the algorithm
SHA-256 is the sensible default; SHA-512 for longer output; SHA-1 only for legacy checksums.
- 3
Copy the hash
Compare it character by character with the value you were given.
When to use it
- You want to verify that two pieces of text are identical by comparing their hashes.
- You are learning how cryptographic hashes behave.
- You need a hash of a string for a technical task or test.
- You want to see how a tiny change in input completely changes the output.
How to understand this tool
A hash is a fixed-length fingerprint: the same input always gives the same output, but you cannot work backwards from the hash to the text. A one-character change should change the whole result, which is what makes hashes useful for checking that a file or password was not altered. SHA-1 is included for compatibility with old systems and is no longer considered collision-resistant.
What it will not do
- It cannot reverse a hash or recover the original input.
- It does not salt or stretch, so it is not the right way to store passwords.
Questions people ask
Can I reverse a hash?
No. Hashing is one-way. You can only verify by hashing a candidate input and comparing.
Is a hash a digital signature?
No. A hash alone proves nothing about who created it; signatures need a secret key.
One thing worth knowing
Encoding is not encryption. It changes representation, not confidentiality — never use it to hide sensitive data.