Format Code Now
/
Hash & generateSHAKE256 Hash Generator Next: CRC-16 Hash Generator ›

SHAKE256 Hash Generator

HG-32

Paste text, choose how many bytes you want, and get the SHAKE256 output. Unlike a normal hash, SHAKE256 can produce any length from the same input.

Runs in your browser. Nothing is uploaded.

Text (hashed as UTF-8)

SHAKE256 output

How to use it

  1. Type or paste your text into the input box. Sample loads the quick brown fox sentence.
  2. Pick the output length: 16, 32, 48, 64, 128, 256, 512 or 1024 bytes.
  3. Choose lowercase hex, UPPERCASE hex or Base64 for the output.
  4. Tick Ignore one trailing line break if your text ends with a newline you do not want hashed.
  5. Copy the result, or download it as a .txt file.

What SHAKE256 is

SHAKE256 is an extendable-output function from FIPS 202, built on the same Keccak sponge as SHA-3. You choose the length of the output instead of getting a fixed size. A longer output starts with the shorter one, so the 64-byte result begins with the 32-byte result for the same text. At 32 bytes it is still different from SHA3-256, because SHAKE uses its own domain bytes. Web Crypto does not offer it, so this page carries its own implementation and checks it against published test values.

Exactly what gets hashed

The text in the box is encoded as UTF-8 and hashed as typed. A space or a line break at the end changes the result, which is why the trailing line break option exists. The select offers common lengths from 16 to 1024 bytes; the code itself accepts 1 to 4096. This hashes text, not files, and it does not take a key, so it is not a MAC. It is a fast function, so it is not suitable for storing passwords by itself.

Questions people ask

How do I generate a SHAKE256 hash online?

Type or paste your text, pick an output length, and the SHAKE256 result appears straight away. Choose hex or Base64, then copy it or download it as a .txt file. It is computed in your browser.

What is the difference between SHAKE256 and SHA3-256?

Both use the Keccak sponge, but SHAKE256 is an extendable-output function with a variable length and different domain bytes. Even at 32 bytes the two give different values for the same text.

What is the SHAKE256 hash of an empty string?

With 32 bytes of output it is 46b9dd2b0ba88d13233b3feb743eeb243fcd52ea62b81b82b50c27646ed5762f in hex. Leave the box empty, keep the default 32-byte length, and this page returns that value.

Does a longer output contain the shorter one?

Yes. SHAKE256 squeezes bytes out of the same state, so the first 32 bytes of a 64-byte output equal the 32-byte output for the same text. Only the extra bytes are new.

How many bytes can I get?

The select offers 16, 32, 48, 64, 128, 256, 512 and 1024 bytes. That is 128 to 8192 bits. The underlying code accepts any whole number of bytes from 1 to 4096.

About this tool

SHAKE256 is an extendable-output function from FIPS 202: you choose how many bytes to get, from 1 up to 4096 here (the select offers common sizes). A longer output starts with the shorter one, so the 64-byte result begins with the 32-byte result. It is written out in this page's own code, because Web Crypto does not offer it, and checked against published test values. At 32 bytes it is not the same as SHA3-256, because the two use different domain bytes. The text is hashed exactly as typed, as UTF-8 (a lone surrogate half becomes U+FFFD first), so a trailing line break or a space changes the result; "Ignore one trailing line break" removes one. It hashes text, not files.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.