Decimal to Octal
Convert decimal numbers to base-8 octal for Unix permissions, escape codes, and legacy formats.
Decimal integer. Optional separators are ignored.
Octal output (base 8).
Convert decimal integers to base-8 octal. Octal is still common in Unix file permissions, legacy file format flags, and some assembly output, so a quick converter saves time during scripting and debugging.
Why are octal digits limited to 0–7?
Base-8 only uses digits 0 through 7. The tool rejects any other digit immediately.
Can I prefix octal input with 0o?
Yes. The 0o prefix is stripped before parsing.