Decimal to Binary Converter

Convert decimal numbers to binary and binary to decimal instantly. Also shows hexadecimal and octal. Free browser-based tool.

How to Use

  1. 1 Select Decimal → Binary to convert a decimal number to binary, or Binary → Decimal for the reverse
  2. 2 Enter your decimal number (e.g. 42) or binary number (e.g. 101010)
  3. 3 Click Convert to see the binary result along with hex and octal

Use Cases

Programming

Convert decimal integers to binary for bitwise operations, flag masks, and low-level data manipulation in code.

Computer Science Learning

Understand binary representation by converting familiar decimal numbers and seeing their bit patterns.

Digital Electronics

Convert decimal values to binary for logic circuit design, truth tables, and digital system analysis.

FAQ

Repeatedly divide the decimal number by 2 and record the remainders from bottom to top. For example, 10 ÷ 2 = 5 R0, 5 ÷ 2 = 2 R1, 2 ÷ 2 = 1 R0, 1 ÷ 2 = 0 R1 → binary 1010.

This tool handles JavaScript safe integers up to 2^53 - 1 = 9,007,199,254,740,991, which covers all practical use cases.

Binary uses only two digits (0 and 1), which maps directly to the on/off states of transistors in digital circuits, making it the natural language of hardware.

Related Tools