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
- Each octal digit becomes exactly 3 bits.
- 7 = 111
- 5 = 101
- 5 = 101
- 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)
| Decimal | Binary (4-bit) | Hex | Octal |
|---|---|---|---|
| 0 | 0000 | 0 | 0 |
| 1 | 0001 | 1 | 1 |
| 2 | 0010 | 2 | 2 |
| 3 | 0011 | 3 | 3 |
| 4 | 0100 | 4 | 4 |
| 5 | 0101 | 5 | 5 |
| 6 | 0110 | 6 | 6 |
| 7 | 0111 | 7 | 7 |
| 8 | 1000 | 8 | 10 |
| 9 | 1001 | 9 | 11 |
| 10 | 1010 | A | 12 |
| 11 | 1011 | B | 13 |
| 12 | 1100 | C | 14 |
| 13 | 1101 | D | 15 |
| 14 | 1110 | E | 16 |
| 15 | 1111 | F | 17 |
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.