T

Text Machine

Powerful text tools, in your browser

Decimal ↔ Binary Converter

Enter a decimal number to convert to binary, or a binary number to convert to decimal. The result will appear in the other box.

Decimal ↔ Binary Converter
Understanding Binary

Binary is a base-2 number system, meaning it only uses two digits: 0 and 1. Each position in a binary number represents a power of 2, starting from 2 0 (which is 1) on the rightmost side.

For example, the binary number 1101 is calculated as:

1 × 2^3 + 1 × 2^2 + 0 × 2^1 + 1 × 2^0 = 8 + 4 + 0 + 1 = 13 (in decimal).

How to use Decimal ↔ Binary Converter

  1. 1

    Enter a number

    Type a decimal number into the Decimal Value box, or a binary number into the Binary Value box.

  2. 2

    See the conversion

    The matching result appears instantly in the other field as you type, with no button to press.

  3. 3

    Review the steps

    Check the Conversion Steps section to follow the division-by-2 process that produces the binary result.

  4. 4

    Copy the result

    Use Copy Decimal or Copy Binary to grab the value, or Swap to reverse the conversion direction.

Frequently asked questions

Does it convert both directions?
Yes. Enter a decimal number to get binary, or enter a binary number to get decimal; the result fills the opposite field automatically.
Can I see how the conversion is calculated?
Yes. The Conversion Steps panel shows each divide-by-2 operation with its quotient and remainder, so you can learn the method, not just the answer.
What counts as valid binary input?
Only the digits 0 and 1 are accepted in the binary field. Any other character triggers an invalid input warning so you always convert a real binary number.
Is there a limit on how large a number can be?
Very large decimal numbers that exceed safe integer precision are rejected with a Number Too Large message to keep every conversion accurate.
Is my data kept private?
Yes. All conversions run locally in your browser, so the numbers you enter are never uploaded, and the tool is free to use without registration.

Related tools

Keep going with these handy tools

Binary ↔ Decimal Converter

Unix Timestamp Converter

JSON to CSV Converter

JSON to YAML Converter

CSV to JSON Converter

Text to Binary Converter