Decimal to Binary Converter

A decimal to binary converter rewrites a base-10 whole number using only the digits 0 and 1.

Example: 13 = 1101

Text tools on this site use UTF-8 (the letter A is the byte 01000001). This page converts a whole number between bases and does not encode characters.

Last updated . Full ASCII table (decimal, hexadecimal, octal, and binary).

DecimalBinary
1101

Convert 13 to binary, step by step

  1. Divide by 2. 13 ÷ 2 = 6 remainder 1. Write the remainder.
  2. Repeat. 6 ÷ 2 = 3 remainder 0. Then 3 ÷ 2 = 1 remainder 1. Then 1 ÷ 2 = 0 remainder 1.
  3. Read remainders upward. The remainders from bottom to top are 1, 1, 0, 1. Decimal 13 is binary 1101.

Decimal to binary examples

DecimalDivide by 2Binary
11 ÷ 2 = 0 r 11
22 ÷ 2 = 1 r 0; 1 ÷ 2 = 0 r 110
10remainders 0,1,0,1 read upward1010
13remainders 1,0,1,1 read upward1101
255eight divisions, every remainder is 111111111

Frequently Asked Questions

How do you convert decimal to binary by hand?

Divide the number by 2, record the remainder, and repeat with the quotient until it is 0. Read the remainders from last to first.

What is 13 in binary?

13 is 1101. Place values from the right are 1, 2, 4, and 8: 8 + 4 + 1 = 13.

Why does the converter drop leading zeros?

Leading zeros do not change the value. 1101 and 00001101 are both 13. Pad on the left when you need a fixed width such as 8 bits.

Is decimal text the same as a decimal number?

No. The number 13 is binary 1101. The characters "13" are the UTF-8 bytes for the digit 1 and the digit 3, which is 00110001 00110011.

Related tools & guides