Binary, octal, decimal, hex and bases 2 to 36. Runs on your device.
Decimal to binary is repeated division by 2. Divide the number by 2, write down the remainder, and keep dividing the quotient until it reaches 0; read the remainders from the bottom up. For 255 that gives eight remainders of 1, so 255 is 11111111. The same process shows how many bits a number needs: 255 fits in 8 bits, and 256 needs 9. This page opens with 255 typed and the From base set to decimal, so the result shows 11111111, with the bit count in the Magnitude bits tile. For a negative number, the two's complement line shows the bit pattern a computer stores, in the smallest width of 8, 16, 32 or 64 bits that holds it. Digit grouping makes the result easier to check against the steps, and Copy gives the ungrouped binary for a program or a spreadsheet.
256 needs 9 bits: 100000000. A value of 255 fits in 8 bits, so 256 is the first decimal number that needs a ninth bit.
The minus sign shows a negative number, so -1 is -1 in binary. Its two's complement in 8 bits is 11111111, which is FF in hexadecimal. The line appears only for negative values.
Group digits puts a space every four digits from the right, so 255 reads as 1111 1111. Copy always gives 11111111 with no spaces, so it pastes cleanly.