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
- Divide by 2. 13 ÷ 2 = 6 remainder 1. Write the remainder.
- Repeat. 6 ÷ 2 = 3 remainder 0. Then 3 ÷ 2 = 1 remainder 1. Then 1 ÷ 2 = 0 remainder 1.
- Read remainders upward. The remainders from bottom to top are 1, 1, 0, 1. Decimal 13 is binary 1101.
Decimal to binary examples
| Decimal | Divide by 2 | Binary |
|---|---|---|
| 1 | 1 ÷ 2 = 0 r 1 | 1 |
| 2 | 2 ÷ 2 = 1 r 0; 1 ÷ 2 = 0 r 1 | 10 |
| 10 | remainders 0,1,0,1 read upward | 1010 |
| 13 | remainders 1,0,1,1 read upward | 1101 |
| 255 | eight divisions, every remainder is 1 | 11111111 |
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
Binary to decimal
Add the powers of 2 where the bit is 1.
Decimal to octal
Same number, grouped by threes into base 8.
Octal to binary
Replace each octal digit with three bits.
All number bases
Binary, octal, decimal, and hexadecimal in one place.
ASCII table
Characters 0–127 and extended ASCII with dec, hex, oct, and bin.
Division method guide
A longer walkthrough of both hand methods.