Binary · Base 2 → Base 8
Binary to Octal Converter
Updated: June 2026
Binary to octal is the three-bit cousin of binary to hex. Because eight is two cubed, every group of three bits maps to exactly one octal digit — no multiplication, just grouping and a tiny lookup table of eight entries.
Free · No upload · Instant in the browser
The three-bit grouping method
Split the binary string into groups of three bits starting from the right. Pad the leftmost group with leading zeros if it is short, then replace each triple with its octal digit. Take 10110111:
10 110 111 ← raw bits
010 110 111 ← pad left to a full triple
2 6 7
result → 267
The whole conversion is pure substitution. This is exactly how octal earned its place in computing: it compresses binary into a third of the characters while keeping a clean bit alignment.
The triple lookup table
| Bits | Octal | Bits | Octal |
|---|---|---|---|
| 000 | 0 | 100 | 4 |
| 001 | 1 | 101 | 5 |
| 010 | 2 | 110 | 6 |
| 011 | 3 | 111 | 7 |
Only eight rows to remember — and they double as the Unix permission triples, where 111 = rwx (7), 101 = r-x (5) and 100 = r-- (4).
Padding and permissions
As with hex grouping, always count from the right so the least significant group is complete. A 9-bit permission mask divides perfectly into three octal digits, which is why chmod codes are exactly three digits long. If you start with the binary of a permission set — say 111101101 — grouping gives 111 101 101 = 755, instantly readable as rwxr-xr-x.
Where it's used
- Translating raw permission bitmasks into
chmodoctal codes. - Shortening binary constants in older systems and assemblers.
- Teaching base conversion alongside the hex nibble method.
- Reading binary data on platforms that traditionally favored octal.
Frequently asked questions
How do you convert binary to octal?
Group bits in threes from the right, pad the top group with zeros, and map each triple to an octal digit (0–7).
What is 111111111 in octal?
Grouped as 111 111 111, it is 777.
Why three bits per octal digit?
Because 8 = 2³, so three bits cover exactly the range 0–7 of one octal digit.
Do I convert through decimal?
No. Grouping bits in threes goes directly from binary to octal with no decimal step.