Octal to Binary Converter
developer · number system
Convert Octal to Binary with a fixed input and output format, step-by-step formulas under the result, and reference tables. Parsing matches the main hub (0b, 0x, leading 0 for octal; one optional . for fractional digits on numeric bases; single character for character mode).
Calculator
From: Octal
To: Binary
Formulas
About Octal
Octal (base 8) uses digits 0–7. A leading 0 denotes octal in this converter (e.g. 0777). One radix point is allowed; fractional places use 8⁻¹, 8⁻², …. Grouping binary digits in threes maps cleanly to octal, which is why Unix file permissions often use it.
About Binary
Binary (base 2) uses digits 0 and 1. This tool accepts an optional 0b prefix. You may use one radix point; digits after it use negative powers of two (½, ¼, …). It is the native representation for digital logic and bitwise operations.
How to convert octal to binary
Three steps: symbols → the right math move for this pair → worked examples you can copy on paper. Numeric bases (binary, octal, decimal, hex) also support one radix point and digits after it; character mode stays a single code unit.
Step 1 — Identify the symbols
Input (Octal): Each digit is 0–7 (eight possibilities per position).
Output (Binary): Each position is either 0 or 1.
- A leading 0 is often used to mark octal (e.g. 012).
- Many tools allow a 0b prefix (e.g. 0b1010).
Step 2 — The Two-Step Method (via Decimal)
. for a fractional part is allowed on numeric bases), then rewrite that value in the right format. The calculator automates both steps.Part A — Into decimal
Number positions from the right, starting at 0. At each position, multiply that digit by 8 raised to the position index, then add every term. The total is your decimal number.
Digits after the dot: use negative powers of 8 (8−1, 8−2, …). Each place is still (digit × weight); add the fractional side to the whole side.
Part B — Out of decimal
Repeated division by 2: divide the decimal number by 2, write each remainder, replace the number with the whole quotient, repeat until the quotient is 0. Read the remainders from last division to first to read the binary digits.
Fractional decimal values: convert the whole part with repeated division, then multiply the fractional part by the target base over and over; each integer you get is the next digit after the radix point (same idea the calculator shows in Formulas).
Step 3 — Worked examples
Two practice values in Octal, converted to Binary using the same rules as Step 2. Example 3 uses a fractional part (digits after the radix point); the hub and pair calculators accept a single . on binary, octal, decimal, and hex inputs.
Example 1
"12" (Octal) → Binary.
Toward decimal
Octal "12"
= 1×8¹ + 2×8⁰
= 8 + 2
= 10 (decimal)From decimal to output
Whole part — repeated division:
10 ÷ 2 = 5 R 0
5 ÷ 2 = 2 R 1
2 ÷ 2 = 1 R 0
1 ÷ 2 = 0 R 1
Read remainders bottom → top → 1010
→ tool: 0b1010Verify: "12" → 0b1010
Example 2
"377" (Octal) → Binary.
Toward decimal
Octal "377"
= 3×8² + 7×8¹ + 7×8⁰
= 192 + 56 + 7
= 255 (decimal)From decimal to output
Whole part — repeated division:
255 ÷ 2 = 127 R 1
127 ÷ 2 = 63 R 1
63 ÷ 2 = 31 R 1
31 ÷ 2 = 15 R 1
15 ÷ 2 = 7 R 1
7 ÷ 2 = 3 R 1
3 ÷ 2 = 1 R 1
1 ÷ 2 = 0 R 1
Read remainders bottom → top → 11111111
→ tool: 0b11111111Verify: "377" → 0b11111111
Example 3
"12.4" (Octal) → Binary.
Toward decimal
Octal "12.4"
Left of . : 1×8¹ + 2×8⁰ = 10
Right of .: 4×8^-1 = 0.5
= 10.5 (decimal)From decimal to output
Whole part — repeated division:
10 ÷ 2 = 5 R 0
5 ÷ 2 = 2 R 1
2 ÷ 2 = 1 R 0
1 ÷ 2 = 0 R 1
Read remainders bottom → top → 1010
Fractional part — multiply by 2, integer of each product = next digit after .
0.5×2 = 1 → 1
Digits after . (in order): .1
→ tool: 0b1010.1Verify: "12.4" → 0b1010.1
Summary
To convert Octal to Binary, the tool first parses your input strictly as octal, producing a decimal value. For binary, octal, decimal, and hex, you may include one radix point and fractional digits; character input remains a single code unit with no dot. That value is formatted as binary using the same rules as the main Number System Converter (prefixes 0b, 0, 0x where applicable; character output uses symbolic names for common controls and requires a whole-number code point). Long fractional expansions are truncated to a fixed digit cap; ordinary floating-point rounding may appear in extreme cases.
Relationship context
Octal, Binary, and the other numeric bases on this site all describe the same numeric value; only the radix changes (including optional fractional digits after one dot). Moving between them is equivalent to changing how the value is written, not to scaling or unit conversion. Binary, octal, and hex align with bit boundaries (powers of two), while decimal is optimized for human arithmetic.
Conversion tables
| Octal (input) | Binary (output) |
|---|---|
| 0 | 0 |
| 01 | 0b1 |
| 02 | 0b10 |
| 03 | 0b11 |
| 04 | 0b100 |
| 05 | 0b101 |
| 06 | 0b110 |
| 07 | 0b111 |
| 010 | 0b1000 |
| 011 | 0b1001 |
| 012 | 0b1010 |
| 017 | 0b1111 |
| 020 | 0b10000 |
| Octal (input) | Binary (output) |
|---|---|
| 013 | 0b1011 |
| 040 | 0b100000 |
| 0100 | 0b1000000 |
| 0200 | 0b10000000 |
| 0400 | 0b100000000 |
| 01000 | 0b1000000000 |
| 02000 | 0b10000000000 |
| 04000 | 0b100000000000 |
| 010000 | 0b1000000000000 |
| 020000 | 0b10000000000000 |
| 040000 | 0b100000000000000 |
| 0100000 | 0b1000000000000000 |
| 0177777 | 0b1111111111111111 |
More number system pairs
Other fixed input/output converters use the same parsing rules as the hub. Open any pair for the same calculator layout and reference tables.
- bin to char (Binary to Character)Fixed input/output · same parsing as hub
- bin to dec (Binary to Decimal)Fixed input/output · same parsing as hub
- bin to hex (Binary to Hexadecimal)Fixed input/output · same parsing as hub
- bin to oct (Binary to Octal)Fixed input/output · same parsing as hub
- char to bin (Character to Binary)Fixed input/output · same parsing as hub
- char to dec (Character to Decimal)Fixed input/output · same parsing as hub
- char to hex (Character to Hexadecimal)Fixed input/output · same parsing as hub
- char to oct (Character to Octal)Fixed input/output · same parsing as hub
- dec to bin (Decimal to Binary)Fixed input/output · same parsing as hub
- dec to char (Decimal to Character)Fixed input/output · same parsing as hub
- dec to hex (Decimal to Hexadecimal)Fixed input/output · same parsing as hub
- dec to oct (Decimal to Octal)Fixed input/output · same parsing as hub