Hex to Octal Converter

Convert a hexadecimal (base 16) number to octal (base 8) instantly. As an example, FF = 377. It runs entirely in your browser.

BaseThis number
Binary (base 2)
Octal (base 8)
Decimal (base 10)
Hexadecimal (base 16)

How to convert hexadecimal to octal

The simplest route from hexadecimal to octal goes through decimal: convert the hexadecimal value to decimal, then convert that to octal.

FF (hexadecimal) = 255 (decimal) = 377 (octal)

Worked example: FF in octal

Reading FF as base 16: F × 161 (= 240) + F × 160 (= 15) = 255 in decimal, which is 377 in octal.

More hexadecimal-to-octal examples: A = 12, 10 = 20, 40 = 100.

Binary, octal, decimal & hexadecimal reference table

DecimalBinaryOctalHex
1111
21022
410044
81000108
10101012A
15111117F
16100002010
321000004020
64100000010040
100110010014464
1281000000020080
25511111111377FF
256100000000400100
1024100000000002000400

About hexadecimal and octal

Hexadecimal: Hexadecimal is base-16, using 0–9 then A–F. Each hex digit is exactly four bits, so it is a compact way to write bytes — used for colours (#FF8800), memory addresses and MAC addresses.

Octal: Octal is base-8, using digits 0–7. Each octal digit maps to exactly three bits, which is why it appears in Unix file-permission modes such as 755.

Frequently asked questions

What is FF hexadecimal in octal?
FF in hexadecimal (base 16) equals 377 in octal (base 8), which is 255 in decimal.
How do I convert hexadecimal to octal by hand?
Convert hexadecimal to decimal first (FF = 255), then convert that decimal value to octal (255 = 377). The tool above does both steps for you.
Is this exact for very large numbers?
Yes. The converter uses big-integer (BigInt) arithmetic in your browser, so even very long hexadecimal values convert to octal with no rounding or precision loss.
Which characters are valid in hexadecimal?
Base-16 hexadecimal uses the digits 0–9 and A–F. Spaces, underscores and an optional 0x/0b/0o prefix are ignored; any other character is flagged as invalid.

Related number conversions

See all number-base conversions →