Binary, octal, decimal, hex and bases 2 to 36. Runs on your device.
Binary numbers appear wherever a computer stores a yes-or-no choice, such as a flag in a settings byte, a permission mask or a network address split into bits. Each binary digit is worth a power of two, so 11111111 means one 128, one 64, one 32, one 16, one 8, one 4, one 2 and one 1, which adds up to 255. A byte is eight bits, so one byte holds the values 0 to 255, and a value above 255 needs a second byte. This page opens with 11111111 already typed and the From base set to binary, so the result shows 255 in decimal, with the octal and hexadecimal forms beside it. Type a longer binary number and the tool reads it in the same way, up to 1,024 digits. Spaces and underscores are ignored, so 1111 0000 reads as 240. A 0b prefix is accepted here because it matches the base. Any digit other than 0 or 1 is an error, because a number such as 12 is not binary.
11111111 is 255 in decimal. It is eight ones, so 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. That is the largest value a single byte holds.
Binary uses only the digits 0 and 1. The 2 is not a binary digit, so the message says Base 2 uses 0 and 1. Remove the 2 or pick a different From base.
Yes. Spaces and underscores are ignored, so 1111 0000 and 1111_0000 both convert to 240. Copy always gives the digits with no spaces.