Decimal to Binary Converter
Convert decimal numbers to binary instantly, including negative numbers and numbers with hundreds of digits.
Runs in your browser. What you enter is kept for 30 days to improve Toolgrid, then deleted.
How to use the Decimal to Binary Converter
- 1 Type a whole number in decimal.
- 2 The binary appears immediately.
- 3 Copy the result.
About the Decimal to Binary Converter
Binary is base 2: every digit is 0 or 1 and every position is worth twice the one to its right. 13 in binary is 1101, because 8 + 4 + 0 + 1 = 13.
To convert by hand, divide the number by 2 again and again and write down the remainders; read from bottom to top, they form the binary number. This converter does the same with exact big-number arithmetic, so even a 100-digit number is converted without rounding errors.
A minus sign is kept in front (−10 becomes −1010); this is not two’s complement, which depends on a fixed number of bits. Spaces and underscores, such as in 1_000_000, are ignored.
Frequently asked questions
What is 255 in binary?
11111111: eight ones, the largest value of one byte.
How do I convert decimal to binary by hand?
Divide by 2 and note the remainder, repeat with the result until you reach 0, then read the remainders from last to first.
How are negative numbers shown?
With a minus sign in front of the binary value. Two’s complement needs a fixed width and isn’t used here.
Is there a size limit?
Up to 5,000 decimal digits, far beyond what 64-bit numbers can hold.