Blockchain concepts explained with care and context.

Bitcoin nBits stores a compact version of the proof-of-work target

Laptop and clock on a blockchain research desk
AI-generated photographic illustration; not documentary photography.

A block explorer may show a short hexadecimal value labelled “bits.” It is easy to mistake that field for a size or a count. In a Bitcoin block header, nBits encodes the proof-of-work target in a compact form.

The Bitcoin developer reference explains the relationship between this 32-bit field and the much larger target value. The representation is similar in spirit to scientific notation: a compact coefficient and an exponent describe a larger number.

Keep three values separate

The header hash is the result being checked. The target is the threshold it must satisfy. The nBits value is an encoding of that target, rather than the hash itself.

A difficulty figure shown by an explorer is another representation, usually expressed relative to a reference target. Do not compare its displayed number directly with the hexadecimal nBits text and expect ordinary numerical equality.

Read the encoding with a trusted implementation

Bitcoin Core’s proof-of-work interface includes conversion from nBits to a target. The encoding has historical details and validity constraints, so a homemade conversion used for learning should not be treated as a consensus implementation.

For a read-only study exercise, choose one historical block and record:

  • the network and block hash;
  • the explorer’s nBits field;
  • the decoded target from a trusted tool;
  • the source and version used for the conversion.

This gives you a reproducible example without changing a wallet or submitting a transaction. If two tools disagree, first check byte order, display format and whether they refer to the same block and network.

It does not describe the transactions inside

The field is not a measure of transaction volume, fees or the economic value transferred. It belongs to the block’s proof-of-work conditions. A short representation can carry a large threshold without being a summary of everything else in the block.

Once those roles are separated, the explorer becomes easier to read: “bits,” target, hash and difficulty are connected, but each label answers a different question.