You can type in either field. Whole numbers from 0 up to 2⁵³ − 1.

In binary

11111111

255 in decimal is 11111111 in binary.

In all bases

Tap to use the base as the target.

Place values in binary

Each place counts 2 times the place to its right.

How this was calculated

Step 2 – from decimal: divide by 2 repeatedly and note the remainders.

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

Reading the remainders from bottom to top gives 11111111.

Number Base Converter by Rechnerzentrale(opens in a new tab)