Binary Translator

Octal to Binary Converter

To convert octal to binary, replace each octal digit with its three-bit binary form. For example octal 755 becomes 111 101 101, and 777 becomes 111 111 111. Enter an octal number below to see each digit expanded.

Binary result

111 101 101

Decimal value of the input: 493

Working

  1. Each octal digit becomes exactly 3 bits.
  2. 7 = 111
  3. 5 = 101
  4. 5 = 101
  5. Join the groups: 111 101 101.

Example: octal 755 to binary

  • Each octal digit becomes exactly 3 bits.
  • 7 = 111
  • 5 = 101
  • 5 = 101
  • Join the groups: 111 101 101.
  • Result: 111 101 101 (decimal 493)

Digit by digit

Each octal digit is a number from 0 to 7, and three bits are enough to write any of them: 5 is 101, 7 is 111. The converter keeps three bits for every digit, including leading zeros, so 1 is 001. The result is shown in groups of three so you can see which digit made which bits.

That grouping is also how Unix permission modes work: 755 is 111 101 101, meaning read, write and execute for the owner and read and execute for group and others.

Leading zeros and prefixes

Leading zeros are kept because they belong to the digit, so 007 gives 000 000 111. Strip them yourself if you want the shortest form. An optional 0o prefix is accepted, along with spaces and underscores. The decimal value is printed under the result as a cross-check.

Negative numbers: a leading minus sign is treated as a sign and the digits are converted as the absolute value, so the sign is simply kept in front of the result. This is not two’s complement, which is how processors store negative integers and which depends on a fixed bit width. The tool does not assume a width, so it never reinterprets a high bit as a sign.

Errors

Octal has no digit 8 or 9. If one is entered, the tool names it and asks for 0-7. Decimal points are rejected because the converter handles whole numbers only.

Decimal, binary, hex and octal table (0-15)

Values 0 to 15 in four bases
DecimalBinary (4-bit)HexOctal
0000000
1000111
2001022
3001133
4010044
5010155
6011066
7011177
81000810
91001911
101010A12
111011B13
121100C14
131101D15
141110E16
151111F17

Frequently asked questions

What is 7 in octal as binary?
111.
What is octal 10 in binary?
001 000: 1 is 001 and 0 is 000. It equals 8 in decimal.
Why does the result have spaces?
They separate the 3-bit group for each octal digit. Remove them if you need one continuous string.
Can the number be long?
Yes. There is no size limit because the arithmetic is arbitrary precision.