Decimal to Binary Converter

Formula: Repeatedly divide by 2 and read remainders bottom-to-top

Decimal to Binary Converter

Converting decimal to binary is a fundamental skill in computer science. It helps you understand how computers store and process numbers.

Conversion Formula

Repeatedly divide by 2 and read remainders bottom-to-top

Repeatedly divide the number by 2. The sequence of remainders, read in reverse order, gives the binary representation.

Step-by-Step Examples

10 = 1010

10÷2=5r0, 5÷2=2r1, 2÷2=1r0, 1÷2=0r1. Read up: 1010

255 = 11111111

The largest value in one byte.

Frequently Asked Questions

How do you convert decimal to binary?

Divide the number by 2 repeatedly, writing down the remainder each time. Read the remainders from bottom to top to get the binary number.

What is 255 in binary?

255 in decimal equals 11111111 in binary — all 8 bits set to 1.

What is 1024 in binary?

1024 in binary is 10000000000 (1 followed by 10 zeros). It equals 2¹⁰.

Can negative numbers be converted to binary?

Yes, using two's complement notation. This converter handles non-negative integers.

What is the largest decimal number an 8-bit binary can represent?

255 (11111111). With n bits, the maximum value is 2ⁿ - 1.