1 1111 1111
511 in binary (9 bits, 2 bytes)

Hexadecimal1FF
Octal777
Decimal511

Converting 511 to binary by hand

Divide by 2 again and again, noting each remainder, until you reach 0. Then read the remainders from the bottom up: 111111111.

DivideAnswerRemainder
511 ÷ 22551
255 ÷ 21271
127 ÷ 2631
63 ÷ 2311
31 ÷ 2151
15 ÷ 271
7 ÷ 231
3 ÷ 211
1 ÷ 201

Checking it: each binary digit is worth twice the one to its right, so 111111111 is 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 511.

Converting 511 to hexadecimal

The same way, dividing by 16, with remainders of 10 to 15 written as A to F. Reading up gives 1FF. Or split the binary into groups of four from the right (1 1111 1111) and write each group as one hex digit.

DivideAnswerRemainder
511 ÷ 163115 = F
31 ÷ 16115 = F
1 ÷ 1601

Whole numbers of any size. Prefixes like 0b, 0o and 0x, and spaces between digits, are ignored. Bases above 10 use the letters A to Z as digits.

Decimal511
Binary1 1111 1111
Octal777
Hexadecimal1FF
Base 3200221
Size9 bits

Frequently asked questions

What is 511 in binary?

111111111 (1 1111 1111 in groups of four). It needs 9 bits.

What is 511 in hexadecimal?

1FF, often written 0x1FF.

What is 511 in octal?

777.

What is 111111111 in decimal?

511: add the place values where there's a 1, 256 + 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 511.

Nearby numbers
Related calculators