SHA3-256 of a word
hello
3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392
Compare it with the Keccak-256 of the same word: they are different.
Generate SHA3-256 and SHA3-512 hashes of text or files. SHA-3 is the newest NIST hash standard, built on a completely different design from SHA-2.
hello
3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392
Compare it with the Keccak-256 of the same word: they are different.
The quick brown fox jumps over the lazy dog
69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04
SHA3-256 test value.
a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a
The official empty-input value from FIPS 202.
SHA-3 is the third generation of NIST's Secure Hash Algorithm, standardised in 2015 as FIPS 202. It came out of an open five-year competition, which the Keccak algorithm (by Bertoni, Daemen, Peeters and Van Assche) won in 2012. SHA-3 was not created because SHA-2 is broken: it is a backup with a completely different internal design, so a future attack on SHA-2 would not affect it.
SHA-2 processes blocks with a compression function (the Merkle–Damgård design). SHA-3 uses a sponge: a 1600-bit state that first "absorbs" the input block by block, mixing it with the Keccak permutation, and then "squeezes" out as many output bits as needed. This design is naturally immune to length-extension attacks, which affect plain SHA-256 and SHA-512.
| SHA-2 (SHA-256) | SHA-3 (SHA3-256) | |
|---|---|---|
| Design | Merkle–Damgård | Sponge (Keccak-f[1600]) |
| Length-extension attacks | Vulnerable (use HMAC) | Not vulnerable |
| Speed in software | Faster | Slower, faster in hardware |
| Standard | FIPS 180-4 | FIPS 202 |
Before standardising, NIST changed the padding rule of Keccak. Ethereum had already adopted the original version, so SHA3-256 and Keccak-256 give different hashes for the same input. If you work with Ethereum or Solidity, use the Keccak-256 generator.
hash('sha3-256', 'hello');hash('sha3-512', 'hello');import hashlibhashlib.sha3_256(b'hello').hexdigest()hashlib.sha3_512(b'hello').hexdigest()// Node.jsimport { createHash } from 'node:crypto';createHash('sha3-256').update('hello').digest('hex');openssl dgst -sha3-256 file.zipMy SHA3-256 does not match an Ethereum hash
Ethereum uses Keccak-256, the pre-standard version. Select Keccak-256 in the top bar.
The browser's crypto.subtle does not support SHA-3
That is correct: the Web Crypto API only has SHA-1 and SHA-2. Use a library (this tool uses @noble/hashes) or a server-side function.
My result differs from the terminal
echo adds a newline. Use echo -n or printf.
Both are secure. SHA-3 has a different design and no length-extension weakness; SHA-256 is faster in software and more widely supported.
Almost. SHA-3 is Keccak with a different padding rule, so SHA3-256 and Keccak-256 produce different hashes.
256 bits, or 64 hexadecimal characters. SHA3-512 is 128 hex characters.
No. The hash is calculated in your browser.
Free, private developer tools that run in your browser. No signup, nothing uploaded, no waiting.
Tip: press Ctrl D to bookmark dev247.