Free forever · No sign-up

Octal to Binary Converter

Convert any octal number to binary instantly — each digit becomes 3 bits. Free, fast, no sign-up.

Last updated: October 2026

Your data stays in your browser.

Recent

No recent conversions yet.

How to convert octal to binary

  1. Write down the octal number.
  2. Replace each octal digit with its 3-bit binary form (0=000 … 7=111).
  3. Join the groups — that's your binary number (drop leading zeros).

Example: 175₈ → 1 7 5 → 001 111 101 → 1111101₂.

Background reading: the octal number system on Wikipedia.

Conversion table

Octal 0–17 expanded to binary, one 3-bit group per digit.

OctalBinaryExpansion
000₈ → 000 → 0₂
111₈ → 001 → 1₂
2102₈ → 010 → 10₂
3113₈ → 011 → 11₂
41004₈ → 100 → 100₂
51015₈ → 101 → 101₂
61106₈ → 110 → 110₂
71117₈ → 111 → 111₂
10100010₈ → 001 000 → 1000₂
11100111₈ → 001 001 → 1001₂
12101012₈ → 001 010 → 1010₂
13101113₈ → 001 011 → 1011₂
14110014₈ → 001 100 → 1100₂
15110115₈ → 001 101 → 1101₂
16111016₈ → 001 110 → 1110₂
17111117₈ → 001 111 → 1111₂
777111111111777₈ → 111 111 111 → 111111111₂ = 511

Powers of 2

PowerValue
201
212
224
238
2416
2532
2664
27128
28256
29512
2101024
2112048
2124096
2138192
21416384
21532768
21665536

Octal to binary in code

Python

bin(int("17", 8))[2:]  # → '1111'

JavaScript

parseInt("17", 8).toString(2); // → '1111'

C

#include <stdio.h>
#include <stdlib.h>

int main(void) {
    long v = strtol("17", NULL, 8);  /* → 15 */
    for (int bit = 3; bit >= 0; bit--)  /* 15 needs 4 bits */
        putchar(((v >> bit) & 1) ? '1' : '0');
    putchar('\n');  /* → 1111 */
    return 0;
}

Common values

  • 17₈ = 1111₂
  • 10₈ = 1000₂
  • 7₈ = 111₂
  • 100₈ = 1000000₂
  • 77₈ = 111111₂
  • 0₈ = 0₂

Key takeaways

  • Expand each octal digit to its 3-bit binary form.
  • 0→000, 1→001, 2→010, 3→011, 4→100, 5→101, 6→110, 7→111.
  • 17₈ = 1111₂; 777₈ = 111111111₂.
  • Drop unneeded leading zeros at the end.

Frequently asked questions

How do I convert octal to binary?

Replace each octal digit with 3 binary bits and join them together.

What is 17 in binary?

17₈ = 1111₂.

Do I keep leading zeros?

No — drop leading zeros from the final answer, e.g. 001 111 becomes 1111.

What is 17 in binary?

17₈ → 001 111 → 1111₂ = 15.

How do you convert octal to binary?

Replace each octal digit with its 3-bit binary form: 0→000, 1→001 … 7→111.

What is 777 in binary?

777₈ = 111111111₂ = 511.

Can the result have leading zeros?

Only if you keep the 3-bit groups padded — 10₈ can be written 001000 or 1000₂; the value is the same.

Need the reverse? Try our binary to octal converter.

More converters