Decimal to Octal Converter

Convert decimal to octal (base 10 → base 8)

Use this converter when you have decimal integers (base 10) and need their octal representation (base 8).

This page is a focused Decimal → Octal variant built for speed: batch mode is enabled by default (one value per line).

Need other bases (binary/hex), prefixes, or extra formatting? Open the full Number Base Converter.


How to use it

  1. Paste your decimal values into the input (left).
  2. Use one number per line.
  3. Copy the octal results from the output (right).

Signed values are supported:

  • -9 becomes -11
  • +64 becomes 100

Input rules (decimal)

Integers only

Valid examples:

  • 0
  • 8
  • +42
  • -42
  • 000123 (leading zeros are fine)

Not supported:

  • 3.14
  • 1e6
  • 12,345 (remove commas)

Whitespace is okay

Extra spaces and empty lines are fine. In batch mode, each line is converted independently.


Output format (octal)

  • Output uses digits 0–7
  • Negative values keep a leading -
  • No 0o prefix by default

Examples:

  • 810
  • 911
  • 64100
  • 255377
  • -42-52

Batch example (one per line)

Input (decimal):

10
64
255
-42
3.14

Output (octal):

12
100
377
-52
!ERROR: Decimal input may contain only digits 0–9

One invalid line won’t break the rest.


Common use cases

File permissions (chmod-style thinking)

Octal is widely used to represent Unix permission bits (e.g. 755, 644).

If you’re translating a bitmask or permission value you saw in decimal into a more familiar octal form, this converter is handy.

Embedded systems and bit fields

Octal groups bits in chunks of 3, which can be a convenient way to inspect large binary values.

Learning number bases

Octal is a great bridge between binary and decimal, especially when you want a compact representation without jumping to hex.


Troubleshooting

“Invalid digit for decimal”

Decimal input can contain only digits 0–9 and an optional leading + or -.

Remove commas, periods, and scientific notation.


Notes

  • This is number base conversion for integers, not text/byte encoding.
  • Everything runs locally in your browser — nothing is uploaded.

Frequently Asked Questions

Yes. Use a leading minus sign (−) or plus sign (+) and the sign is preserved in the output.

Yes. This variant runs in batch mode by default: paste one decimal integer per line and get one octal result per line.

This page converts decimal input. If you want to paste octal values with prefixes like 0o755, use the full Number Base Converter and set the input base to Octal.

This converter is for integers only. Values like 3.14, 1e6, or 12,345 aren’t supported as decimal input.

No. All conversions run locally in your browser.

Try one of our format-specific converters below

Explore Our Tools

Read More From Our Blog