13 in Binary
13 in binary is 1101.
Result 1101.
Binary (base 2)1101
Step by step
- Divide by 2 repeatedly and write down the remainders:
Division Quotient Remainder 13 ÷ 2 6 1 6 ÷ 2 3 0 3 ÷ 2 1 1 1 ÷ 2 0 1 - 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 needed | 4 bits (fits in 1 byte) |
| 8-bit form | 0000 1101 |
| 16-bit form | 0000 0000 0000 1101 |
| 32-bit form | 0000 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
13 in binary: questions
What is 13 in binary?
1101.
What is 13 in hex?
D.
How many bits is 13?
4.