What is 255 in binary?
255₁₀ converted to binary is 11111111₂. The complete working for this exact number is below — or type a different number into the decimal to binary converter and watch it happen live.
Try it yourself — instant converter
See the steps for your number
How to convert 255 to binary, step by step
Keep dividing 255 by 2 and writing down each remainder. The remainders, read in reverse, are the answer.
| Number | ÷ 2 | Quotient | Remainder |
|---|---|---|---|
| 255 | 2 | 127 | 1 |
| 127 | 2 | 63 | 1 |
| 63 | 2 | 31 | 1 |
| 31 | 2 | 15 | 1 |
| 15 | 2 | 7 | 1 |
| 7 | 2 | 3 | 1 |
| 3 | 2 | 1 | 1 |
| 1 | 2 | 0 | 1 |
Reading the remainder column from the bottom up gives 11111111, so 255₁₀ = 11111111₂. Check it back: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255 — the 1 bits add up to 255.
In short: 255 ÷ 2 = 127 r 1 → 127 ÷ 2 = 63 r 1 → 63 ÷ 2 = 31 r 1 → 31 ÷ 2 = 15 r 1 → 15 ÷ 2 = 7 r 1 → 7 ÷ 2 = 3 r 1 → 3 ÷ 2 = 1 r 1 → 1 ÷ 2 = 0 r 1 → read bottom-up: 11111111₂
Frequently asked questions
How do you write 255 in binary?
Divide 255 by 2 over and over, noting each remainder: 255 ÷ 2 = 127 r1, 127 ÷ 2 = 63 r1, 63 ÷ 2 = 31 r1, 31 ÷ 2 = 15 r1, 15 ÷ 2 = 7 r1, 7 ÷ 2 = 3 r1, 3 ÷ 2 = 1 r1, 1 ÷ 2 = 0 r1. Reading the remainders from last to first gives 11111111, so 255₁₀ = 11111111₂.
What is special about 255 in binary?
255 in binary is 11111111 — all 1s. A run of 8 ones always adds up to 2^8 − 1 = 255, the largest value that fits in 8 bits.
Keep converting
← 128 in binary · 256 in binary →
Popular values
10 in binary · 25 in binary · 42 in binary · 50 in binary · 100 in binary