About Decimal to Binary
This converts decimal numbers to binary — the base-2 representation built entirely from ones and zeros, where each position is a power of two. Ten becomes 1010, which reads as 8 + 2, and two hundred and fifty-five becomes eight ones, the largest value a single byte can hold.
Input is parsed as a list of tokens separated by spaces or commas, and each token is converted independently, so you can transform a whole column of numbers in one pass rather than one at a time. That makes it usable for preparing test data or checking a set of values against their binary forms.
Two points of context are worth holding onto. Leading zeros are not preserved here, because the conversion works on numeric value rather than on a fixed bit width — if you need every result padded to eight bits, that is a different operation. And fractional values are outside the scope of this conversion, since it treats its input as integers.
How to use Decimal to Binary
- 1 Type one or more decimal numbers, separated by spaces or commas.
- 2 Each number is converted to binary and the results appear immediately.
- 3 Copy the output — results are separated by single spaces.
Frequently asked questions
Can I convert several numbers at once?
Yes. Separate them with spaces or commas and each is converted independently, with the results returned in the same order and separated by single spaces. That is faster than converting a list one value at a time.
Why are there no leading zeros in the output?
Because the conversion produces the shortest representation of the number's value. 10 becomes 1010 rather than 00001010. If you need a fixed width — for example to line up bytes — you would pad the result afterwards to the bit count you require.
What is the largest number I can convert?
Conversion is done with standard number handling, so very large values are limited by the precision available rather than by a fixed bit width. For values beyond that range you would need arbitrary-precision handling, which this conversion does not provide.
How do I get back to decimal?
Use Binary to Decimal, which accepts an eight-bit or shorter binary string and returns its decimal value. The two tools are a matched pair and round-trip exactly for integer inputs.
Free, online, and private
Free to use
Decimal to Binary is completely free. There is no account to create, no login, and no hidden charge or usage limit.
Runs online in your browser
It is a free online tool that runs entirely in your browser. Nothing to download or install — open the page and start using it right away.
Your data stays private
All processing happens locally on your device. Your input is never uploaded, stored, or tracked, so it never leaves your browser.
How Decimal to Binary behaves in detail
These are the specifics of this implementation — the exact ranges, defaults and fixed settings you are working with.
| Parameter | Value |
|---|---|
| Tokenizer | split on runs of whitespace or commas |
| Digit parsing | parseInt with radix 10 |
| Output form | bare binary digits — no 0b prefix and no fixed width |
| Negative input | the sign survives: -5 becomes -101 |
| Fractional input | cut at the decimal point, so 12.5 is read as 12 |
Compiled from the implementation of this tool and checked against it by itoolnet.
What Decimal to Binary does not do
Knowing the edges of a tool saves more time than another list of its features. These are the cases where it will not do what you might expect.
- parseInt reads only the leading integer part, so 3.75 converts as 3 (binary 11) and 1e3 as 1. The fraction and the exponent are discarded rather than rounded, and both cases still produce output that looks correct.
- Values pass through a JavaScript number, so anything beyond 2^53 loses precision before conversion. There is no big-integer path, so a very large decimal input returns a plausible bit pattern that is not the exact value.
- The result is not byte aligned. 5 becomes 101 rather than 00000101, so if the bits are headed for a byte-oriented consumer the zero padding has to be added by hand, one group at a time.
Tested and documented by itoolnet, the team that builds and maintains this site.