Octal to Decimal Converter
Convert octal to decimal instantly — accepts 0o prefixes — with Unix permission readings for small values.
About this number
What It Does
This converter turns an octal number into decimal. Each octal digit is a power of eight from the right — 1, 8, 64, 512 — and the decimal value is their weighted sum. It is the conversion you need when an API takes a file mode as an integer, and for permission-sized values the tool also spells out what the mode means.
When to Use It
- An API such as os.chmod or fs.chmod takes the mode as an integer and you have the octal digits.
- You found an octal escape such as \101 and want to know which character code it is.
- You are checking manual octal conversions.
- You are converting a batch of octal values from an old system.
Worked Examples
755
493 — the integer to pass when an API wants the mode as a plain number.
101
65, the ASCII code for A — which is why \101 in a C string is the letter A.
0o777
511, every permission bit set: rwxrwxrwx.
Features
How to Use
1. Type or paste a octal number — or a list, one per line. 2. The decimal value appears alongside, line for line. 3. Use the options to group digits or add a prefix, and the swap button to convert the other way.
Common Mistakes
- Converting a number through a JavaScript Number. Above 9,007,199,254,740,991 it silently rounds, so the last digits come out wrong. This tool uses BigInt and stays exact at any size.
- Forgetting that the same digits mean different values in different bases. 10 is ten in decimal, two in binary, eight in octal and sixteen in hex — always label which base a value is in.
- Treating a minus sign as how a computer stores a negative number. Hardware uses two's complement, so a negative value's bit pattern looks nothing like its positive counterpart.
Frequently Asked Questions
Related Tools
Conversion runs in your browser with exact integer arithmetic. Nothing is uploaded.