Base 8 to base 16

Convert Octal to Hexadecimal

Convert base 8 values to base 16. Integers remain exact even when they exceed JavaScript's ordinary safe-number limit.

528 = 2A16

Same value in common bases

BaseValue

Method

How to convert base 8 to base 16

Each octal digit is evaluated by its power of 8. The exact value is then repeatedly divided by 16 to produce the destination digits.

value10 = sum(digit x 8position)

For fractional digits, the converter keeps an exact rational numerator and denominator, then generates up to 32 destination digits. An ellipsis marks a repeating or longer expansion.

Examples

Octal to Hexadecimal table

Octal (base 8)Hexadecimal (base 16)
11
22
12A
522A
14464
377FF
2000400

Related

Continue converting