30 in Binary

Binary1 1110
Decimal
30
Binary
1 1110
Hexadecimal
1E
Octal
36
Bits needed
5

30 = 11110₂

The decimal number 30 is 1 1110 in binary.

Step by step

  1. 30 ÷ 2 = 15 remainder 0
  2. 15 ÷ 2 = 7 remainder 1
  3. 7 ÷ 2 = 3 remainder 1
  4. 3 ÷ 2 = 1 remainder 1
  5. 1 ÷ 2 = 0 remainder 1
  6. Read the remainders from bottom to top: 11110.

Check the answer by adding the place values: 1×16 + 1×8 + 1×4 + 1×2 + 0×1 = 30. Each 1 bit adds its power of two and each 0 bit adds nothing.

Details

Binary
1 1110
8-bit form
00011110
Hexadecimal
1E
Octal
36
Bits needed
5
Number of 1 bits
4

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

DecimalBinary
161 0000
171 0001
181 0010
191 0011
201 0100
301 1110
311 1111
3210 0000
4010 1000

Related conversions

Frequently asked questions

What is 30 in binary?

11110.

How do you convert 30 to binary?

Divide by 2 repeatedly and read the remainders from bottom to top.

How many bits are needed for 30?

5 bits.

What is 30 in hexadecimal?

1E.

Related tools