Conversion

Binary сonverter

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is the binary number system?

The binary number system is one of the most fundamental systems used in mathematics, computer science, and digital electronics. It operates on base 2, which means that every number is represented using only two digits: 0 and 1. In this system, each digit represents a power of two, starting from the rightmost bit. This is different from our usual decimal system, which is based on powers of ten.

This converter allows you to convert numbers to binary number system. If you need to add, subtract, multiply or divide binary numbers, then use binary calculator.

In binary, the value of each position is multiplied by 2 raised to the corresponding exponent:

  • The rightmost bit represents 20=12^0 = 1
  • The next bit represents 21=22^1 = 2
  • Then 22=42^2 = 4, 23=82^3 = 8, and so on.

For example:

(1011)2=1×23+0×22+1×21+1×20=8+0+2+1=(11)10(1011)_2 = 1 \times 2^3 + 0 \times 2^2 + 1 \times 2^1 + 1 \times 2^0 = 8 + 0 + 2 + 1 = (11)_{10}

Thus, the binary number 1011 equals 11 in the decimal system.

How to convert any number system to binary

Our binary converter allows users to enter a number in any base system (from 2 to 36) and automatically converts it into the binary system. The process behind this conversion depends on the source base. Let’s go through the most common methods.

Convert from decimal to binary

To convert a decimal number to binary manually, use the repeated division method by 2. Divide the number by 2, record the remainder, and continue dividing the quotient until it reaches zero. The binary representation is the sequence of remainders read from bottom to top.

For example, convert 270₁₀ to Binary

DivisionInteger quotientRemainder
270 ÷ 21350
135 ÷ 2671
67 ÷ 2331
33 ÷ 2161
16 ÷ 280
8 ÷ 240
4 ÷ 220
2 ÷ 210
1 ÷ 201

Reading remainders from bottom to top gives:

27010=1000011102270_{10} = 100001110_2

Convert from other bases to binary

If the number is initially expressed in a base other than 10, the process involves two stages:

  1. Convert from the source base to decimal.
  2. Convert from decimal to binary (as shown above).

For example, convert hexadecimal to binary.

Step 1: Convert from base 16 to decimal:

2F16=2×161+15×160=32+15=47102F_{16} = 2 \times 16^1 + 15 \times 16^0 = 32 + 15 = 47_{10}

Step 2: Convert 47₁₀ to binary.

ДелениеЦелое частноеОстаток
47 ÷ 2231
23 ÷ 2111
11 ÷ 251
5 ÷ 221
2 ÷ 210
1 ÷ 201

Reading remainders from bottom to top gives:

4710=101111247_{10} = 101111_2

Therefore:

2F16=10111122F_{16} = 101111_2

Step-by-step example: Convert octal to binary

Step 1: Convert from octal to decimal.

Each octal digit is multiplied by the corresponding power of 8.

1238=1×82+2×81+3×80=64+16+3=8310123_8 = 1 \times 8^2 + 2 \times 8^1 + 3 \times 8^0 = 64 + 16 + 3 = 83_{10}

Step 2: Convert 83₁₀ to binary.

DivisionInteger quotientRemainder
83 ÷ 2411
41 ÷ 2201
20 ÷ 2100
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

Reading remainders from bottom to top gives:

8310=1010011283_{10} = 1010011_2

Therefore:

1238=10100112123_8 = 1010011_2

Binary conversion in computing

In computers, data storage and processing heavily rely on binary logic. Every operation inside a processor is ultimately defined through logical operations involving binary digits. Each bit (binary digit) can hold two states — often translated into voltage levels, magnetic polarities, or light pulses.

Binary representation allows systems to:

  • Process arithmetic operations efficiently.
  • Store data compactly.
  • Transmit digital information accurately.

Notes

  • Binary numbers are always composed of only 0 and 1.
  • Every base system can be converted to binary by first converting it to decimal, then to binary.
  • Large numbers can be efficiently converted and displayed using binary converter tools.
  • Binary representation is the foundation of digital computing, encryption, and data encoding.

Frequently asked questions

How to convert 10 from decimal to binary?

DivisionInteger quotientRemainder
10 ÷ 250
5 ÷ 221
2 ÷ 210
1 ÷ 201

Reading remainders from bottom gives 1010=1010210_{10} = 1010_2.

How to convert from binary to decimal?

Multiply each binary digit by its corresponding power of two and sum all results. Example:

(1101)2=1×23+1×22+0×21+1×20=8+4+0+1=(13)10(1101)_2 = 1 \times 2^3 + 1 \times 2^2 + 0 \times 2^1 + 1 \times 2^0 = 8 + 4 + 0 + 1 = (13)_{10}

How to quickly check if a binary number is even or odd?

Simply look at the last bit:

  • If the rightmost bit is 0, the number is even.
  • If it is 1, the number is odd.

Report a bug

This field is required.