Octal to Hexadecimal Converter
Convert octal numbers to hexadecimal. Octal and hexadecimal both group bits, so converting between them is a way to move between older octal listings and modern hex dumps.
Octal to Hexadecimal converter
Result
- Binary
- —
- Octal
- —
- Decimal
- —
- Hexadecimal
- —
How to convert octal to hexadecimal
Replace each octal digit with its 3 bits, join all the bits, then split them into groups of 4 from the right and replace each group with its hexadecimal digit.
Example: 234 (octal) to hexadecimal
| Octal digit | 3-bit group |
|---|---|
| 2 | 010 |
| 3 | 011 |
| 4 | 100 |
| 4-bit group | Hexadecimal digit |
|---|---|
| 1001 | 9 |
| 1100 | C |
234 in octal = 9C in hexadecimal.
Examples
- 12 (octal) = A (hexadecimal)
- 234 (octal) = 9C (hexadecimal)
- 377 (octal) = FF (hexadecimal)
- 1750 (octal) = 3E8 (hexadecimal)
Octal to Hexadecimal conversion table
| Octal (base 8) | Hexadecimal (base 16) |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
| 5 | 5 |
| 6 | 6 |
| 7 | 7 |
| 10 | 8 |
| 11 | 9 |
| 12 | A |
| 13 | B |
| 14 | C |
| 15 | D |
| 16 | E |
| 17 | F |
| 20 | 10 |
| 24 | 14 |
| 40 | 20 |
| 62 | 32 |
| 100 | 40 |
| 144 | 64 |
| 177 | 7F |
| 200 | 80 |
| 377 | FF |
| 400 | 100 |
| 1000 | 200 |
| 1750 | 3E8 |
| 2000 | 400 |
The table lists the same whole numbers for every pair of bases.
Frequently asked questions
- What is 377 in hexadecimal?
- 377 in octal is FF in hexadecimal.
- How do I convert octal to hexadecimal by hand?
- Replace each octal digit with its 3 bits, join all the bits, then split them into groups of 4 from the right and replace each group with its hexadecimal digit.
- What digits does octal use?
- Octal uses the digits 0 to 7. Octal is best known from Unix file permissions: chmod 755 is three octal digits, one for owner, group and others.
- What is hexadecimal used for?
- Hexadecimal writes bytes compactly: web colors (#FF8800), memory addresses, MAC addresses and character codes all use it.