13 in Binary

Binary1101
Decimal
13
Binary
1101
Hexadecimal
D
Octal
15
Bits needed
4

13 = 1101₂

The decimal number 13 is 1101 in binary.

Step by step

  1. 13 ÷ 2 = 6 remainder 1
  2. 6 ÷ 2 = 3 remainder 0
  3. 3 ÷ 2 = 1 remainder 1
  4. 1 ÷ 2 = 0 remainder 1
  5. Read the remainders from bottom to top: 1101.

Check the answer by adding the place values: 1×8 + 1×4 + 0×2 + 1×1 = 13. Each 1 bit adds its power of two and each 0 bit adds nothing.

Details

Binary
1101
8-bit form
00001101
Hexadecimal
D
Octal
15
Bits needed
4
Number of 1 bits
3

How it works

Binary is base 2: each digit is a bit worth a power of two (1, 2, 4, 8, 16, 32 …). To convert a decimal number to binary, divide it by 2 again and again, writing down each remainder (0 or 1), until the quotient reaches 0. The binary number is the remainders read from the last one to the first. To check, add the powers of two where the bits are 1.

Nearby values

DecimalBinary
91001
101010
111011
121100
131101
141110
151111
161 0000
171 0001

Related conversions

Frequently asked questions

What is 13 in binary?

1101.

How do you convert 13 to binary?

Divide by 2 repeatedly and read the remainders from bottom to top.

How many bits are needed for 13?

4 bits.

What is 13 in hexadecimal?

D.

Related tools