sha3-256 hash generator online

Recommended

Create 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.

Runs in your browser
A hash is one-way. It can't be turned back into the text.
Check & convert

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.

Formats for hello world
Hex
644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938
HEX (upper case)
644BCC7E564373040999AAC89E7622F3CA71FBA1D972FD94A31C3BFBF24E3938
Base64
ZEvMflZDcwQJmarInnYi88px+6HZcv2Uoxw7+/JOOTg=

Files are read in your browser and never uploaded.

In short

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.

SecureNo practical attacks known. Fine for integrity checks and signatures.
Where you meet it
  • New designs that want an alternative to SHA-2
  • Post-quantum signature schemes
  • Protocols that need no length extension
Try it

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.

Hash A…
Hash B…

Calculating…

SHA-3 vs Keccak

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.

Use it in code

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.

PHP
echo hash('sha3-256', 'hello world');
Python
import hashlib

print(hashlib.sha3_256("hello world".encode()).hexdigest())
Node.js
import { createHash } from "node:crypto";

console.log(createHash("sha3-256").update("hello world").digest("hex"));
Java
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+
  }
}
Go
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.

Command line
printf '%s' 'hello world' | openssl dgst -sha3-256
Test values

SHA3-256 test values

Hashes of common test strings (UTF-8, no line break). Use them to check your own implementation.

Inputsha3-256
empty stringa7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a
abc3a985da74fe225b2045c172d6bd390bd855f086e3e9d525b46bfe24511431532
hello world644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938
The quick brown fox jumps over the lazy dog69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04
Common mistakes

Why your SHA3-256 doesn't match

SHA3-256 is not Keccak-256

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.

A line break sneaks in

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.

Same text, different 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.

Upper or lower case

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:".

This tool trims and uses CRLF

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.

Compare

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.

AlgorithmHashBits
sha3-224dfb7f18c77e928bb56faeb2da27291bd790bc1045cde45f3210bb6c5224
sha3-256644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938256
sha3-38483bff28dde1b1bf5810071c6643c08e5b05bdb836effd70b403ea8ea0a634dc4997eb1053aa3593f590f9c63630dd90b384
sha3-512840006653e9ac9e95117a15c915caab81662918e925de9e004f774ff82d7079a40d4d27b1b372657c61d46d470304c88c788b3a4527ad074d1dccbee5dbaa99a512
Measured on your device

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.

FAQ

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.

Good to know

Before you rely on it

Searches the list of pages on this site. What you type stays in your browser.