Base 8 to Base 16
Octal to Hexadecimal Converter
The cleanest way to convert octal to hexadecimal is using binary as a bridge: expand each octal digit into 3 binary bits, then re-group the bits into 4-bit nibbles for hexadecimal.
Allowed: 0–7
base 8
Examples:
Hexadecimal Result (Primary Target)base 16
40
Binary (base 2)
1000000
Decimal (base 10)
64
Step-by-Step Calculation Steps
Two-Step Conversion (Bridge)
Convert from Octal to Decimal/Binary first, then convert to Hexadecimal:
Step 1: Octal to Decimal
100 (Octal) = 64 (Decimal)
Step 2: Decimal to Hexadecimal
64 (Decimal) = 40 (Hexadecimal)
How to Convert Octal to Hexadecimal
The cleanest way to convert octal to hexadecimal is using binary as a bridge: expand each octal digit into 3 binary bits, then re-group the bits into 4-bit nibbles for hexadecimal.
Conversion Formula / Rule
Octal (base 8) ➔ 3-bit binary ➔ regroup into 4-bit nibbles ➔ Hex (base 16) Worked Example: 752 (Octal) to Hexadecimal
Problem Convert 752 (base 8) into base 16
Step-by-Step Solution
- Convert each octal digit to 3-bit binary: 7 ➔ 111, 5 ➔ 101, 2 ➔ 010
- Full binary stream: 111101010
- Regroup into 4-bit nibbles from right: [0001] [1110] [1010]
- Convert nibbles to hex: 0001 = 1, 1110 = E, 1010 = A
- Hexadecimal result = 1EA₁₆
Final Result 1EA (Hexadecimal)
Quick Conversion Reference Table (0–15)
Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):
| Decimal (10) | Binary (2) | Octal (8) | Hexadecimal (16) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |