How long is a SHA-256 hash output, called the message digest?

256 bits, as the name says.

Start playing free

  1. 160 bits
  2. 256 bits ✔
  3. 512 bits

Why: SHA-256 turns input of any size into a fixed 256-bit digest. SHA-1 gives 160 bits and SHA-512 gives 512 bits.

Huh, didn't know that: FIPS 180-4 specifies seven hash algorithms, with digest sizes from 160 to 512 bits.

The dad joke
Why did the hash fit every file? It is a one size fits all kind of function.
Like this card?
Play the game

References

Answer: 256 bits. SHA-256 turns input of any size into a fixed 256-bit digest. SHA-1 gives 160 bits and SHA-512 gives 512 bits.

  1. FIPS 180-4, Secure Hash Standard nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf
    The message digests range in length from 160 to 512 bits, depending on the algorithm.
    Checked 2026-10-10.

Think this answer is wrong? Tap "Challenge this answer" on the card in the game and tell us why.

Test yourself in the game