Skip to content

255 in Binary

Decimal 255 equals 11111111 in binary.

Why this number matters: 255 is the maximum value of an unsigned byte (8 bits, 0xFF) and the highest value of each RGB color channel.

255 in all number bases

Decimal255
Hexadecimal0xFF
Binary1111 1111
Octal377

How 255 converts from decimal to binary

Divide by 2 repeatedly and keep each remainder, then read the remainders from bottom to top:

255÷ 2 =127remainder1
127÷ 2 =63remainder1
63÷ 2 =31remainder1
31÷ 2 =15remainder1
15÷ 2 =7remainder1
7÷ 2 =3remainder1
3÷ 2 =1remainder1
1÷ 2 =0remainder1

Result (remainders bottom to top): 11111111