Skip to content

↑↓ navigate ↵ open Esc close Search runs locally

SHA-3 Hash Generator (SHA3-256 & SHA3-512)

Generate SHA3-256 and SHA3-512 hashes of text or files. SHA-3 is the newest NIST hash standard, built on a completely different design from SHA-2.

  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up
Algorithms
0 BUTF-8
Hashes

    Runs in your browser. Files are never uploaded. Tip: drop a file to verify a download

    How to use the SHA-3 tool#

    1. Type or paste text, or drop a file onto the left box.
    2. SHA3-256 and SHA3-512 are calculated together. Turn either off in the top bar.
    3. Paste an expected value into Compare with a checksum to verify.
    4. Working with Ethereum? Select Keccak-256 instead: it is not the same as SHA3-256.

    Examples#

    SHA3-256 of a word

    Input
    hello
    Output
    3338be694f50c5f338814986cdf0686453a888b84f424d792af4b9202398f392

    Compare it with the Keccak-256 of the same word: they are different.

    The classic test sentence

    Input
    The quick brown fox jumps over the lazy dog
    Output
    69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04

    SHA3-256 test value.

    SHA3-256 of an empty string

    Input
    Output
    a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a

    The official empty-input value from FIPS 202.

    What is SHA-3?#

    SHA-3 is the third generation of NIST's Secure Hash Algorithm, standardised in 2015 as FIPS 202. It came out of an open five-year competition, which the Keccak algorithm (by Bertoni, Daemen, Peeters and Van Assche) won in 2012. SHA-3 was not created because SHA-2 is broken: it is a backup with a completely different internal design, so a future attack on SHA-2 would not affect it.

    How SHA-3 is different: the sponge#

    SHA-2 processes blocks with a compression function (the Merkle–Damgård design). SHA-3 uses a sponge: a 1600-bit state that first "absorbs" the input block by block, mixing it with the Keccak permutation, and then "squeezes" out as many output bits as needed. This design is naturally immune to length-extension attacks, which affect plain SHA-256 and SHA-512.

    SHA-2 (SHA-256)SHA-3 (SHA3-256)
    DesignMerkle–DamgårdSponge (Keccak-f[1600])
    Length-extension attacksVulnerable (use HMAC)Not vulnerable
    Speed in softwareFasterSlower, faster in hardware
    StandardFIPS 180-4FIPS 202

    SHA3-256 vs Keccak-256#

    Before standardising, NIST changed the padding rule of Keccak. Ethereum had already adopted the original version, so SHA3-256 and Keccak-256 give different hashes for the same input. If you work with Ethereum or Solidity, use the Keccak-256 generator.

    The SHA-3 family#

    • SHA3-224, SHA3-256, SHA3-384, SHA3-512: fixed-length hashes.
    • SHAKE128 and SHAKE256: extendable-output functions that can produce any length of output.

    SHA-3 in code#

    php
    hash('sha3-256', 'hello');hash('sha3-512', 'hello');
    python
    import hashlibhashlib.sha3_256(b'hello').hexdigest()hashlib.sha3_512(b'hello').hexdigest()
    javascript
    // Node.jsimport { createHash } from 'node:crypto';createHash('sha3-256').update('hello').digest('hex');
    bash
    openssl dgst -sha3-256 file.zip

    Common errors and fixes#

    • My SHA3-256 does not match an Ethereum hash

      Ethereum uses Keccak-256, the pre-standard version. Select Keccak-256 in the top bar.

    • The browser's crypto.subtle does not support SHA-3

      That is correct: the Web Crypto API only has SHA-1 and SHA-2. Use a library (this tool uses @noble/hashes) or a server-side function.

    • My result differs from the terminal

      echo adds a newline. Use echo -n or printf.

    Frequently asked questions#

    Is SHA-3 better than SHA-256?

    Both are secure. SHA-3 has a different design and no length-extension weakness; SHA-256 is faster in software and more widely supported.

    Is SHA-3 the same as Keccak?

    Almost. SHA-3 is Keccak with a different padding rule, so SHA3-256 and Keccak-256 produce different hashes.

    How long is a SHA3-256 hash?

    256 bits, or 64 hexadecimal characters. SHA3-512 is 128 hex characters.

    Is my file uploaded?

    No. The hash is calculated in your browser.

    Your next tool is one search away.

    Free, private developer tools that run in your browser. No signup, nothing uploaded, no waiting.

    Browse all tools

    Tip: press Ctrl D to bookmark dev247.