Binary calculator

Type numbers in binary (0s and 1s), or pick decimal input to convert a decimal number. Results are shown in binary, decimal and hex, exactly, at any size.

Your answer

Binary101101
Decimal45
Hex2D

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. Each binary digit is worth 2 times the digit to its right. The numbers are converted to exact integers, combined, and converted back.

Method and assumptions

In base 2, the digits from the right are worth 1, 2, 4, … To convert a decimal number, divide by 2 repeatedly and read the remainders from last to first. Negative results are shown with a minus sign rather than in two’s complement.

Questions

What is 101101 in decimal?

45: 32 + 8 + 4 + 1.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators