Hash Generator (SHA-256, SHA-1, SHA-512)
Get the SHA-1, SHA-256, SHA-384 and SHA-512 hash of any text, computed in your browser.
Hash generator
Type text. All four hashes update at once.
Result
SHA-256
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
SHA-1
a9993e364706816aba3e25717850c26c9cd0d89d
SHA-384
cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7
SHA-512
ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f
Private: Everything runs in this page. Nothing you type is sent anywhere or saved.
On this page
SHA-256 examples
| Text | SHA-256 |
|---|---|
| abc | ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad |
| (empty text) | e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
| hello world | b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9 |
| Hello world | 64ec88ca00b268e5ba1a35678a1b5316d212f4f366b2477232534a8aeca37f3c |
Formula
hash = SHA(UTF-8 bytes of the text), written as hexadecimal
How the hash generator works
- Step oneType or paste the text.
- Step twoThe four hashes appear below and change as you type.
- Step threeCopy the one you need. The same text always gives the same hash.
What this tool does not do
- A hash cannot be turned back into the text, and this tool does not try to.
- It is not a password hashing method: for storing passwords a slow, salted method is needed.
- SHA-1 is shown for checking old data only; it is not safe against deliberate collisions.
Frequently asked questions
Is a hash the same as encryption?
No. A hash is a one-way fingerprint. You cannot get the text back from it, and a tiny change in the text gives a completely different hash.
Which hash should I use?
SHA-256 is a good default. SHA-1 is no longer considered safe against deliberate collisions and is shown only for checking old values.
Why is MD5 missing?
This page uses the hashing built into your browser, which does not include MD5. The MD5 generator on this site has its own MD5 code.