How it works
Hexadecimal counts in base 16, octal counts in base 8. Converting means rewriting the same quantity with a different set of digits — the value never changes, only how it is written.
- Convert each hexadecimal digit to its decimal value and add them up.
- Divide that total by 8, keeping the remainders.
- Read the remainders bottom to top for the octal result.
The reverse conversion is Octal to Hexadecimal, which also handles every other base pair.
Examples
Worked examples, digit by digit:
- 10 (hexadecimal) = 16 in decimal = 20 (octal)
- 21 (hexadecimal) = 33 in decimal = 41 (octal)
- FF (hexadecimal) = 255 in decimal = 377 (octal)
| Decimal | Binary | Octal | Hexadecimal |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 |
| 2 | 10 | 2 | 2 |
| 4 | 100 | 4 | 4 |
| 8 | 1000 | 10 | 8 |
| 10 | 1010 | 12 | A |
| 15 | 1111 | 17 | F |
| 16 | 10000 | 20 | 10 |
| 32 | 100000 | 40 | 20 |
| 64 | 1000000 | 100 | 40 |
| 100 | 1100100 | 144 | 64 |
| 255 | 11111111 | 377 | FF |
Hexadecimal to Octal: frequently asked questions
- How do I convert hexadecimal to octal?
- Convert the hexadecimal number to binary first, then regroup the bits for octal. For example, hexadecimal 2D is 55 in octal. The converter above does this instantly for any value.
- What is FF in octal?
- Hexadecimal FF equals 377 in octal (the value 255, the largest number that fits in one byte).
- Why are hexadecimal and octal used?
- Hexadecimal (base 16, digits 0–9 and A–F) writes each byte as exactly two characters, which is why it is used for colours (#FF8800), memory addresses and MAC addresses. Octal (base 8) groups bits in threes.
