19 in Binary
19 in binary is 10011. It takes 5 bits to write, and as a full byte it is 00010011.
How to convert 19 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 10011.
| Division | Quotient | Remainder |
|---|---|---|
| 19 ÷ 2 | 9 | 1 |
| 9 ÷ 2 | 4 | 1 |
| 4 ÷ 2 | 2 | 0 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Check it the other way
To verify, read 10011 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 |
| 1 | 21 = 2 | 2 |
| 1 | 20 = 1 | 1 |
Adding the contributions: 16 + 0 + 0 + 2 + 1 = 19. The conversion checks out.
19 in every base
| Format | Value |
|---|---|
| Binary | 10011 |
| Decimal | 19 |
| Hexadecimal | 13 |
| Octal | 23 |
| As a byte (8-bit) | 00010011 |
Worth knowing about 19
Nineteen is the largest prime number below twenty, and its binary form 10011 breaks down as 16 plus 2 plus 1.
Convert another number
- Binary
- Hex
- Octal
Nearby numbers
Or browse the full table at numbers in binary.
FAQ
What is 19 in binary?
In binary, 19 is written 10011. That is 5 digits, each one a power of two: the pattern says which of 1, 2, 4, 8, and so on to add together to make 19. Computers store it as the byte 00010011, padding the front with zeros.
How many bits does 19 need?
It takes 5 bits to write 19 in binary, since 10011 has 5 digits and dropping any of them would change the value. Real hardware rounds up to whole bytes, so 19 normally sits in eight bits as 00010011, with the unused positions set to zero.
What is 19 in hex?
In hex, 19 is written 13. Because 16 is a power of two, hex lines up neatly with binary: one hex digit always covers four bits, so 10011 compresses cleanly. The octal form, common in file permissions, is 23. Same number, three different notations.