Number Converters · Browser · Free

Octal to Hex Converter

Type an octal number and get the same value written in hexadecimal, with its binary and decimal forms shown alongside. Numbers separated by spaces are converted one at a time.

Octal to hexadecimal conversion

This tool takes a number written in octal and writes the same value in hexadecimal. It also shows the binary and the decimal form of that value, so you can read the two base systems against each other.

Enter the value in the number field, with From set to Octal and To set to Hexadecimal. A sign in front of the number and a fractional point inside it are both accepted, and when you separate several numbers with spaces each one is converted on its own. Letters in the answer print in uppercase.

The form computes when you press Convert. The answer appears in a card below, where Copy writes the result to the clipboard and Reset restores the form to defaults. The Swap conversion button swaps the bases in place and carries the current value over.

Octal to hexadecimal formula

Both bases are positional, which means a digit is worth whatever its place makes it worth. Octal is base 8, so each place to the left is worth eight times the one before it, and it writes with the digits 0 to 7. Hexadecimal is base 16, so its places step up by sixteen, and after 0 to 9 it uses the letters A to F for the higher digits.

Take the octal number 20. Its left digit counts groups of eight and its right digit counts single units, so it says two eights and nothing over. Read in hexadecimal, that same amount is one group of sixteen with nothing left over, which is why the table prints it as 10.

Bigger amounts work the same way, and you can read them straight off the table instead of working them out: octal 37 is written 1F, octal 144 is written 64, octal 377 is written FF, octal 400 is written 100, and octal 2000 is written 400.

Octal to hexadecimal conversion table
Octal (base 8)Hexadecimal (base 16)
00
11
22
33
77
108
12A
17F
2010
371F
4020
10040
14464
377FF
400100
2000400