Hex to Octal Converter

Base 16
Base 8

Conversion table

SourceResult

Convert Hex integers to Octal with exact arbitrary-precision arithmetic. Signed values, long integers, common source prefixes, spaces, and underscore separators are accepted, and the result updates as the input changes.

How to convert Hex to Octal

Interpret the source digits as one exact integer using powers of the source base, then repeatedly divide that integer by the target base. No floating-point arithmetic is used.

Hex to Octal example

2af in base 16 equals 1257 in base 8. The converter supports values much larger than JavaScript's ordinary safe integer range because it uses integer arithmetic rather than floating-point numbers.

Common conversions: Binary to Decimal · Decimal to Binary · Binary to Hex · Hex to Binary · Decimal to Hex · Hex to Decimal · Binary to Octal · Octal to Binary