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

Try another value

Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.

Input base:
Decimal255
Hex0xFF
Binary0b11111111
Octal0o377

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

This tool runs entirely in your browser - nothing you enter is uploaded or stored.

Want to learn the method behind this tool? Read How to Convert Decimal to Binary - the full step-by-step guide.