Menu

Hexadecimal

Hexadecimal

What happens if you need to display a large binary number such as:

1111 1011 1111 1010 0011

Larger binary numbers are hard to remember and hard to write out without making a mistake. Hexadecimal is a number system (base-16) and makes use of 0-9 and A-F. It allows us to work with binary numbers in a more manageable way. Each 4 bits of a binary number can be represented with 1 hexadecimal digit. For example:

1011 = B

The binary number 1111 1011 1111 1010 0011 split into five groups of four bits, each becoming one hexadecimal digit: F, B, F, A and 3, giving FBFA3. Below, the group 1011 worked out with place values 8, 4, 2 and 1: 8 + 2 + 1 = 11 = B, and a key showing 10 to 15 written as A to F.

Hexadecimal numbers are used commonly when representing colours on web pages.

Practise this