Format Code Now
/

SHA3-256 Hash Generator

HG-12

Paste text to get its SHA3-256 hash, the FIPS 202 standard version, 64 hex characters long. It is computed in your browser as you type.

Runs in your browser. Nothing is uploaded.

Text (hashed as UTF-8)

SHA3-256 hash

How to use it

  1. Type or paste your text into the input box. Sample loads the quick brown fox sentence.
  2. The SHA3-256 hash appears as you type.
  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.

SHA3-256 is not SHA-256

SHA-3 is a different design from SHA-2. It is built on the Keccak sponge, not on the SHA-256 round function, so SHA3-256 and SHA-256 give unrelated values for the same text. The empty string gives a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a in SHA3-256. Web Crypto does not include SHA-3, so this page carries its own Keccak code and checks it against the examples in FIPS 202.

SHA3-256 is not Keccak-256

Keccak-256, the version Ethereum uses, came before the standard and differs in one detail: the padding byte. SHA3-256 appends 0x06 where the original Keccak appends 0x01. That one byte gives completely different hashes. If a Solidity keccak256 value does not match this page, use the Keccak-256 page instead; this one follows the NIST standard only.

What gets hashed

The text is encoded as UTF-8 and hashed as typed, so a trailing space or line break changes the value. A lone surrogate half becomes U+FFFD first. The tool hashes text, not files, and it is not a way to store passwords: SHA-3 is fast, and password storage needs a slow, salted function such as bcrypt, scrypt or Argon2.

Questions people ask

How do I generate a SHA3-256 hash?

Paste or type your text into the input box and the SHA3-256 hash appears at once. Select hex or Base64 for the format, then copy it or download it as a .txt file. Everything happens in your browser.

What is the SHA3-256 hash of an empty string?

It is a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a. Leave the box empty to see it. This is the published value in the FIPS 202 examples, and it is a quick test for any SHA3-256 implementation.

What is the difference between SHA3-256 and SHA-256?

They are different algorithms from different families. SHA-256 is SHA-2, built on a Merkle-Damgard design, while SHA3-256 uses the Keccak sponge. Both output 256 bits, but the same text gives unrelated results. Neither is a drop-in replacement for the other.

Why does SHA3-256 not match Ethereum's keccak256?

Ethereum uses the original Keccak submission, whose padding byte differs from the final SHA-3 standard. The permutation is the same, but the result is different for every input. Use a Keccak-256 tool for Ethereum values.

Does the browser support SHA3-256 natively?

Not through Web Crypto, which offers SHA-1 and the SHA-2 family only. That is why this page includes its own implementation, written to FIPS 202 and checked against its test values.

Is SHA3-256 secure?

No practical attacks on SHA3-256 are known, and it is a NIST standard. As a fast hash it is still unsuitable for storing passwords by itself; that needs bcrypt, scrypt or Argon2 with a salt.

About this tool

SHA3-256 is the FIPS 202 standard built on the Keccak sponge. It is written out in this page's own code, because Web Crypto does not offer SHA-3, and checked against the FIPS 202 examples. It is not the same function as Keccak-256 as used by Ethereum, and it is not the same as SHA-256: the same text gives a different value in each. It is a fast general-purpose hash, so do not use it alone to store passwords: that needs a slow, salted function such as bcrypt, scrypt or Argon2, which this tool is not. 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: a file saved with different line endings would give a different hash than the same words typed here.

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