AnyHash
Skip to content

SHA-3 Hash Generator

Compute SHA-3 (Keccak) digests in all four sizes — 224, 256, 384, and 512 bits — entirely in your browser. Your input never leaves your device.

Or drop a file to hash its full contents

Drag & drop · up to 64 MB

SHA-3 hash

 

Type or paste input to see its hash instantly.

Code snippets

Generate SHA-3 in your language

import { createHash } from "node:crypto";

console.log(createHash("sha3-256").update("hello world").digest("hex"));

SHA-3 is built into Node.js, Python, OpenSSL, and most newer libraries. Output length depends on the chosen size: 56 (224-bit), 64 (256-bit), 96 (384-bit), or 128 (512-bit) lowercase hex characters.

What SHA-3 is

SHA-3 is the NIST-standardized successor to the SHA-2 family, based on the Keccak sponge construction that won the open SHA-3 competition in 2012. Instead of a compression function, it absorbs input into a 1600-bit permutation state and then squeezes out the digest.

That architecture makes SHA-3 structurally immune to length extension and lets the same primitive power both fixed-size hashes and the extendable SHAKE functions.

Which size to pick

  • SHA3-256 — the safe default, matching SHA-256's security target
  • SHA3-512 — when a protocol asks for a 64-byte output or extra margin
  • SHA3-224 / SHA3-384 — digest-size and interop constraints

Storing passwords? No SHA-3 size is suitable — all are much too fast. Use bcrypt or Argon2id.

Algorithm guide

SHA-3 explained

What is SHA-3?

SHA-3 is the third generation of the Secure Hash Algorithm family, standardized in FIPS 202 (2015). It was the result of a public, seven-year NIST competition that began in 2007 and ended in 2012 with Keccak — a hash designed by Guido Bertoni, Joan Daemen, Michaël Peeters, and Gilles Van Assche — as the winner. The final SHA-3 standard differs from the submitted Keccak only in a minor padding tweak agreed with the designers.

SHA-3 delivers four fixed-size hashes — SHA3-224, SHA3-256, SHA3-384, and SHA3-512 — plus two extendable-output functions, SHAKE128 and SHAKE256. It was not designed to outperform SHA-2 in software; its role is insurance: an independent, modern architecture that does not share SHA-2's design lineage, so a future weakness in one family need not afflict the other.

The sponge construction

SHA-2 processes input through a Merkle–Damgård chain of compression functions; SHA-3 instead permutes a 1600-bit state with a fixed permutation called Keccak-f. The construction has two phases:

  • Absorb. The input is padded and XORed into the state rate-by-rate, permuting the full state after each block.
  • Squeeze. Once all input is absorbed, output is read from the rate portion; if a longer output is needed (SHAKE), the state is permuted and read again.

This is why SHA-3 is immune to length extension: nothing about the absorbed message is emitted back out, so an attacker cannot continue the computation with extra blocks the way they can against a Merkle–Damgård hash.

The four sizes and SHAKE

The four SHA-3 digests differ in rate and capacity, which sets their security ceiling:

AlgorithmOutputCollision resistance
SHA3-22428 bytes / 56 hex112-bit
SHA3-25632 bytes / 64 hex128-bit
SHA3-38448 bytes / 96 hex192-bit
SHA3-51264 bytes / 128 hex256-bit
SHAKE128any length≥128-bit
SHAKE256any length≥256-bit

Security properties

No practical collision, preimage, or second-preimage attack is known against any SHA-3 size, and the Keccak permutation has survived more than a decade of scrutiny from the sponge-focused research community. Beyond the usual targets, SHA-3 resists length-extension attacks outright and its sponge design separates the rate (throughput) and capacity (security) parameters, making the security analysis unusually clean and quantitative.

SHA-3 vs SHA-2 vs pre-standard Keccak

  • Versus SHA-2: different construction, same security targets, generally slower in software but very fast on hardware (FPGAs/ASICs), no length extension, plus SHAKE XOFs.
  • Versus original Keccak: original-format Keccak hashes (e.g. Keccak-256) differ from SHA3-256 because of the padding tweak. Some ecosystems (notably Ethereum) still use the pre-standard Keccak; they do not match this tool.

How this tool works

SHA-3 is not exposed by the Web Crypto API, so this page uses the hash-wasm WebAssembly build. One WASM module is loaded once and reused for all four sizes, so the first digest pays a small init cost and everything after is effectively instant. Input is converted to bytes on your device (UTF-8, hex, or Base64), hashed locally, and never transmitted.

Worked examples you can verify right now

InputSHA3-256 digest
(empty string)a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a
hello world644bcc7e564373040999aac89e7622f3ca71fba1d972fd94a31c3bfbf24e3938
The quick brown fox jumps over the lazy dog69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04

Re-type any row above (UTF-8 bytes exactly, including the period in the fox sentence) and this tool returns precisely these 64-character digests. Switch the algorithm selector and the output length will change with it.

Frequently asked questions

Is SHA-3 the same as Keccak?

Almost. SHA-3 is based on the Keccak sponge construction that won NIST's 2007–2012 competition, with a small tweak to the padding that the Keccak team agreed to during standardization. SHA-3 hashes will not match the pre-standardization Keccak hashes of the same string.

How does SHA-3 differ from SHA-2?

SHA-2 is a Merkle–Damgård construction built on a compression function; SHA-3 is a sponge construction built on the Keccak permutation. SHA-3 is immune to length-extension attacks, can be extended to arbitrary output lengths (SHAKE128/256), and suits hardware, though it is usually slower in pure software.

Which SHA-3 size should I use?

For new work, SHA3-256 is the safe default — it matches SHA-256's widely accepted 128-bit collision level. Choose SHA3-512 when a standard or protocol asks for extra margin, and the 224/384 sizes when you need a specific digest length or are matching an existing deployment.

Other hash tools