THE RIGHT TOOL FOR YOUR NEXT BYTE

Decimal to Octal Converter

Type a whole base-10 integer such as 493 or 255 to see its exact base-8 octal representation instantly in your browser, with no rounding on large integers.

→
Runs locally
2 charactersWhole numbers · exact precision
Ready
Exact integer resultBase 8
Tip: enter a whole number in the selected input base.
Your data stays in your browser Free. No sign-up. Exact integer conversion
01 / EXPLAINED SIMPLY

How to convert decimal to octal by hand

To convert a positive base-10 integer to base 8, divide the number repeatedly by 8 and record each remainder until the quotient reaches 0. Reading the remainders from bottom to top gives the octal digits.

Take decimal 493 as an example: 493 ÷ 8 = 61 remainder 5; 61 ÷ 8 = 7 remainder 5; 7 ÷ 8 = 0 remainder 7. Reading the remainders in reverse order produces 755. To check the result, add the powers of 8: 7 × 64 + 5 × 8 + 5 × 1 = 448 + 40 + 5 = 493.

Single byte ceiling

Decimal 255 converts to octal 377.

255
Permission integer

Decimal 493 converts to octal 755.

493
Negative integer

Leading minus sign is preserved: -42 becomes -52.

-42
02 / CONVERSION EXAMPLES

Decimal to octal comparison table

Compare common decimal integers across octal, binary, and hexadecimal. Click Try ↑ on any row to run it immediately, then switch the To dropdown if you want to compare base 2 or base 16 for the same input.

Decimal integers compared across octal, binary, and hexadecimal
Decimal inputOctal (base 8)Binary (base 2)Hex (base 16)
8
1010008
42
521010102A
64
100100000040
255
37711111111FF
493
7551111011011ED
-42
-52-101010-2A
9007199254740993
40000000000000000110000000000000000000000000000000000000000000000000000120000000000001

Need base 2 instead? Open Decimal to Binary. Use Octal to Decimal to convert in reverse, or Binary to Octal and Octal to Binary for bit-level grouping.

GOOD QUESTIONS

Frequently asked questions

Input limits and formatting rules for decimal-to-octal conversion.

Can I paste a decimal number with commas or decimals?

No. Enter a whole base-10 integer using digits 0–9 and an optional leading minus sign. Remove thousands commas and fractions before converting.

How does the converter handle negative decimal numbers?

It converts the positive magnitude to base 8 and preserves the leading minus sign, so -42 becomes -52.

Will large decimal numbers lose precision?

No. Inputs up to 4,096 digits are parsed with exact BigInt integer arithmetic, preserving values far beyond 2^53.

How do I convert octal back to decimal?

Click the Swap button right below the output box to reverse From and To to Octal (8) → Decimal (10) immediately.