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