Classroom example
13 in decimal equals 1101 in binary, via repeated division by 2.
Convert decimal numbers to binary instantly — free online decimal to binary converter.
About
Type an ordinary number and see exactly how a computer would store it as 0s and 1s — converting decimal to binary is the first step in most computer science courses, and comes up again later in networking, when working out subnet masks and IP addresses.
The classic method is repeated division: divide by 2, write down the remainder, and keep going until you reach 0 — then read the remainders from the bottom up. 13 gives remainders 1, 0, 1, 1, so 13 is 1101. The converter skips the long division and shows the binary form the moment you type, along with octal and hex.
Examples
3 worked examples
13 in decimal equals 1101 in binary, via repeated division by 2.
100 in decimal equals 1100100 in binary.
256 converts to 100000000 — nine bits, one more than a single byte can hold.
FAQ
Quick answers to common questions about the Decimal to Binary Converter.
Type your decimal number above, with decimal selected as the input base. The binary value appears instantly in the results table — nothing is uploaded anywhere.
Divide the number by 2 repeatedly and keep each remainder: 13 ÷ 2 = 6 remainder 1, 6 ÷ 2 = 3 remainder 0, 3 ÷ 2 = 1 remainder 1, 1 ÷ 2 = 0 remainder 1. Reading the remainders bottom to top gives 1101.
13 in decimal is 1101 in binary — a common worked example when first learning the repeated-division method by hand.
Yes. It's free, with no sign-up and no limit on how many numbers you convert.
Yes — the same converter works in both directions. Select binary as the input base instead, or use the dedicated binary to decimal converter page.
Up to 9,007,199,254,740,991 — beyond that the conversion won't be exact, and the tool will tell you so.
With a minus sign in front, so -10 becomes -1010. That isn't the two's-complement form computers store — in 8 bits, -10 is 11110110 — so work that out separately if you need the stored bit pattern.
No, only whole numbers are accepted. For 2.5, convert the 2 here (10 in binary) and note that .5 is .1 in binary, giving 10.1.
Count the digits of the binary result: 255 needs 8 bits (11111111), 256 needs 9, and 65,535 is the largest value that fits in 16. Every extra bit doubles the largest number you can store.
Did Decimal to Binary Converter work for you?