Base 2 to Base 8
Binary to Octal Converter
Converting binary to octal involves grouping binary digits into sets of 3 from right to left, then converting each 3-bit group into its equivalent octal digit (0–7).
Allowed: 0, 1
base 2
Examples:
Octal Result (Primary Target)base 8
12
Decimal (base 10)
10
Hexadecimal (base 16)
A
Step-by-Step Calculation Steps
Bit Grouping Method (3 bits per digit)
Group binary digits in sets of 3 from right to left (padded with leading zeros if needed):
Grouped Bits
001 | 010
Octal Digits
1 | 2 = 12
How to Convert Binary to Octal
Converting binary to octal involves grouping binary digits into sets of 3 from right to left, then converting each 3-bit group into its equivalent octal digit (0–7).
Conversion Formula / Rule
Group bits into 3s from right: (b₂b₁b₀)₂ = (b₂×4 + b₁×2 + b₀×1)₈ Worked Example: 11010110 (Binary) to Octal
Problem Convert 11010110 (base 2) into base 8
Step-by-Step Solution
- Pad binary string to a multiple of 3 digits: 011 010 110
- Convert group 1: 011₂ = (0×4 + 1×2 + 1×1) = 3₈
- Convert group 2: 010₂ = (0×4 + 1×2 + 0×1) = 2₈
- Convert group 3: 110₂ = (1×4 + 1×2 + 0×1) = 6₈
- Combine octal digits: 326₈
Final Result 326 (Octal)
Quick Conversion Reference Table (0–15)
Standard values across Binary (base 2), Octal (base 8), Decimal (base 10), and Hexadecimal (base 16):
| Decimal (10) | Binary (2) | Octal (8) | Hexadecimal (16) |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 10 | 8 |
| 9 | 1001 | 11 | 9 |
| 10 | 1010 | 12 | A |
| 11 | 1011 | 13 | B |
| 12 | 1100 | 14 | C |
| 13 | 1101 | 15 | D |
| 14 | 1110 | 16 | E |
| 15 | 1111 | 17 | F |