Octal to Binary Converter

Translate base-8 octal numbers into binary bit strings

Ad placeholder (leaderboard)

Converting octal to binary is a direct expansion that is especially useful when reasoning about Unix file permissions or any system that groups bits in threes. This converter turns any base-8 number into its full binary bit string.

How it works

Octal is base 8 and binary is base 2, and 8 equals 2 cubed. That power-of-two relationship means each octal digit maps to a unique group of exactly three binary digits, called a triplet. The conversion is a per-digit lookup: 7 becomes 111, 5 becomes 101, 0 becomes 000, and the triplets are joined in order.

No decimal intermediate is needed. The tool reads each octal character, expands it to its three-bit code, and concatenates. It then shows a trimmed value (leading zeros removed) and a triplet-aligned view that keeps each group intact.

Example

Convert the Unix permission 755. The digit 7 expands to 111, the first 5 to 101, and the second 5 to 101. Concatenated, that is 111101101, which equals 493 in decimal. Read as permission bits, the owner has all three (rwx) while group and others have read and execute.

Tips and notes

The triplet-aligned view makes octal-to-binary conversion transparent and is ideal for teaching the relationship between bases. Spaces, underscores and a leading 0o are accepted and ignored. All processing happens locally in your browser, so nothing you enter is transmitted anywhere.

Ad placeholder (rectangle)