sha3-256 hash generator online
RecommendedCreate the sha3-256 hash of any text: 64 hex characters, the same result as PHP's hash(). Check a hash or a file below. Nothing leaves your browser.
Compare, hash a file, copy any format
Type text in the tool above or choose a file. Case, spaces and prefixes like sha3-256: don't matter.
hello world- Hex
644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938- HEX (upper case)
644BCC7E564373040999AAC89E7622F3CA71FBA1D972FD94A31C3BFBF24E3938- Base64
ZEvMflZDcwQJmarInnYi88px+6HZcv2Uoxw7+/JOOTg=
Files are read in your browser and never uploaded.
What is SHA3-256?
SHA3-256 is the 256-bit hash of the SHA-3 standard (FIPS 202, 2015), based on the Keccak sponge construction. It has the same length as SHA-256 but works completely differently, so a weakness in one would not affect the other. Careful: Ethereum's "Keccak-256" uses different padding and gives different results.
- New designs that want an alternative to SHA-2
- Post-quantum signature schemes
- Protocols that need no length extension
Change one letter, see what happens
A cryptographic hash changes about half of all bits when one input character changes. Nothing about the old hash tells you what the new one will be.
……Calculating…
Why your Ethereum hash doesn't match
Ethereum and Solidity's keccak256() use Keccak as submitted to the SHA-3 competition. NIST changed the padding byte from 01 to 06 when it standardised SHA-3, so every result differs.
- SHA3-256 (FIPS 202)
…- Keccak-256 (Ethereum)
…
The first 4 bytes of Keccak-256 of a function signature are its Solidity selector.
The same result in your code
Every snippet prints 644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938 for hello world, the same as the tool. They are run against PHP's hash() before each release.
echo hash('sha3-256', 'hello world');
import hashlib print(hashlib.sha3_256("hello world".encode()).hexdigest())
import { createHash } from "node:crypto"; console.log(createHash("sha3-256").update("hello world").digest("hex"));
import java.nio.charset.StandardCharsets; import java.security.MessageDigest; import java.util.HexFormat; public class Hash { public static void main(String[] args) throws Exception { byte[] digest = MessageDigest.getInstance("SHA3-256") .digest("hello world".getBytes(StandardCharsets.UTF_8)); System.out.println(HexFormat.of().formatHex(digest)); // Java 17+ } }
package main import ( "fmt" "crypto/sha3" ) func main() { fmt.Printf("%x\n", sha3.Sum256([]byte("hello world"))) }
crypto/sha3 is in the standard library since Go 1.24.
printf '%s' 'hello world' | openssl dgst -sha3-256
SHA3-256 test values
Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.
| Input | sha3-256 |
|---|---|
| empty string | a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a |
abc | 3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532 |
hello world | 644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938 |
The quick brown fox jumps over the lazy dog | 69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04 |
Why your SHA3-256 doesn't match
Ethereum and Solidity's keccak256() use the original Keccak padding (0x01) from before standardisation; FIPS 202 SHA-3 uses 0x06. Same length, different result. Compare both below.
echo "hello world" | sha256sum hashes 12 bytes: the text plus a line break. Use printf '%s' 'hello world' or echo -n to hash exactly 11 bytes.
The tool hashes UTF-8 bytes, like most languages. Windows APIs and .NET's Encoding.Unicode use UTF-16, older systems Latin-1. "ü" is 2 bytes in UTF-8, 1 in Latin-1, 2 in UTF-16, and each gives a different hash.
Hex is not case-sensitive: 5EB63BBB… and 5eb63bbb… are the same hash. Compare in one case, and watch for spaces or a prefix like "sha256:".
Like the form on the original site, the tool removes spaces and line breaks at the start and end and sends line breaks as CRLF (\r\n). For exact bytes use "Hash a file" or "Exactly as typed" in the check panel.
The SHA-3 family side by side
The same text, every SHA-3 algorithm. Shown for hello world; type in the tool above to use your text.
| Algorithm | Hash | Bits |
|---|---|---|
| sha3-224 | dfb7f18c77e928bb56faeb2da27291bd790bc1045cde45f3210bb6c5 | 224 |
| sha3-256 | 644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938 | 256 |
| sha3-384 | 83bff28dde1b1bf5810071c6643c08e5b05bdb836effd70b403ea8ea0a634dc4997eb1053aa3593f590f9c63630dd90b | 384 |
| sha3-512 | 840006653e9ac9e95117a15c915caab81662918e925de9e004f774ff82d7079a40d4d27b1b372657c61d46d470304c88c788b3a4527ad074d1dccbee5dbaa99a | 512 |
How fast is SHA3-256?
Hashes up to 4 MB of random data in your browser and compares with sha256, xxh3. Browser numbers are lower than native code, but the ranking holds.
Questions about SHA3-256
Can SHA3-256 be decrypted?
No. SHA3-256 is a one-way function: there is no key and no way to compute the input from the hash. Sites that "decrypt" SHA3-256 look the hash up in large tables of known inputs, which only works for short or common strings.
How long is a SHA3-256 hash?
A SHA3-256 hash is always 256 bits, written as 64 hexadecimal characters (32 bytes), no matter how long the input is.
Is SHA3-256 secure?
Yes. No practical attack on SHA3-256 is known, and it is approved for integrity checks and signatures. For passwords use a slow password hash instead.
Should I hash passwords with SHA3-256?
No. SHA3-256 is fast, so attackers can test huge numbers of guesses. Use Argon2id, bcrypt or scrypt with a unique salt per password.
Is SHA3-256 the same as Keccak-256?
No. Ethereum's Keccak-256 is the pre-standard version with different padding, so the results differ. The comparison below shows both for your text.