Skip to content
Brainlag

Binary, hex and data representation

Mostly method: place values, conversions and a few rules for units.

Conversions

Binary place values double from the right: 1, 2, 4, 8 and so on. Each hexadecimal digit stands for four binary digits, which makes binary to hex the quickest conversion.

1286432168421
01101001
Number base converter0110 1001 = 105 = 69 in hex

Units, images and sound

A bit is a 0 or a 1, and 8 bits make a byte. An image file grows with its width, height and colour depth; a sound file with its sample rate, bit depth and length.

UnitSize
Bit0 or 1
Nibble4 bits
Byte8 bits
Kilobyte1,000 bytes

Logic

ABA AND BA OR B
0000
0101
1001
1111
Printable binary and hex practiceIn the Shop

Questions

Why do computers use binary?

Their circuits have two states, on and off, which map neatly onto 1 and 0.

Related

Helps with GCSE computer science (AQA, Pearson Edexcel and OCR). AQA, Pearson Edexcel and OCR are trade marks of their owners. Brainlag is independent and is not affiliated with or endorsed by any exam board.