Converting Binary & Hexadecimal
Computer Science: OCR A Level, topic 4.1.12
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.

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.

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.
-min,w_800.png)
Binary-hexadecimal conversion table
Test yourself on Converting Binary & Hexadecimal
Converting from binary to hexadecimal
Converting from hexadecimal to binary
When grouping digits, you should group digits in which direction?