255 in Binary — What is 255 in Binary?

255 in binary is 11111111. The binary form has 8 ones and 0 zeros. In octal 255 is 377 and in hexadecimal it is FF. The bit pattern uses 8 bits and fits in 1 byte....

255 IN ALL BASES

255 IN BINARY

11111111

8 bits · 1 byte · 8 ones

Binary (base 2)

11111111

Octal (base 8)

377

Decimal (base 10)

255

Hexadecimal (base 16)

FF

BCD

0010 0101 0101

Bit length

8

Byte count

1

Count of 1s

8

Count of 0s

0

Is power of 2

No

Nearest 2ⁿ

2^7 = 128

HOW TO CONVERT 255 TO BINARY

Method: divide by 2, collect remainders

1

255 ÷ 2 = 127 remainder 1

2

127 ÷ 2 = 63 remainder 1

3

63 ÷ 2 = 31 remainder 1

4

31 ÷ 2 = 15 remainder 1

5

15 ÷ 2 = 7 remainder 1

6

7 ÷ 2 = 3 remainder 1

7

3 ÷ 2 = 1 remainder 1

8

1 ÷ 2 = 0 remainder 1

Read remainders bottom to top: 11111111

VERIFY: BINARY BACK TO DECIMAL

1×2^7 + 1×2^6 + 1×2^5 + 1×2^4 + 1×2^3 + 1×2^2 + 1×2^1 + 1×2^0

= 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255

FUN FACT

255 = 2 to the power 8 minus 1 is the maximum value of an unsigned byte — all 8 bits set to 1: 11111111. It is 0xFF in hex and appears in IP broadcast addresses, RGB color maximums, and countless protocols.

BIT VISUALIZER

BIT PATTERN

Byte 1

1
7
1
6
1
5
1
4
1
3
1
2
1
1
1
0

POWERS OF 2 REFERENCE

n2ⁿBinaryHex
0111
12102
241004
3810008
4161000010
53210000020
664100000040
71281000000080
8256100000000100
95121000000000200
10102410000000000400
153276810000000000000008000
16655361000000000000000010000
Created with❤️byeaglecalculator.com

HOW TO CONVERT

  1. 1

    Divide 255 by 2 repeatedly, collecting remainders. 255 div 2 = 127 remainder 1 -> 127 div 2 = 63 remainder 1 -> 63 div 2 = 31 remainder 1 -> 31 div 2 = 15 remainder 1 -> 15 div 2 = 7 remainder 1 -> 7 div 2 = 3 remainder 1 -> 3 div 2 = 1 remainder 1 -> 1 div 2 = 0 remainder 1. Read remainders bottom to top: 11111111.

  2. 2

    Verify: 1*2^7 + 1*2^6 + 1*2^5 + 1*2^4 + 1*2^3 + 1*2^2 + 1*2^1 + 1*2^0 = 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. Each bit position represents a power of 2, starting at 2^0 = 1 on the right.

  3. 3

    255 in other bases: octal = 377, hexadecimal = FF. The binary form has 8 ones and 0 zeros.

  4. 4

    The bit pattern uses 8 bits and fits in 1 byte. When stored as a full byte: 11111111.

WORKED EXAMPLE

255 decimal to binary: 255 div 2 = 127 remainder 1 -> 127 div 2 = 63 remainder 1 -> 63 div 2 = 31 remainder 1 -> 31 div 2 = 15 remainder 1 -> 15 div 2 = 7 remainder 1 -> 7 div 2 = 3 remainder 1 -> 3 div 2 = 1 remainder 1 -> 1 div 2 = 0 remainder 1 -> read bottom to top: 11111111. Verify: 1*2^7 + 1*2^6 + 1*2^5 + 1*2^4 + 1*2^3 + 1*2^2 + 1*2^1 + 1*2^0 = 255. Octal: 377, Hex: FF.

FREQUENTLY ASKED QUESTIONS

RELATED

MORE NUMBER THEORY CALCULATORS

Was this calculator helpful?

Last updated: April 29, 2026 · Formula verified by EagleCalculator team · Eagle-eyed accuracy for every calculation.