17 in Binary
17 in binary is 10001. It takes 5 bits to write, and as a full byte it is 00010001.
How to convert 17 to binary
Divide by 2, write down the remainder, and repeat with the quotient until it reaches 0. The remainders, read from the last row up to the first, spell out 10001.
| Division | Quotient | Remainder |
|---|---|---|
| 17 ÷ 2 | 8 | 1 |
| 8 ÷ 2 | 4 | 0 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Check it the other way
To verify, read 10001 left to right, giving each digit its place value and adding up the places that hold a 1.
| Bit | Place value | Contributes |
|---|---|---|
| 1 | 24 = 16 | 16 |
| 0 | 23 = 8 | 0 |
| 0 | 22 = 4 | 0 |
| 0 | 21 = 2 | 0 |
| 1 | 20 = 1 | 1 |
Adding the contributions: 16 + 0 + 0 + 0 + 1 = 17. The conversion checks out.
17 in every base
| Format | Value |
|---|---|
| Binary | 10001 |
| Decimal | 17 |
| Hexadecimal | 11 |
| Octal | 21 |
| As a byte (8-bit) | 00010001 |
Worth knowing about 17
Seventeen is a Fermat prime, one more than a power of two, which is why a regular 17-sided polygon can be drawn with compass and straightedge, a proof Gauss made at nineteen and reportedly wanted on his tombstone.
Convert another number
- Binary
- Hex
- Octal
Nearby numbers
Or browse the full table at numbers in binary.
FAQ
What is 17 in binary?
17 converts to 10001 in binary. Every 1 in the pattern marks a power of two that is part of the total, and every 0 marks one that is skipped. Add the marked powers and the sum is exactly 17. Padded to a byte, it reads 00010001.
How many bits does 17 need?
10001 is 5 bits long, so 17 needs 5 bits at minimum. The count grows by one whenever a number reaches the next power of two. Inside a byte, the leftover positions are filled with zeros, which is why 17 appears as 00010001 in most computer contexts.
What is 17 in hex?
17 written in base 16 is 11. Programmers lean on hex because each digit maps to exactly four bits, turning long binary strings into short codes. For completeness, 17 in octal is 21 and in binary it is 10001. They all name the same quantity.