KickSolve • Free • Private

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 workingAll four bases at onceHandles very large numbers
Base 8
No number handy?
Hex resultBase 16

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.

Enter the octal numberType or paste it into the box. Prefixes, spaces and a minus sign are fine. Valid digits are 0 to 7.
Read the hex resultThe converted number appears instantly, with the other bases below it.
Follow the workingThe step-by-step working appears under the result. Copy the result or any base with its Copy button, or use Swap to convert the other way.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designYour numbers are converted in your browser and never sent anywhere.
Instant with stepsThe hex result and the full working update as you type.
Any sizeExact big-integer math, so there is no rounding on very long numbers.
All four basesSee binary, octal, decimal and hex together and copy any of them.

What you can do with Octal to Hex Converter

Everything this tool offers.

Unix file permissionsRead modes such as 755 or 644 used with chmod.
Legacy and embedded systemsWork with documentation that still prints octal.
Escape sequencesDecode octal escapes found in some languages and file formats.
Learning bit groupingSee how every octal digit equals exactly three bits.
Web colorsRead color codes such as #FF5733 as RGB values.
Memory addresses and bytesMake sense of addresses and byte values in debuggers.
MAC addresses and hashesWork with identifiers written in hexadecimal.
Hex dumpsRead the output of hex editors and network captures.

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.

OctalHexDecimal
000
111
222
333
444
555
666
777
1088
1199
12A10
13B11
14C12
15D13
16E14
17F15
201016
211117
221218
231319
241420
251521
261622
271723
301824
311925
321A26
331B27
341C28
351D29
361E30
371F31
402032

Place values of octal

Each position is worth the base raised to a power.

PositionPowerValue in decimalIn octal
08^011
18^1810
28^264100
38^35121000
48^4409610000
58^532768100000
68^62621441000000
78^7209715210000000
88^816777216100000000
98^91342177281000000000
108^10107374182410000000000
118^118589934592100000000000

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.