Decimal to Octal Converter

Base 10
Base 8

Conversion table

SourceResult

Convert Decimal 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 Decimal to Octal

Repeatedly divide the decimal integer by the target base and record each remainder. Reading the remainders from last to first gives the converted value.

Decimal to Octal example

255 in base 10 equals 377 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