34 in Binary
Decimal 34 equals 100010 in binary.
34 in all number bases
Decimal34
Hexadecimal0x22
Binary0010 0010
Octal42
Try another value
Edit this value or switch its base. Your changes are calculated in your browser with exact integer arithmetic.
Input base:
Decimal
34Hex
0x22Binary
0b100010Octal
0o42How 34 converts from decimal to binary
Divide by 2 repeatedly and keep each remainder, then read the remainders from bottom to top:
34÷ 2 =17remainder0
17÷ 2 =8remainder1
8÷ 2 =4remainder0
4÷ 2 =2remainder0
2÷ 2 =1remainder0
1÷ 2 =0remainder1
Result (remainders bottom to top): 100010
This tool runs entirely in your browser - nothing you enter is uploaded or stored.