Octal to Hex Converter

Type an octal number to get its hex value. The working goes through binary, which is the easiest way to do it by hand.

Octal numbers use the digits 0 to 7. A 0o prefix is fine.

Hex result
Result appears as you type

How to convert octal to hex by hand

Example 1: 777 in octal is 1FF in hex

Step 1: Octal to binary: write each digit as 3 bits

Because 8 = 2³, every octal digit maps to exactly 3 binary digits. Drop any leading zeros at the end.

Octal digitValue3 bits
77111
77111
77111

111 111 111 → 111111111

Step 2: Binary to hex: group the bits in 4s

Because 16 = 2⁴, every 4 bits make exactly one hex digit. Start from the right and pad the leftmost group with zeros if needed.

4-bit groupValueHex digit
000111
111115F
111115F

0001 1111 1111 → 1FF

Example 2: 1750 in octal is 3E8 in hex

Step 1: Octal to binary: write each digit as 3 bits

Because 8 = 2³, every octal digit maps to exactly 3 binary digits. Drop any leading zeros at the end.

Octal digitValue3 bits
11001
77111
55101
00000

001 111 101 000 → 1111101000

Step 2: Binary to hex: group the bits in 4s

Because 16 = 2⁴, every 4 bits make exactly one hex digit. Start from the right and pad the leftmost group with zeros if needed.

4-bit groupValueHex digit
001133
111014E
100088

0011 1110 1000 → 3E8

Octal to Hex conversion table

OctalHexDecimal
000
111
222
333
444
555
666
777
1088
1199
12A10
13B11
14C12
15D13
16E14
17F15
201016
402032
1004064
14464100
20080128
377FF255
400100256
1000200512
17503E81000
20004001024

Where this conversion comes up

  • Turning a permission mode into hex for an API or log that uses hex: 0o777 is 0x1FF.
  • Coursework that asks you to convert octal to hex without going through decimal.

Frequently asked questions

What is the quickest way to convert octal to hex by hand?

Write each octal digit as 3 bits, then regroup the bits in fours from the right and write each group as a hex digit.

Can I convert negative numbers?

Yes. Put a minus sign in front and it is kept in the result, for example -777 becomes -1FF. The converter does not produce two's complement.

Is there a limit on how big the number can be?

No practical limit. The conversion uses arbitrary precision integers, so long values stay exact. The step-by-step working is shown for numbers up to 24 digits.

Can I convert fractions?

Not with this tool. It converts whole octal numbers to whole hex numbers.

Other number converters

Going the other way? Use the Hex to Octal Converter. To see a number in every base at once, try the all-in-one number converter.

Local Processing
End-to-End Encryption
Works Offline

Building Something Beyond This Tool?

We help teams design and build reliable web and mobile applications backed by well-structured APIs.