Binary and Hexadecimal Basics
A bit is one binary digit, so it can only be 0 or 1. Bits are grouped into fixed-size chunks so that patterns of them are easier to read, count and talk about: a nibble is 4 bits and a byte is 8 bits.
A single bit on its own carries very little information, so data is nearly always handled in groups. A nibble is exactly four bits and a byte is exactly eight bits, so one byte is the same size as two nibbles.
| Unit | Number of bits | Also worth knowing |
|---|---|---|
| Bit | 1 | A single binary digit, 0 or 1 |
| Nibble | 4 | Half of a byte |
| Byte | 8 | Two nibbles |
For example, the byte 10100111 splits down the middle into 1010 and 0111. Each half is four bits long, so this byte is made of two nibbles. Nothing about the value changes: the split just lets you describe half of the byte at a time.
Because every nibble is the same size, one nibble can be written as a single hexadecimal digit (0 to F), which is why a byte is often shown as two hexadecimal digits.
OCR GCSE Computer Science · Binary and Hexadecimal Basics
OCR GCSE Computer Science · Binary to Hexadecimal Conversion
OCR GCSE Computer Science · Units and File Sizes