SHA hash generator
Paste text and pick the algorithm. Your browser computes the hash; the text is not sent anywhere.
Result
How it is calculated
- The text is encoded as UTF-8, then hashed by the browser’s Web Crypto API.
- The result is shown as lowercase hexadecimal or Base64.
- Any change to the text, even one space, changes the whole hash.
Example
The SHA-256 of “hello” starts with 2cf24dba5fb0a30e.
Good to know
- Hashing is not encryption: it cannot be decrypted, but short or common text can be found by guessing.
- SHA-1 is no longer collision resistant and MD5 is not offered. To store passwords, use bcrypt, scrypt or Argon2.
When to use it
- Check that a downloaded file matches the hash published by its author.
- Compare two files without opening them.
- To create a strong password instead, use the Password generator.
Frequently asked questions
Can a hash be reversed?
Not directly. But short or common inputs can be found by guessing, which is why passwords need slow hashes and a salt.
What is an HMAC?
A hash mixed with a secret key, used to prove a message comes from someone who knows the key. A plain hash proves nothing about the sender.
Why does a small change give a totally different hash?
Hash functions are built so that changing one bit changes about half of the output. This is called the avalanche effect.