Skip to content
ConvertCalculate

Octal to Hexadecimal

Quickly and accurately convert numbers from Octal to Hexadecimal format, making it easier for programmers, engineers, and students to work with different numerical systems without manual calculations or errors.

  • Free
  • Instant results
  • Runs in your browser
In short

To convert octal to hexadecimal, convert the octal number to binary first, then regroup the bits for hexadecimal. For example, octal 55 is 2D in hexadecimal.

How it works

Octal counts in base 8, hexadecimal counts in base 16. Converting means rewriting the same quantity with a different set of digits — the value never changes, only how it is written.

  1. Convert each octal digit to its decimal value and add them up.
  2. Divide that total by 16, keeping the remainders.
  3. Read the remainders bottom to top for the hexadecimal result.

The reverse conversion is Hexadecimal to Octal, which also handles every other base pair.

Examples

Worked examples, digit by digit:

  • 12 (octal) = 10 in decimal = A (hexadecimal)
  • 25 (octal) = 21 in decimal = 15 (hexadecimal)
  • 377 (octal) = 255 in decimal = FF (hexadecimal)
Common values in every base
DecimalBinaryOctalHexadecimal
0000
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
25511111111377FF

Octal to Hexadecimal: frequently asked questions

How do I convert octal to hexadecimal?
Convert the octal number to binary first, then regroup the bits for hexadecimal. For example, octal 55 is 2D in hexadecimal. The converter above does this instantly for any value.
What is 377 in hexadecimal?
Octal 377 equals FF in hexadecimal (the value 255, the largest number that fits in one byte).
Why are octal and hexadecimal used?
Octal (base 8) is a compact way to write groups of three bits and is still used for Unix file permissions such as 755. Hexadecimal (base 16) writes each byte as two characters.