Skip to content
ConvertCalculate

Hexadecimal to Octal

Easily convert numbers from Hexadecimal to Octal format to simplify coding, digital logic design, or mathematical operations, ensuring precise and reliable results for various technical applications.

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

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

How it works

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

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

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

Examples

Worked examples, digit by digit:

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

Hexadecimal to Octal: frequently asked questions

How do I convert hexadecimal to octal?
Convert the hexadecimal number to binary first, then regroup the bits for octal. For example, hexadecimal 2D is 55 in octal. The converter above does this instantly for any value.
What is FF in octal?
Hexadecimal FF equals 377 in octal (the value 255, the largest number that fits in one byte).
Why are hexadecimal and octal used?
Hexadecimal (base 16, digits 0–9 and A–F) writes each byte as exactly two characters, which is why it is used for colours (#FF8800), memory addresses and MAC addresses. Octal (base 8) groups bits in threes.