Octal to Hex Converter
Convert octal numbers to hex instantly. For example, octal 2670 equals 5B8 in hex. See the working step by step, and the result in all four bases.
Step-by-step working
How the answer is reached, one step at a time.
All bases
The same number in every base. Copy any row.
How to use Octal to Hex Converter on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and clean results.
What you can do with Octal to Hex Converter
Everything this tool offers.
About Octal to Hex Converter on KickSolve
What it does and how to get the best results.
How to convert octal to hex
There is no direct shortcut between octal and hex, so convert through binary: write each digit as bits, regroup the bits for the new base, and read off the digits. The worked example below shows every step.
Octal digits and place values
Octal uses eight digits, 0 to 7, and each position is worth a power of 8.
Why hex is used
One hex digit equals exactly four bits, so two hex digits describe one byte. That makes hex the standard compact notation for binary data.
About this converter
It uses exact big-integer arithmetic. Whole numbers only: negative numbers work with a leading minus sign and prefixes such as 0b, 0o and 0x are accepted. Fractions are not supported. Everything runs in your browser.
Working with other number systems? Try Octal to Binary or Octal to Decimal, convert back with Hex to Octal, or use the Number Base Converter for any base from 2 to 36.
Read the KickSolve privacy policy for details about the site itself.
Worked example: octal 2670 to hex
The same steps the converter shows for any number.
Write each octal digit as 3 bits: 2 = 010 6 = 110 7 = 111 0 = 000 Join the bits: 010110111000 Group the bits in sets of 4 from the right: 0101 1011 1000 0101 = 5 1011 = B 1000 = 8 Result: 5B8
So octal 2670 equals hex 5B8.
Octal to Hex conversion table (0 to 32)
Quick reference for small numbers.
| Octal | Hex | Decimal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 3 | 3 |
| 4 | 4 | 4 |
| 5 | 5 | 5 |
| 6 | 6 | 6 |
| 7 | 7 | 7 |
| 10 | 8 | 8 |
| 11 | 9 | 9 |
| 12 | A | 10 |
| 13 | B | 11 |
| 14 | C | 12 |
| 15 | D | 13 |
| 16 | E | 14 |
| 17 | F | 15 |
| 20 | 10 | 16 |
| 21 | 11 | 17 |
| 22 | 12 | 18 |
| 23 | 13 | 19 |
| 24 | 14 | 20 |
| 25 | 15 | 21 |
| 26 | 16 | 22 |
| 27 | 17 | 23 |
| 30 | 18 | 24 |
| 31 | 19 | 25 |
| 32 | 1A | 26 |
| 33 | 1B | 27 |
| 34 | 1C | 28 |
| 35 | 1D | 29 |
| 36 | 1E | 30 |
| 37 | 1F | 31 |
| 40 | 20 | 32 |
Place values of octal
Each position is worth the base raised to a power.
| Position | Power | Value in decimal | In octal |
|---|---|---|---|
| 0 | 8^0 | 1 | 1 |
| 1 | 8^1 | 8 | 10 |
| 2 | 8^2 | 64 | 100 |
| 3 | 8^3 | 512 | 1000 |
| 4 | 8^4 | 4096 | 10000 |
| 5 | 8^5 | 32768 | 100000 |
| 6 | 8^6 | 262144 | 1000000 |
| 7 | 8^7 | 2097152 | 10000000 |
| 8 | 8^8 | 16777216 | 100000000 |
| 9 | 8^9 | 134217728 | 1000000000 |
| 10 | 8^10 | 1073741824 | 10000000000 |
| 11 | 8^11 | 8589934592 | 100000000000 |
Frequently asked questions
Quick answers.
How do I convert octal to hex?
There is no direct shortcut between octal and hex, so convert through binary: write each digit as bits, regroup the bits for the new base, and read off the digits.
What is 177777 in hex?
Octal 177777 equals FFFF in hex.
What is 40 in hex?
Octal 40 equals 20 in hex.
What is 310 in hex?
Octal 310 equals C8 in hex.
How do I convert hex back to octal?
Use the swap button above to open the hex to octal converter, or follow the same method in reverse.
What digits are valid in octal?
Octal numbers use 0 to 7.
What is octal?
Octal uses eight digits, 0 to 7, and each position is worth a power of 8.
Why is hex used?
One hex digit equals exactly four bits, so two hex digits describe one byte. That makes hex the standard compact notation for binary data.
Does it support negative numbers or fractions?
Negative whole numbers work with a leading minus sign. Fractions are not supported.
Does it show the working?
Yes. Under the result, the converter lists each step it used to convert octal to hex, so you can check your own homework or learn the method.
Can I see the result in other bases?
Yes. The All bases table shows the same number in binary, octal, decimal and hex, with a Copy button on every row.
Is the converter free and private?
Yes. It is free with no signup, and all conversion happens in your browser.
More free tools from KickSolve
Related everyday tools.