Convert binary numbers (integers and floats) to octal instantly with batch conversion support. Essential tool for programmers, students, and engineers.
Batch Conversion: Convert multiple binary numbers at once. Enter one binary value per line, or separate values with commas, spaces, or tabs. Supports integers and floating-point numbers.
Octal is a base-8 numeral system that uses digits 0 through 7. Binary is a base-2 system using only 0 and 1. Converting binary to octal is straightforward because 8 is a power of 2 (2³ = 8).
Conversion Algorithm:
Important Notes on Binary Float Conversion:
| Binary (3-bit) | Octal Digit | Decimal Value | Binary (3-bit) | Octal Digit | Decimal Value |
|---|---|---|---|---|---|
| 000 | 0 | 0 | 100 | 4 | 4 |
| 001 | 1 | 1 | 101 | 5 | 5 |
| 010 | 2 | 2 | 110 | 6 | 6 |
| 011 | 3 | 3 | 111 | 7 | 7 |
Binary 1010 to Octal: Group as 001 010 (pad with leading zero) → 001₂ = 1₈, 010₂ = 2₈ → 1010₂ = 12₈
Binary 1010.1 to Octal: Integer part: 001 010 = 12₈, Fractional part: 100 (pad with trailing zeros) = 4₈ → 1010.1₂ = 12.4₈
Binary 1101.101 to Octal: Integer part: 001 101 = 15₈, Fractional part: 101 = 5₈ → 1101.101₂ = 15.5₈
Calculator Features:
1010
12
1010.1
12.4
1111
17
0.1
0.4
0.01
0.2
1101.101
15.5
11111111
377
000
0
001
1
010
2
011
3
100
4
101
5
110
6
111
7