- Home
- Tools
- Math
- Number Base Converter
- Octal to Binary Converter
Octal to Binary Converter
Expand an octal number into binary: every octal digit becomes three bits, shown digit by digit.
Type a octal number in the first field and read it in binary in the second. It works the other way round as well. Whole numbers only; spaces, underscores and the prefixes 0b, 0o and 0x are fine.
Working
| Octal digit | As 3 bits |
|---|---|
| 3 | 011 |
| 1 | 001 |
| 7 | 111 |
Side by side: 011 001 111. Without the zeros in front: 11001111
Other bases
- Bit length
- 8 bits
- Fits in
- 1 byte
How to convert octal to binary by hand
Every octal digit becomes three bits. Take the digits one at a time, write three bits for each, and put the groups side by side.
For 317: 3 is 011, 1 is 001 and 7 is 111, which makes 011 001 111. Without the zero at the front the number is 11001111.
The working under the two fields at the top of the page does this for whatever number you type.
Good to know
- Keep all three bits of every digit except at the very front. A 1 in the middle of a number is 001, not 1.
- There are only eight groups to remember: 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.
- A file mode such as 644 unpacks the same way: 110 100 100, which reads rw-, r-- and r--.
Octal to binary table
| Octal | Binary |
|---|---|
| 0 | 000 |
| 1 | 001 |
| 2 | 010 |
| 3 | 011 |
| 4 | 100 |
| 5 | 101 |
| 6 | 110 |
| 7 | 111 |
| 10 | 001 000 |
| 11 | 001 001 |
| 12 | 001 010 |
| 13 | 001 011 |
| 14 | 001 100 |
| 15 | 001 101 |
| 16 | 001 110 |
| 17 | 001 111 |
| 20 | 010 000 |
| Octal | Binary |
|---|---|
| 24 | 010 100 |
| 40 | 100 000 |
| 62 | 110 010 |
| 100 | 001 000 000 |
| 144 | 001 100 100 |
| 177 | 001 111 111 |
| 200 | 010 000 000 |
| 310 | 011 001 000 |
| 377 | 011 111 111 |
| 400 | 100 000 000 |
| 764 | 111 110 100 |
| 1000 | 001 000 000 000 |
| 1750 | 001 111 101 000 |
| 2000 | 010 000 000 000 |
| 10000 | 001 000 000 000 000 |
| 177777 | 001 111 111 111 111 111 |
The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.