SHAKE128 Hash Generator
Generate SHAKE128 output of any length from text or files in your browser — the SHA-3 extendable-output function.
Digest
About this input
Import from File
Drag & drop a file here
or
Supports .txt, .csv, .log, .json and other text files
What It Does
This tool computes SHAKE128, an extendable-output function (XOF) from the SHA-3 standard. Instead of a fixed-size digest you choose how many bits you want — 128, 256, 512, 1024 — and the sponge keeps squeezing until it has them. Its security level is 128 bits whatever length you ask for, so it is used where a protocol needs a variable amount of pseudo-random output, such as deriving keys or expanding seeds in post-quantum schemes.
When to Use It
- A protocol such as ML-KEM (Kyber) uses SHAKE128 to expand a seed and you need reference output.
- You need a digest of an unusual length without inventing a truncation scheme.
- You are implementing SHA-3 and want to test the squeeze phase past one block.
- You want to see that a longer SHAKE output starts with the shorter one.
Worked Examples
At 256 bits: 7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26 — the FIPS 202 vector.
abc
Switch the length from 256 to 1024 bits: the first 64 hex characters are unchanged. XOF output is a stream, so shorter outputs are prefixes of longer ones.
seed-0001
Ask for 1024 bits to get 128 bytes of deterministic output from a short seed — the expand pattern used in key generation.
Features
How to Use
1. Type or paste text, or choose Hash a file to hash a file's raw bytes. 2. Pick the output encoding the value will be compared against — hex is the usual one. 3. To check a published checksum, paste it into the comparison box; the tool tells you whether it matches and, if not, whether it is even the same algorithm.
Common Mistakes
- Hashing text that is not byte-for-byte what the other side hashed. A trailing newline, Windows line endings or a byte-order mark each produce a completely different SHAKE128 value, and none of them are visible.
- Comparing a hex digest with a Base64 one. They encode the same bytes differently, so they never look alike even when they match — switch the output format before deciding two values disagree.
- Comparing digests in mixed case and concluding they differ. Hex is case-insensitive; ABCDEF and abcdef are the same value.
- Using a plain SHAKE128 digest where a secret is involved. To prove a message came from someone holding a key, you need HMAC, not hash(secret + message).
Frequently Asked Questions
Everything runs in your browser. Text and files are hashed locally — nothing is uploaded, logged or stored.