13 in Binary

13 in binary is 1101.

Result 1101.

Binary (base 2)1101

Step by step

  1. Divide by 2 repeatedly and write down the remainders:
    DivisionQuotientRemainder
    13 ÷ 261
    6 ÷ 230
    3 ÷ 211
    1 ÷ 201
  2. Read the remainders from bottom to top: 1101
binary (base 2)1101
octal (base 8)15
decimal (base 10)13
hexadecimal (base 16)D
Bits needed4 bits (fits in 1 byte)
8-bit form0000 1101
16-bit form0000 0000 0000 1101
32-bit form0000 0000 0000 0000 0000 0000 0000 1101

Quick method for 13

Find the powers of 2 that add up to 13: 8 + 4 + 1. Put a 1 in those places and 0 elsewhere: 1101.

13 in other forms

  • Place values: 8 + 4 + 1 = 13
  • Hex: D
  • Octal: 15
  • 4 bits — fits in one byte
  • 3 one-bits (odd parity)
  • Padded: 0000 1101
  • 16-bit: 0000 0000 0000 1101
  • One's complement (8-bit): 1111 0010
  • Between 23 = 8 and 24 = 16
  • −13 in 8-bit two's complement: 1111 0011
  • ASCII: CR (carriage return) — ASCII table

Going back: binary to decimal.

More numbers in binary

All numbers 0–255 in binary

13 in binary: questions

What is 13 in binary?

1101.

What is 13 in hex?

D.

How many bits is 13?

4.