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 digit
Three binary bits
Unix rwx permission
0
000
--- (none)
1
001
--x (execute)
2
010
-w- (write)
3
011
-wx (write + execute)
4
100
r-- (read)
5
101
r-x (read + execute)
6
110
rw- (read + write)
7
111
rwx (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 input
Binary output
Decimal
Notes
52
101010
42
5 → 101, 2 → 010.
755
111101101
493
Owner rwx, group r-x, others r-x.
644
110100100
420
Owner rw-, group r--, others r--.
377
11111111
255
Full 8-bit byte (011 drops its leading zero to 11).
-0o52
-101010
-42
Place the minus sign ahead of the optional 0o prefix.
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.