Skip to main content
HSCalculadora

Decimal to Binary Calculator

Convert a decimal number to binary.

Results update as you type.

Binary value
—

How it works

Binary is the base-2 language of computers, and this calculator converts an everyday decimal number into its binary representation. You enter a non-negative whole number in decimal, and it returns the binary equivalent made up of 0s and 1s. The standard method is repeated division by two: you divide the number by two, note the remainder as the next binary digit, and repeat with the quotient until it reaches zero; reading the remainders in reverse order gives the binary number. Equivalently, binary uses place values that are powers of two, so each 1 in the result marks a power of two that is included in the sum. For example, the decimal number ten becomes 1010 in binary, since ten is eight plus two. Binary underlies all digital computing, because electronic circuits represent data as two states, on and off, mapped to 1 and 0. Converting decimal to binary is fundamental for computer science students, programmers working with bitwise operations and low-level data, and anyone learning how computers store numbers. Larger decimal numbers produce longer binary strings, since each additional binary digit only doubles the range. This calculator handles non-negative whole numbers. Enter a decimal number to convert it to binary.

Formula

Repeatedly divide by 2, reading remainders bottom-up

A decimal number is converted to binary by repeatedly dividing it by two and recording the remainder, which is always 0 or 1, at each step. Reading the remainders from the last division to the first gives the binary representation. Each remainder corresponds to a binary place value that is a power of two.

Source:Number systems

We review all our tools from time to time to ensure accuracy.

Worked example

Decimal number:10
10 = 8 + 2 = 1010 in binary.

How to use this calculator

  1. 1

    Enter your values

    Enter decimal number.

  2. 2

    Adjust the options

    Fine-tune any options to match your situation.

  3. 3

    Read your result

    Binary value updates instantly as you type — no button to press.

Frequently asked questions

How do you convert decimal to binary?

Repeatedly divide the decimal number by two, writing down the remainder each time, then read the remainders from bottom to top. For ten, the remainders give 1010. Alternatively, find which powers of two add up to the number. The calculator produces the binary result instantly from your decimal input.

Why do computers use binary?

Computers use binary because electronic circuits reliably represent just two states, like off and on or low and high voltage, which map to 0 and 1. Two states are far more robust against noise than trying to distinguish ten voltage levels for decimal, making binary the natural, dependable basis for storing and processing all digital data.

What is the binary of a decimal number?

The binary of a decimal number is its representation in base two, using only 0s and 1s, where each position is a power of two. For example, decimal 10 is binary 1010, and decimal 255 is 11111111. The calculator converts any non-negative whole decimal number to this binary form for you.

Why do binary numbers get so long?

Each binary digit only doubles the representable range, so it takes many binary digits to express a large decimal number. Decimal is base ten, so each digit multiplies the range by ten, while binary multiplies by only two. This is why binary strings are much longer than the equivalent decimal numbers.

Can this convert decimals with fractions?

This calculator handles non-negative whole numbers. Fractional decimal values require converting the fractional part separately by repeatedly multiplying by two, which produces a binary point and fractional binary digits. For whole numbers, which cover most computing uses like integers and byte values, this calculator gives the complete binary representation.