Hash Generator
Generate SHA-1, SHA-256, SHA-384, and SHA-512 hashes from any text, computed locally with the Web Crypto API.
How to use the Hash Generator
- Type or paste your text.
- All four hash values update automatically.
- Click any hash to copy it.
How it works
A hash function takes input of any length and produces a fixed-length string that changes completely if even one character of the input changes — for example, hashing "hello" and "Hello" with SHA-256 produces two completely unrelated results. Hashing is one-way: you can't recover the original text from the hash. Note: MD5 isn't offered here because it isn't available in browsers' built-in Web Crypto API and is considered cryptographically broken — SHA-256 or stronger is the modern standard.
Frequently asked questions
Can a hash be reversed back to the original text?
No — hashing is designed to be one-way. The only practical way to "reverse" a hash is to guess inputs and hash them until one matches, which is why hashes alone aren't suitable for storing passwords without additional techniques like salting.
Why isn't MD5 included?
Browsers' Web Crypto API doesn't implement MD5, and MD5 is considered broken for security purposes (collisions can be deliberately created). SHA-256 or SHA-512 are the recommended modern choices.