The hash
A digital fingerprint of the block. Change one detail and it changes completely.
Step 4 of 143 min readUpdated October 5, 2026
A fingerprint of fixed size#
A hash function turns any data, a word or a whole block, into a number of fixed size. Bitcoin uses SHA-256, whose result is 256 bits, written as 64 hexadecimal characters (0 to 9, a to f). Three properties matter:
- Deterministic: the same data always gives the same hash, on any computer.
- One-way: from a hash, there is no way back to the data, and no way to aim for a chosen result.
- Unpredictable: the smallest change produces an unrelated hash.
Change one character, change everything#
Edit the text below. The hash is computed in your browser at each keystroke; the characters that changed since your last edit are highlighted. Changing a single letter typically changes about 60 of the 64.
SHA-256d fingerprint
372403a6ef292b8a8323b0519e161b71a968b73065ce905ae8c0a32721f31a86This is what makes mining a pure game of trial and error: you cannot nudge a block toward a good hash, you can only try another variant and look at the result.
Bitcoin hashes the header, twice#
Miners do not hash the whole block, only its 80-byte header, and they apply SHA-256 twice in a row (SHA-256d). The transactions are still covered: the header contains their Merkle root, so changing any transaction changes the hash of the block.
Technical details
Explorers display block hashes with their bytes in reverse order compared to the raw output of SHA-256d. That is why block hashes appear to start with zeros: read as a number in that order, a small hash has its zeros in front. The block header reference does the computation step by step on a real block.