Binary โ†” Decimal Converter

Convert between binary and decimal number systems instantly

Valid binary number
Enter binary digits (0 or 1 only)
Enter decimal number (0-4,294,967,295)
Conversion Result
101010โ‚‚ = 42โ‚โ‚€
32-bit: 00000000000000000000000000101010 โ€ข Hex: 0x2A

๐Ÿ“š Binary โ†” Decimal Conversion Details

Binary to Decimal Formula

decimal = ฮฃ(binary-digit ร— 2position)

Sum each binary digit multiplied by 2 raised to its position power (from right, starting at 0).

Decimal to Binary Formula

binary = divide-by-2 method

Repeatedly divide decimal by 2, collect remainders in reverse order.

Binary System Basics

Binary uses only two digits: 0 and 1.

  • Base-2 number system
  • Each digit is called a "bit"
  • 8 bits = 1 byte
  • Used in all digital systems

Decimal System Basics

Decimal uses ten digits: 0-9.

  • Base-10 number system
  • Most common number system
  • Used in everyday counting
  • Each position is power of 10

๐Ÿ”ข Step-by-Step Calculation

1 0 1 0 1 0
โ†’
Binary digits
(1ร—2โต)+(0ร—2โด)+(1ร—2ยณ)+(0ร—2ยฒ)+(1ร—2ยน)+(0ร—2โฐ)
=
Assign powers of 2
(32)+(0)+(8)+(0)+(2)+(0)
=
Calculate each term
Total = 42
Example: 101010โ‚‚ to decimal:
Positions from right (starting at 0):
1(2โต) + 0(2โด) + 1(2ยณ) + 0(2ยฒ) + 1(2ยน) + 0(2โฐ)
= 32 + 0 + 8 + 0 + 2 + 0 = 42โ‚โ‚€

๐Ÿ“Š Common Binary Values

Binary Decimal Hex Power of 2
1 1 0x1 2โฐ
10 2 0x2 2ยน
100 4 0x4 2ยฒ
1000 8 0x8 2ยณ
1111 15 0xF -
11111111 255 0xFF -
1111111111111111 65535 0xFFFF -

โ“ Frequently Asked Questions

Q: What is the binary number system?

A: Binary is a base-2 number system that uses only two digits: 0 and 1. It's the fundamental language of computers and digital systems.

Q: How do I convert binary to decimal?

A: Multiply each binary digit by 2 raised to its position power (starting from right with position 0), then sum all results.

Q: What's the maximum binary number I can convert?

A: This converter supports up to 32-bit binary numbers (max decimal: 4,294,967,295).

Q: Can I convert decimal to binary too?

A: Yes! This is a bidirectional converter. Type in the decimal field to get binary, or type in the binary field to get decimal.