4.1.6

Converting Binary Numbers

Test yourself

Converting Binary and Hexadecimal

Both binary and hexadecimal can be used to represent the same number, so it's important to be able to convert between them.

Illustrative background for Binary to hexadecimalIllustrative background for Binary to hexadecimal ?? "content

Binary to hexadecimal

  • Binary can be converted to hexadecimal by grouping into groups of 4 bits called nibbles:
    • Start grouping from the right-hand side.
    • Convert each nibble separately.
Illustrative background for Hexadecimal to binaryIllustrative background for Hexadecimal to binary ?? "content

Hexadecimal to binary

  • Hexadecimal can be converted to binary by splitting each digit into nibbles:
    • Separately convert each hexadecimal digit into nibbles of binary.
    • Put all of the nibbles together.

Converting Denary and Hexadecimal

Both denary and hexadecimal can be used to represent the same number, so it's important to be able to convert between them.

Illustrative background for Denary to hexadecimal Illustrative background for Denary to hexadecimal  ?? "content

Denary to hexadecimal

  • The easiest method to convert denary numbers to hexadecimal is to first convert the denary to binary, and then use the binary to hexadecimal conversion algorithm.
Illustrative background for Hexadecimal to denaryIllustrative background for Hexadecimal to denary ?? "content

Hexadecimal to denary

  • To convert from hexadecimal to denary, you should:
    • Write out the powers of 16 above each hexadecimal digit.
    • For each place column, multiply the hexadecimal digit by the power of 16 above it.
    • Add together all of these results.

Jump to other topics

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Procedurally

6.3Thinking Logically

7Problem Solving & Programming

8Algorithms

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson