18 in Binary
18 = 10010₂
The decimal number 18 is 1 0010 in binary.
Step by step
- 18 ÷ 2 = 9 remainder 0
- 9 ÷ 2 = 4 remainder 1
- 4 ÷ 2 = 2 remainder 0
- 2 ÷ 2 = 1 remainder 0
- 1 ÷ 2 = 0 remainder 1
- Read the remainders from bottom to top: 10010.
Check the answer by adding the place values: 1×16 + 0×8 + 0×4 + 1×2 + 0×1 = 18. Each 1 bit adds its power of two and each 0 bit adds nothing.
Details
- Binary
- 1 0010
- 8-bit form
- 00010010
- Hexadecimal
- 12
- Octal
- 22
- Bits needed
- 5
- Number of 1 bits
- 2
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
Related conversions
Frequently asked questions
What is 18 in binary?
10010.
How do you convert 18 to binary?
Divide by 2 repeatedly and read the remainders from bottom to top.
How many bits are needed for 18?
5 bits.
What is 18 in hexadecimal?
12.