Best uses
- Shorten long binary values for reading or documentation.
- Practice base conversion in computer science classes.
- Check low-level values where octal notation is used.
To convert binary to octal, group the binary digits into sets of three, convert each group to its octal value, and combine the results. This works because 23 = 8, so three binary digits map to one octal digit.
Convert (10111.1011)2 to octal.
| Binary = | 0 1 0 | 1 1 1 | . | 1 0 1 | 1 0 0 |
|---|---|---|---|---|---|
| Chunk = | _____ | _____ | . | _____ | _____ |
| Arrows = | ↓ | ↓ | . | ↓ | ↓ |
| Octal = | 2 | 7 | . | 5 | 4 |
Note: Use groups of three binary digits. Add leading zeros to the left of the whole-number part or trailing zeros to the right of the fractional part when a group is incomplete.
Octal is less common than hexadecimal today, but it still appears in some programming, file permission, and digital logic examples. Binary to octal conversion is helpful because each octal digit represents exactly three binary digits, making long binary values easier to read and compare.
| Binary | Octal |
|---|---|
| 0 | 0 |
| 1 | 1 |
| 10 | 2 |
| 11 | 3 |
| 100 | 4 |
| 101 | 5 |
| 110 | 6 |
| 111 | 7 |
| 1000 | 10 |
| 1001 | 11 |
| 1010 | 12 |
| 1011 | 13 |
| 1100 | 14 |
| 1101 | 15 |
| 1110 | 16 |
| 1111 | 17 |
| 10000 | 20 |
| 10001 | 21 |
| 10010 | 22 |
| 10011 | 23 |
| 10100 | 24 |
Binary to octal conversion is easiest when you group binary digits in sets of three. Each 3-bit group maps to one octal digit from 0 to 7.
Three binary bits represent values from 0 to 7, which exactly matches one octal digit.
Yes, leading zeros do not change the value and can make the first group complete.