Octal to Binary Converter
CU-10Paste octal numbers, one per line, and get binary back. Each octal digit becomes exactly three bits, which is why permissions like 755 read so cleanly in binary.
Runs in your browser. Nothing is uploaded.
Numbers (one per line)
Result
How to use it
- Paste one octal number per line. A 0o prefix, spaces and underscores are accepted.
- Press Octal to binary. Use Binary to octal for the reverse direction.
- Group the binary result in fours or eights if you want it easier to read.
- Tick Trim leading zeros for the shortest form, or Add a prefix for 0o and 0b.
- Copy the result or download it as a .txt file.
Three bits per octal digit
An octal digit is a value from 0 to 7, which is three binary digits: 7 is 111, 5 is 101 and 0 is 000. The tool swaps each digit for its three bits, so 755 becomes 111101101. That makes Unix-style permission numbers easy to read: each digit is one group of read, write and execute bits. Going back, the binary number is padded on the left to a multiple of three digits and each group is swapped for an octal digit.
What it accepts
Octal digits are 0 to 7, so 8 and 9 are rejected with a message naming the character. A 0o prefix, spaces and underscores are accepted, and a leading minus sign is carried over. Only whole numbers are converted, with no fractions or two's complement. Leading zeros you type are kept unless you tick Trim leading zeros. The conversion works digit by digit, so long numbers are not rounded.
Error messages and what to do
| Message | What it means | Fix |
|---|---|---|
"789" is not an octal number: "8" is not allowed (use 0-7). | The line contains a digit that octal does not have. | Use only the digits 0 to 7. |
Questions people ask
How do I convert octal to binary?
Replace each octal digit with three bits: 0 is 000, 1 is 001, 2 is 010, 3 is 011, 4 is 100, 5 is 101, 6 is 110 and 7 is 111. Join them in order. The tool does this for each line you paste.
What is 755 in binary?
755 in octal is 111 101 101 in binary, which is 111101101. Read as file permissions that is the owner with read, write and execute, and the group and others with read and execute.
How do I convert binary to octal?
Group the binary digits in threes from the right, padding the left with zeros, and swap each group for its octal digit. For example 1111 becomes 001 111, which is 17. Press Binary to octal and the tool does it.
Why does the binary result have leading zeros?
Each octal digit is expanded to a full three bits, so 17 gives 001111. That keeps the width visible. Tick Trim leading zeros to get 1111 instead.
Does it convert octal fractions?
No. Only whole numbers are handled, so a decimal point is reported as an error because it is not an octal digit. Convert the whole part and the fraction part separately if you need both.
About this tool
Converts whole octal numbers to binary, and the second button goes the other way. Each digit is converted on its own (one octal digit is 3 bits), so leading zeros you type are kept: 0F becomes 00001111. Tick "Trim leading zeros" to drop them. Spaces and underscores inside a number are ignored, a leading minus sign is carried over, and a 0x, 0b or 0o prefix is accepted. Only whole numbers are handled; there is no fraction part and no two's complement. Each line is converted on its own, with no size limit other than your browser's.