Number base converter
Decimal to Binary Converter
Convert decimal numbers to binary for programming, computer science, and digital logic.
Base converter
Decimal to Binary
Convert whole numbers between decimal, binary, hexadecimal, and octal.
Decimal input can use digits 0-9, with an optional minus sign.
Result
1010
Decimal (base 10) to Binary (base 2)
How Decimal to Binary Conversion Works
Decimal uses base 10, while Binary uses base 2. The converter first reads the input value in base 10, then writes the same whole number in base 2.
This tool supports whole numbers within JavaScript's safe integer range. Binary output is grouped in blocks of four digits so long results are easier to read.
Example Conversions
| Decimal | Binary |
|---|---|
| 10 | 1010 |
| 15 | 1111 |
| 128 | 1000 0000 |
| 255 | 1111 1111 |
FAQ
What does Decimal to Binary Converter do?
It converts a whole number written in Decimal (base 10) into Binary (base 2).
Is Decimal to Binary conversion exact?
Yes. Number base conversion rewrites the same whole number in another base, so the value itself does not change.
Can I use spaces in binary or hex input?
Yes. Spaces are ignored, so grouped binary like 1010 1101 is accepted.
Is this converter private?
Yes. The conversion runs locally in your browser and does not need a database or paid API.