Convert octal to binary
One octal digit holds exactly three bits.
To convert octal to binary, replace each digit with its three bits.
To convert binary to octal, split the bits into groups of three from the right.
Try octal to binary conversion in the bit editor
The octal value 454 as bits. Edit the expression or select a bit to flip it.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0b0000000100101100
binary · 16 bits
- octal
- 0o454
Octal to binary conversion step by step
Replace each octal digit with its three bits: The steps follow the value above.
- Write the value as bits: 000000000100101100
- Split the bits into groups of three, from the right: 000 000 000 100 101 100
- The group 000 is the octal digit 0.
- The group 000 is the octal digit 0.
- The group 000 is the octal digit 0.
- The group 100 is the octal digit 4.
- The group 101 is the octal digit 5.
- The group 100 is the octal digit 4.
- The result is 0o000454.
Every octal digit as three bits
| Octal | Binary | Decimal |
|---|---|---|
| 0 | 000 | 0 |
| 1 | 001 | 1 |
| 2 | 010 | 2 |
| 3 | 011 | 3 |
| 4 | 100 | 4 |
| 5 | 101 | 5 |
| 6 | 110 | 6 |
| 7 | 111 | 7 |
Where octal to binary conversion is used
A permission of 755 becomes 111 101 101, one group for each group of three bits.
A field of three bits in a register reads as one octal digit.
The conversion needs no arithmetic, so it works by eye.
Octal to binary conversion: points to note
- Group the bits from the right. A short group at the left needs zeros in front.
- An 8-bit register does not divide into whole octal digits, because 8 is not a multiple of 3.
- Hex needs no extra zeros for a byte, which is why a register view uses hex.
- Do not mix the prefixes. The value 0o10 is 8 and the value 0b10 is 2.
The full bit editor
The full editor holds many values, evaluates expressions across them, and reads live values from a serial port.
Open this value in the full editorQuestions about octal to binary conversion
- How many bits does one octal digit hold?
- One octal digit holds three bits, because eight values need three bits.
- What is 0o755 in binary?
- The octal value 755 is 111101101. Each digit gives three bits.
- Why does hex suit a byte better than octal?
- A byte is two groups of four bits, so two hex digits cover it. Three does not divide eight.