Octal to Binary
Octal (oct)
Binary (bin)
How it is calculated
The number is first converted to decimal as digits × radixⁿ, then to the selected base by division with remainder. Prefixes 0x, 0b, 0o and digit grouping with spaces or _ are allowed.
oct: digits 0 1 2 3 4 5 6 7, radix 8
bin: digits 0 1, radix 2
255₈ = 2×8₂ + 5×8₁ + 5×8₀ = 128 + 40 + 5 = 173₁₀
173 ÷ 2 = 86 remainder 1 (1)
86 ÷ 2 = 43 remainder 0 (0)
43 ÷ 2 = 21 remainder 1 (1)
21 ÷ 2 = 10 remainder 1 (1)
10 ÷ 2 = 5 remainder 0 (0)
5 ÷ 2 = 2 remainder 1 (1)
2 ÷ 2 = 1 remainder 0 (0)
1 ÷ 2 = 0 remainder 1 (1)
255₈ = 10101101₂