Decimal to Octal Converter
Convert a decimal number to octal and an octal number back to decimal.
Supports signed and fractional values in both base-10 and base-8.
Updated August 12, 2026
Introduction / overview
The Decimal to Octal Converter switches a number between base 10 and base 8. Type a decimal such as and you immediately get its octal form ; flip the mode and the same tool reads an octal value such as back into decimal .
One tool, two directions: “decimal to octal” is the default, and the “octal to decimal” mode runs the conversion the other way. Both output fields are read-only — the result always follows from whatever you type.
This is the tool to reach for when you are studying number systems, decoding an octal value from documentation, checking a permission code, or just want to confirm what a base-8 representation looks like. Conversions are exact, and the calculator handles negative and fractional values too — so you can convert to or to in the same way.
How to use / quick start
Keep “decimal to octal” selected
This is the default mode under Convert…, so you can usually skip this step.
Type the decimal number
For example, enter into the (Decimal input)₁₀ field.
Read the octal result
The (Octal output)₈ field shows — the same value written in base 8. Each place now stands for a power of 8 rather than 10.
Convert the other way when needed
Choose octal to decimal, type an octal value such as , and the (Decimal output)₁₀ field returns .
Worked example — why 6521 becomes 14571
Divide by 8, keep the remainder, and repeat with the quotient. The remainders, read from last to first, are the octal digits:
Reading the remainders upward gives . You never have to do this by hand — the calculator shows it instantly — but knowing the pattern makes it easy to sanity-check the result.
Calculation method
Decimal to octal — repeated division by 8
To convert a decimal value, divide it by 8 and record the remainder as the rightmost octal digit. Then divide the quotient by 8 again, and keep going until the quotient reaches zero. The remainders, collected in reverse order, are the octal digits:
Because 8 is larger than 10, octal digits appear less often than decimal ones — every three decimal digits usually compress into fewer octal digits, which is part of why octal is handy for compact output.
Octal to decimal — positional expansion
Going back, each octal digit sits at a position worth , starting from the right at :
For , that works out to:
The two modes are exact mirrors of each other, so you can check either direction and get the same value back.
What about fractions?
The same idea extends past the decimal point. Multiply the fractional part by 8, take the whole part as the next octal digit, and repeat. For example, becomes because .
Frequently asked questions
Why is an input like 18 rejected?
Because octal only has the digits through . A number such as contains an 8, which does not exist in base 8, so the calculator flags it. The decimal is fine — it just converts to octal .
Does it handle negative or fractional numbers?
Yes. Negative values keep their sign, so becomes . Fractions convert too — is , and reads back as .
How large a number can I convert?
The octal side accepts up to 16 digits, so the largest value is . The decimal side accepts magnitudes below . If you need hexadecimal or any base between 2 and 64, the integer base converter is a more general tool.
Limitations
This converter works with base 10 and base 8 only. The octal input accepts just the digits to and at most 16 digits, and the decimal input must be smaller than in magnitude. Integer conversions are exact. For fractional values that do not terminate in base 8 — such as , which repeats as — the result is shown to a practical number of digits rather than an endless string. For hexadecimal or other bases, use a dedicated base converter instead.
Related Calculators
Scale Calculator
Calculate scale factors and convert scaled or real dimensions for length, area, and volume.
Text to Unicode
Convert text to Unicode decimal HTML entities (e.g., A) and convert them back to text. Runs locally in your browser with one-click copy.
Integer Base Converter
Convert an integer between bases 2–64 (binary, octal, decimal, hexadecimal, base64, and custom). Runs locally in your browser.
IPv4 address converter
Convert an IPv4 address into decimal, binary, hexadecimal, and IPv4-mapped IPv6 representations. Runs locally in your browser with one-click copy.
Chmod calculator
Calculate Linux/Unix chmod permissions using checkboxes. Get the octal (e.g., 755) and symbolic (rwxr-xr-x) modes instantly. Runs locally in your browser.
Roman Numeral Converter
Convert an Arabic number up to 3,999,999 into Roman numerals or read a Roman numeral back into a number. Both directions run in your browser.