Decimal to Binary Converter

Type a decimal number and get its binary equivalent instantly, with no practical size limit.

Local processing: your data is processed in your browser and never sent to Numelto or any external service.

How a decimal number converts to binary

The number is repeatedly divided by 2, noting the remainder (0 or 1) of each division, until it reaches 0; the resulting binary is that list of remainders read bottom to top. This tool does that same calculation using arbitrary-precision arithmetic, not JavaScript's regular number type, so it doesn't lose precision with large numbers.

Step-by-step example: 13 in binary

Dividing 13 by 2 successively and reading the remainders bottom to top (1, 1, 0, 1) gives 1101, which is 13 in binary:

DivisionQuotientRemainder
13 ÷ 261
6 ÷ 230
3 ÷ 211
1 ÷ 201

If you need to convert between other bases

This page is built specifically for decimal → binary. For binary → decimal, octal, hexadecimal, or any combination between those four bases, use the general number base converter.

Frequently asked questions

Related tools

We use analytics cookies to understand which calculators are useful. They are never used for advertising. More information in our privacy policy.