Spaces and underscores are ignored; 0b, 0o and 0x prefixes are accepted.
Binary11111111
Decimal255
Octal377
HexadecimalFF
Bits8
Bytes needed1
Padded to full bytes1111 1111

Each 1 in 11111111 marks a power of 2: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. Hex groups the bits in fours (1111 1111) and octal in threes.

Decimal to binary: repeated division by 2
DivideQuotientRemainder (bit)
255 ÷ 21271
127 ÷ 2631
63 ÷ 2311
31 ÷ 2151
15 ÷ 271
7 ÷ 231
3 ÷ 211
1 ÷ 201
Read the bits from the bottom up: 11111111

Binary Converter · free calculator by CalcWorthy