Octal to Hexadecimal

Convert octal to hexadecimal instantly — expand each octal digit to three bits, then regroup those bits into fours and read them as hex digits. Type in either box to convert both ways. Useful for turning a base-eight value such as a Unix permission code into the compact hexadecimal used in low-level work.

Octal to Hexadecimal conversion table

Octal Hexadecimal
1 1
2 2
4 4
10 8
12 A
20 10
40 20
100 40
144 64
200 80
377 FF
400 100

How to convert octal to hexadecimal

To convert octal to hexadecimal, expand each octal digit to three bits, then regroup those bits into fours and read them as hex digits. For example, 12 in octal is A in hexadecimal. The converter above validates each digit for its base and updates as you type, and the swap button flips the direction so you can go from hexadecimal back to octal just as quickly.

Frequently asked questions

How do you convert octal to hexadecimal?

To convert octal to hexadecimal, expand each octal digit to three bits, then regroup those bits into fours and read them as hex digits. For example, 12 in octal is A in hexadecimal. The converter above does it instantly — type a octal value on the left and the hexadecimal result appears on the right, and you can type in either box to convert in the opposite direction. It only accepts valid digits for each base, so a stray character simply clears the result rather than giving a wrong answer.

What is 12 in hexadecimal?

12 in octal equals A in hexadecimal. The conversion table on this page lists common values — 1 is 1, and it continues up to 400 = 100 — so you can read off everyday values at a glance. Any value in between converts exactly too, because the tool carries the full number rather than the rounded figures printed here.

What is the difference between binary, decimal and hexadecimal?

They are just different bases — different numbers of digits before you carry over. Decimal (base 10) is the everyday system with digits 0–9. Binary (base 2) uses only 0 and 1, which is how computers store everything at the hardware level. Hexadecimal (base 16) uses 0–9 then A–F, and is a compact way to write long binary values because each hex digit maps to exactly four bits. The same quantity can be written in any base; only its notation changes.

Is this octal to hexadecimal converter free and accurate?

Yes — it is completely free with no sign-up, and it converts exactly using the standard positional method, validating that every digit is legal for its base. Useful for turning a base-eight value such as a Unix permission code into the compact hexadecimal used in low-level work. Everything runs locally in your browser, so nothing you enter is uploaded or stored. For octal, custom bases and step-by-step breakdowns, the full number base converter handles any base from 2 to 36.

More conversions

Hexadecimal → OctalDecimal → BinaryHexadecimal → DecimalDecimal → HexadecimalBinary → HexadecimalHexadecimal → BinaryOctal → DecimalDecimal → OctalOctal → BinaryBinary → OctalBinary → Decimal Number base converter →