Direct answer
255 → 11111111. 256 → 100000000. 1024 → 10000000000.
Ad
Decimal input
Binary output
About Decimal → Binary
Binary is the native language of computers — every value in memory is bits. Converting decimal to binary is essential when constructing bitmasks, working with hardware registers, or debugging low-level protocols.
Ad
Frequently asked questions
How many bits do I need for N?
log₂(N) + 1, rounded up. For 255 you need 8 bits, for 65535 you need 16, for any 32-bit unsigned value you need up to 32.
How are negative numbers represented?
Most modern hardware uses two's complement: flip every bit then add 1. This converter shows the unsigned binary; use a programmer calculator for two's complement.