Convert Binary to Octal
Convert Binary (bin) to Octal (oct) instantly and accurately.
Selected Binary (bin) - available characters: 0, 1
Conversion Formula
Step-by-step example using the value 42 (decimal):
Convert Binary (base 2) → Octal (base 8)
Step 1: Expand each digit of 101010 (bin) by position:
1 × 2^5 = 32
0 × 2^4 = 0
1 × 2^3 = 8
0 × 2^2 = 0
1 × 2^1 = 2
0 × 2^0 = 0
────────────
Sum = 42 (decimal)
Step 2: Divide 42 by 8 repeatedly (read remainders upward):
42 ÷ 8 = 5 r 2
5 ÷ 8 = 0 r 5
Read remainders upward: 52
────────────────────────────
Result: 101010 (bin) = 52 (oct)
About Binary
Binary (base 2) is the foundational numeral system of all digital electronics, using only 0 and 1. Each position represents a power of 2: 2⁰=1, 2¹=2, 2²=4, 2³=8. Leibniz formalised it in 1679; Shannon applied Boolean logic to circuits in 1948. 8 bits = 1 byte (256 values) - the fundamental unit in every CPU from the 8080 to ARM Cortex-X. Every integer, float, character, pixel, and instruction in any digital device is ultimately binary. Conversion: decimal 42 = 32+8+2 = 2⁵+2³+2¹ = 101010₂.
About Octal
Octal (base 8) uses digits 0-7. Each position is a power of 8: 8⁰=1, 8¹=8, 8²=64. Because 8 = 2³, each octal digit = exactly 3 binary bits. The Unix/Linux file permission system (chmod 755 = rwxr-xr-x; 7=111, 5=101) uses octal for concise 3-bit rwx triplets. The DEC PDP series encoded 12- and 16-bit words naturally in octal. In C/C++/JS a leading zero denotes octal: 0755 = 493₁₀. Conversion: decimal 42 = 5×8+2 = 52₈.
Quick Reference Table
| Binary (bin) | Octal (oct) |
|---|---|
| 1 | 1 |
| 10 | 2 |
| 101 | 5 |
| 1000 | 10 |
| 1010 | 12 |
| 1111 | 17 |
| 10000 | 20 |
| 101010 | 52 |
| 1000000 | 100 |
| 1100100 | 144 |
| 11111111 | 377 |