- Home
- Tools
- Math
- Number Base Converter
- Binary to Octal Converter
Binary to Octal Converter
Convert binary to octal three bits at a time, and see which group becomes which octal digit.
Type a binary number in the first field and read it in octal 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
| Group of 3 bits | Octal digit |
|---|---|
| 001 | 1 |
| 011 | 3 |
| 101 | 5 |
Side by side: 135
Other bases
- Bit length
- 7 bits
- Fits in
- 1 byte
How to convert binary to octal by hand
Eight is 2³, so one octal digit stands for exactly three bits.
Split the bits into groups of three, starting from the right, and fill the left-hand group with zeros if it is short. Then write down the value of each group. For 1011101 the groups are 001, 011 and 101. Those are 1, 3 and 5, so the answer is 135.
The working under the two fields at the top of the page does this for whatever number you type.
Good to know
- Group from the right, as with hexadecimal. Only the left-hand group may be filled up with zeros.
- The value of a group is the sum of 4, 2 and 1 for the bits that are set: 110 is 4 + 2 = 6.
- Three bits per digit is why octal suits Unix permissions. Read, write and execute are one bit each, so rwx is 111, which is 7, and r-x is 101, which is 5.
Binary to octal table
| Binary | Octal |
|---|---|
| 000 | 0 |
| 001 | 1 |
| 010 | 2 |
| 011 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 001 000 | 10 |
| 001 001 | 11 |
| 001 010 | 12 |
| 001 011 | 13 |
| 001 100 | 14 |
| 001 101 | 15 |
| 001 110 | 16 |
| 001 111 | 17 |
| 010 000 | 20 |
| Binary | Octal |
|---|---|
| 010 100 | 24 |
| 100 000 | 40 |
| 110 010 | 62 |
| 001 000 000 | 100 |
| 001 100 100 | 144 |
| 001 111 111 | 177 |
| 010 000 000 | 200 |
| 011 001 000 | 310 |
| 011 111 111 | 377 |
| 100 000 000 | 400 |
| 111 110 100 | 764 |
| 001 000 000 000 | 1000 |
| 001 111 101 000 | 1750 |
| 010 000 000 000 | 2000 |
| 001 000 000 000 000 | 10000 |
| 001 111 111 111 111 111 | 177777 |
The number base converter shows binary, octal, decimal and hexadecimal next to each other, and explains positional notation and two's complement.