What is Octal to Binary Converter?
This octal to binary converter and calculator expands base-8 numbers into the bits they represent. Every octal digit stands for exactly three bits, so the conversion is digit by digit: 7 is 111, 5 is 101 and 4 is 100, so 755 becomes 111 101 101 and 644 becomes 110 100 100.
That makes it ideal for reading Unix file permissions, where each octal digit is a read-write-execute triplet: 111 101 101 is rwxr-xr-x. Enter one octal number or several separated by spaces, and each is converted instantly.
How to use Octal to Binary Converter
- Enter octal numbers separated by spaces or commas, for example 755 644; a 0o prefix is fine.
- Read the binary results.
- Change the padding or separator options if needed.
- Copy the result, or click Swap to convert binary to octal.
Key features
- Convert many values at once, separated by spaces or commas
- Exact results for numbers of any size, including 64-bit values
- Output separated by spaces, commas, new lines or nothing
- Uppercase or lowercase hex, optional 0x prefix, and binary padded to whole 8-bit bytes
- Swap button to reverse the conversion direction
- Summary of a single value in binary, octal, decimal, hex and ASCII
- Clear errors for invalid digits; runs entirely in your browser
Common use cases
- Reading chmod permission codes as permission bits
- Learning the relationship between octal and binary
- Converting octal values in legacy systems and documentation
- Checking exam and homework answers
- Working with 3-bit fields in hardware and protocols
Technical details & standards
Each octal digit maps to three bits: 0 = 000, 1 = 001, 2 = 010, 3 = 011, 4 = 100, 5 = 101, 6 = 110, 7 = 111. Writing the groups in order gives the binary value, after dropping any leading zeros of the first group: 52 is 101 010, or 101010.
Each octal value is converted as a whole number and output as one binary number, padded to whole 8-bit bytes when padding is on (755 has 9 bits, so it becomes 0000000111101101; turn padding off for 111101101). Digits 8 and 9 are rejected because they do not exist in octal.
How to convert octal to binary by hand
Octal to binary is a straight swap: every octal digit becomes three bits. Here is octal 73:
- Take each octal digit on its own: 7 and 3.
- Write each as three bits: 7 = 111, 3 = 011.
- Join the groups in the same order: 111 011.
Result: Octal 73 is 111011 in binary (59 in decimal). Keep the leading zeros inside each group, or 3 would become 11 and the result would be wrong.
Octal to binary conversion table
Each octal digit is exactly three bits, so the first eight rows cover every digit. The rest are octal numbers you meet in Unix permissions and code, written as 3-bit groups.
| Octal | Binary | Decimal | Where you see it |
|---|---|---|---|
| 0 | 000 | 0 | No permission (---) |
| 1 | 001 | 1 | Execute (--x) |
| 2 | 010 | 2 | Write (-w-) |
| 3 | 011 | 3 | Write and execute (-wx) |
| 4 | 100 | 4 | Read (r--) |
| 5 | 101 | 5 | Read and execute (r-x) |
| 6 | 110 | 6 | Read and write (rw-) |
| 7 | 111 | 7 | Read, write and execute (rwx) |
| 10 | 001 000 | 8 | The first two-digit octal number |
| 73 | 111 011 | 59 | Worked step by step in the section above |
| 75 | 111 101 | 61 | Two digits always make six bits |
| 77 | 111 111 | 63 | The largest two-digit octal number |
| 100 | 001 000 000 | 64 | 8², the first three-digit octal number |
| 377 | 011 111 111 | 255 | The largest value one byte can hold |
| 644 | 110 100 100 | 420 | File permissions rw-r--r-- |
| 755 | 111 101 101 | 493 | File permissions rwxr-xr-x |
| 777 | 111 111 111 | 511 | File permissions rwxrwxrwx |
Frequently asked questions
How do I convert octal to binary?
Replace each octal digit with its three-bit binary value. 37 is 011 111, which is 11111 after dropping the leading zero.
What is 755 in binary?
111101101 (111 101 101). Read as permissions it is rwxr-xr-x: the owner has all three bits, group and others have read and execute.
What is 7 in binary?
111, the largest three-bit number and the largest octal digit.
Why does each octal digit equal three bits?
Because 8 is 2³: three bits have exactly eight combinations, 000 to 111, matching the eight octal digits 0 to 7.