THE RIGHT TOOL FOR YOUR NEXT BYTE

Octal to Binary Converter

Enter a base-8 octal number such as 755 or 0o52 to expand each digit into binary bits locally in your browser, with exact precision for large integers.

→
Runs locally
2 charactersWhole numbers · exact precision
Ready
Exact integer resultBase 2
Tip: enter a whole number in the selected input base.
Your data stays in your browser Free. No sign-up. Exact integer conversion
01 / EXPLAINED SIMPLY

How to convert octal to binary

Octal is base 8, using only the digits 0 through 7. Each octal digit expands directly into exactly three binary bits. Replace each digit with its three-bit group from left to right, then drop any leading zeros if you want the shortest integer representation.

This three-bit mapping is why octal is still used for Unix and Linux file permissions. In chmod 755, 7 is 111 (read, write, execute for owner), and each 5 is 101 (read and execute for group and others), forming the 9-bit mask 111101101.

Octal digit to three bits chart
Octal digitThree binary bitsUnix rwx permission
0000--- (none)
1001--x (execute)
2010-w- (write)
3011-wx (write + execute)
4100r-- (read)
5101r-x (read + execute)
6110rw- (read + write)
7111rwx (read + write + execute)
Unix chmod 755

7 is 111 and each 5 is 101, forming 111101101.

755
Prefixed octal literal

Python/JS 0o prefix is accepted and gives 101010.

0o52
Signed octal value

Place the minus sign ahead of 0o to get -101010.

-0o52
02 / CONVERSION EXAMPLES

Octal to binary examples

Both plain octal digits (755) and prefixed literals (0o755) are accepted. Digits 8 and 9 are rejected because they do not exist in base 8.

Octal inputs, binary outputs, and decimal equivalents
Octal inputBinary outputDecimalNotes
52
101010425 → 101, 2 → 010.
755
111101101493Owner rwx, group r-x, others r-x.
644
110100100420Owner rw-, group r--, others r--.
377
11111111255Full 8-bit byte (011 drops its leading zero to 11).
-0o52
-101010-42Place the minus sign ahead of the optional 0o prefix.
400000000000000001
1000000000000000000000000000000000000000000000000000019007199254740993Exact 54-bit BigInt expansion without rounding.

Go the other way with Binary to Octal, or convert base-10 values with Decimal to Octal.

GOOD QUESTIONS

Frequently asked questions

Helpful details for base-8 inputs, prefixes, and leading zeros.

Why are 8 and 9 rejected in octal input?

Octal is base 8, so valid digits are strictly 0 through 7. The number eight is written as 10 in octal.

Can I include a 0o prefix like in Python or JavaScript?

Yes. Both 755 and 0o755 (or 0O755) are valid when Octal (8) is selected as the input base. For negative values, put the minus sign first: -0o52.

Why does octal 377 produce 8 bits instead of 9?

The leading digit 3 expands to 011, and the converter outputs the shortest exact binary integer without extra leading zeros: 11111111. Pad on the left if you need fixed 3-bit groups.

Does this tool upload my numbers?

No. All conversions run locally inside your browser using JavaScript BigInt arithmetic.