Binary to Octal Converter
Paste binary and this binary to octal converter splits it into 3-bit groups, one octal digit each: 110101 becomes 65. The groups appear under the answer.
Binary to octal
How to convert binary to octal
- 01
Group in threes from the right
Pad the leftmost group with zeros if it is short:
11010becomes011 010. - 02
Convert each group
Each 3-bit group is one digit from 0 to 7. The places are worth 4, 2 and 1, so
011is 3 and010is 2. - 03
Write the digits in order
11010is 32 in octal, and 26 in decimal.
Octal digits and their 3 bits
The eight 3-bit groups. This is the whole lookup you need.
| Octal | Binary | Decimal |
|---|---|---|
| 0 | 000 | 0 |
| 1 | 001 | 1 |
| 2 | 010 | 2 |
| 3 | 011 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
Binary to octal table, 0 to 63
| Decimal | Binary | Octal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| 2 | 10 | 2 |
| 3 | 11 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
| 8 | 1000 | 10 |
| 9 | 1001 | 11 |
| 10 | 1010 | 12 |
| 11 | 1011 | 13 |
| 12 | 1100 | 14 |
| 13 | 1101 | 15 |
| 14 | 1110 | 16 |
| 15 | 1111 | 17 |
| 16 | 10000 | 20 |
| 17 | 10001 | 21 |
| 18 | 10010 | 22 |
| 19 | 10011 | 23 |
| 20 | 10100 | 24 |
| 21 | 10101 | 25 |
| 22 | 10110 | 26 |
| 23 | 10111 | 27 |
| 24 | 11000 | 30 |
| 25 | 11001 | 31 |
| 26 | 11010 | 32 |
| 27 | 11011 | 33 |
| 28 | 11100 | 34 |
| 29 | 11101 | 35 |
| 30 | 11110 | 36 |
| 31 | 11111 | 37 |
| 32 | 100000 | 40 |
| 33 | 100001 | 41 |
| 34 | 100010 | 42 |
| 35 | 100011 | 43 |
| 36 | 100100 | 44 |
| 37 | 100101 | 45 |
| 38 | 100110 | 46 |
| 39 | 100111 | 47 |
| 40 | 101000 | 50 |
| 41 | 101001 | 51 |
| 42 | 101010 | 52 |
| 43 | 101011 | 53 |
| 44 | 101100 | 54 |
| 45 | 101101 | 55 |
| 46 | 101110 | 56 |
| 47 | 101111 | 57 |
| 48 | 110000 | 60 |
| 49 | 110001 | 61 |
| 50 | 110010 | 62 |
| 51 | 110011 | 63 |
| 52 | 110100 | 64 |
| 53 | 110101 | 65 |
| 54 | 110110 | 66 |
| 55 | 110111 | 67 |
| 56 | 111000 | 70 |
| 57 | 111001 | 71 |
| 58 | 111010 | 72 |
| 59 | 111011 | 73 |
| 60 | 111100 | 74 |
| 61 | 111101 | 75 |
| 62 | 111110 | 76 |
| 63 | 111111 | 77 |
Examples
A few conversions with their groups:
111is 7, the largest single octal digit.1000is 10 in octal: pad it to001 000.11111111(255) is 377 in octal:011 111 111.111101101is 755, the file permission setting rwxr-xr-x on Linux and macOS.
Frequently asked questions
How do you convert binary to octal?
Split the binary into groups of 3 bits from the right, padding the leftmost group with zeros, then replace each group with its digit from 0 to 7. For example, 101110 is 101 110, which is 56 in octal.
What is 111 in octal?
111 is 7 in octal, and 7 in decimal too: 4 + 2 + 1. It is the largest value one octal digit can hold.
Why group binary in threes for octal?
Octal is base 8, and 8 is 2 to the power of 3, so every octal digit stands for exactly 3 bits. The conversion becomes a lookup with no arithmetic, the same way binary to hex uses groups of 4.