Bits, bytes, hex, and endianness
Computers store Bitcoin data as bits grouped into bytes. Hexadecimal is a compact way to display those bytes, while byte order determines how a number is read.
Loading lesson visuals...
Learn the idea
A bit is one binary digit, either 0 or 1. Eight bits form a byte. Hexadecimal, or hex, writes each group of four bits as one character from 0 to 9 or a to f. Endianness is the order in which a multi-byte number is stored or displayed.
Group bits into bytes
The binary value 10101100 is one byte. Its high four bits are 1010 and its low four bits are 1100.
Inspect every idea above to open it.
Endianness reverses byte order. Characters within each byte stay together, so 12 34 becomes 34 12, not 43 21.
The questions unlock after every required learning activity
Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.