Octal to Binary Converter
Convert octal to binary instantly — three bits per digit — and read octal file permissions as rwx bits.
About this number
What It Does
This converter expands octal into binary, three bits for every octal digit. It accepts the 0o prefix used by Python and modern JavaScript. For permission-sized values it also spells out the rwx string, which is what most octal-to-binary lookups are really about: seeing which permission bits a mode like 640 turns on.
When to Use It
- You want to see exactly which permission bits a chmod mode sets.
- You are converting an octal escape sequence or constant from old C code.
- You are checking an octal value from a legacy system bit by bit.
- You are learning how octal digits map to bits.
Worked Examples
640
110 100 000 — rw-r-----: owner reads and writes, group reads, others nothing.
0o17
The 0o prefix is accepted. 001 111, so 1111 — fifteen.
4755
Four digits: the leading 4 is the setuid bit, giving 100 111 101 101.
Features
How to Use
1. Type or paste a octal number — or a list, one per line. 2. The binary 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.