# Convert Decimal to Binary

> Convert decimal numbers to binary online. Free decimal to binary converter with a worked example — base 10 to base 2, one value per line.

Binary is how computers actually store integers, and seeing the bits helps with masks, flags, and low-level debugging. This converter turns base-10 numbers into their base-2 representation.

## Example: Decimal → Binary

Input:
```
2
10
42
255
```

Output:
```
10
1010
101010
11111111
```

## How to convert Decimal to Binary

1. Take your base-10 integer.
2. Repeatedly divide by 2, recording each remainder (0 or 1).
3. Read the remainders bottom-up — 10 becomes 1010.

## FAQ

### What is 255 in binary?

255 is 11111111 — eight ones, which is exactly one byte with every bit set.

### How do I read the result?

Each position is a power of two, doubling from right to left (1, 2, 4, 8, …). Add the positions that hold a 1 to recover the decimal value.

## Related converters

- [Binary → Decimal](https://www.devkult.com/convert/binary-to-decimal.md)
- [Decimal → Hex](https://www.devkult.com/convert/decimal-to-hex.md)
- [Hex → Decimal](https://www.devkult.com/convert/hex-to-decimal.md)

Open the interactive converter: https://www.devkult.com/convert/decimal-to-binary