Decimal to Binary Conversion


This converter helps you convert decimal numbers (base-10) into binary (base-2), and vice versa.

How to Use This Converter

  • Enter a decimal number like 42 to get the binary result
  • Or enter binary (e.g., 101010) to convert it to decimal

You can switch between decimal and binary easily using this tool.

Understanding the Conversion

Decimal is the standard base-10 number system using digits 0-9. Binary is base-2 and only uses 0 and 1.

Each digit in binary represents a power of 2, starting from the right. Here's how the conversion works:

  • 42 in decimal → 101010 in binary
  • Explanation: 42 = 32 + 8 + 2 = 2⁵ + 2³ + 2¹

Example

Convert decimal 19 to binary:

  1. Find the largest power of 2 less than or equal to 19 → 16 (2⁴)
  2. Subtract 16: 19 - 16 = 3
  3. Next power of 2: 2 (2¹), remaining: 1
  4. Next: 1 (2⁰), remaining: 0
  5. Binary: 10011

Result: 1910 = 100112

Binary Table (0-15)

DecimalBinary
00000
10001
20010
30011
40100
50101
60110
70111
81000
91001
101010
111011
121100
131101
141110
151111

Where Binary Is Used

Binary is the fundamental language of computers and digital electronics. Everything from numbers, characters, images, and sounds are represented as sequences of 0s and 1s in binary.

Use this tool to understand and convert numbers into binary for:

  • Programming and software development
  • Computer architecture and low-level debugging
  • Electronics and logic gate design
  • Learning how computers actually work