Free Binary to Decimal Converter Online

Convert binary (base 2) to decimal (base 10) instantly with this free online binary to decimal converter. Enter a number made only of 0s and 1s to see its decimal value, hexadecimal, octal and step-by-step place-value calculation. You can also convert decimal to binary, work with fractions and signed two’s-complement values, and copy results. Conversions run in your browser.

Convert now Numbers stay in your browser
Binary to decimal converter tool with hex, octal and step-by-step place values

Convert a number

Type a binary number to convert it.
Decimal value
—

Other bases and details

—Decimal
—Binary
—Hexadecimal
—Octal
—Bits
—Bytes needed
—Signed value
—As text

Tap a base to copy it. Hex and octal are exact, including digits after the point.

Working

Enter a number to see the working.

The guide

Binary to Decimal Conversion: Formula, Examples and Steps

Understand how binary works, convert by hand, and read signed numbers with confidence.

A simple explanation

What is binary, and why convert it to decimal?

Binary is the number system computers use. It has only two digits, 0 and 1, called bits. Decimal is the system people use every day, with ten digits. Converting between them lets you read what a computer is storing, or write a value the way a computer wants it.

Each position in a binary number is worth twice the position to its right: 1, 2, 4, 8, 16 and so on. Add up the positions that hold a 1 and you have the decimal value. This converter does that instantly, shows the working, and also gives hexadecimal and octal. For a visual use of hex values, try the Color Palette Generator.

Common reasons to convert

Why People Convert Binary Numbers

Learning and homework

Check answers for computer science and electronics classes, and see the place-value working that gets there.

Programming and debugging

Read bit flags, masks, permissions and register values, or check what a signed 8-bit or 32-bit value really is.

Networking and data

Work with IP address octets, subnet masks and raw bytes, or decode a string of bytes into readable text.

Worked examples

Example Conversions and How They Break Down

These examples show the method. You can type any of them into the converter to check.

BinaryWorkingDecimalHex
11018 + 4 + 113D
11010110128 + 64 + 16 + 4 + 2214D6
101.1014 + 1 + 0.5 + 0.1255.6255.A
11111111 (8-bit signed)255 − 256−1FF
10000000 (8-bit signed)128 − 256−12880
Convert in a few steps

How to Use the Binary to Decimal Converter

  1. Choose Binary → Decimal or Decimal → Binary at the top.
  2. Type or paste your number. Spaces, underscores and a leading 0b are ignored, so 0b1101 0110 works.
  3. Read the result and the table of other bases. Tap any value to copy it.
  4. To read negative numbers, tick the signed option and choose a bit width, or leave it on Automatic to use the length you typed.
  5. Open the working section to see each place value or each division step.
No tool needed

How to Convert Binary and Decimal by Hand

  • Binary to decimal: label the bits from the right with 1, 2, 4, 8, 16, and add the labels above every 1.
  • Decimal to binary: divide by 2 until you reach 0. The remainders, read from last to first, are the bits.
  • Fractions to binary: multiply the fraction by 2, take the whole part as the next bit, and repeat with what is left.
  • Binary to hex: split the bits into groups of 4 from the right, and convert each group to one hex digit.
  • Check your work: a binary number that ends in 0 is even, and one that ends in 1 is odd.
Spreadsheets and code

Binary to Decimal Formulas for Excel, Sheets and Code

Spreadsheets and programming languages have built-in functions for this. They are limited to smaller numbers than this tool.

Excel / Sheets, binary to decimal: =BIN2DEC("11010110") → 214 Excel / Sheets, decimal to binary: =DEC2BIN(214) → 11010110 Python: int("11010110", 2) and bin(214) JavaScript: parseInt("11010110", 2) and (214).toString(2) Kotlin: "11010110".toInt(2) and 214.toString(2) Java: Integer.parseInt("11010110", 2) and Integer.toBinaryString(214)

Excel’s BIN2DEC accepts at most 10 bits and treats the tenth bit as a sign bit, so use this tool for longer values.

Negative numbers

Signed Numbers and Two’s Complement

Unsigned

All the bits are part of the value. In 8 bits you can store 0 to 255.

Two’s complement

The first bit counts as a negative amount. In 8 bits you can store −128 to 127. To negate a number, flip every bit and add 1.

Bit width matters

The same bits mean different numbers at different widths. 11111111 is −1 as 8 bits but 255 as unsigned, and 0000000011111111 is 255 even as 16 bits signed.

Sign and magnitude

Writing a minus sign in front, like −1010, is a different idea from two’s complement. This tool shows both when you convert a negative decimal number.

Better results

Simple Tips for Working With Binary

  • Group bits in 4s or 8s so they are easier to read and compare against hex digits and bytes.
  • Learn the powers of two up to 2^10 (1024). They make mental conversion much faster.
  • If the result is wrong, check for a missing or extra bit and for the signed option being on or off.
  • When writing code, prefer the language’s own literal, like 0b11010110, so the value is obvious to readers.
Good to know

Limitations and Privacy

Privacy

Every conversion runs in your browser. The numbers you type are never sent to our server and are not saved.

Limitations

Binary input is limited to 2,048 bits and decimal input to about 600 digits. Decimal fractions that do not end in binary are cut at 32 binary digits. Floating-point formats such as IEEE 754 are not interpreted: bits are read as plain numbers.

Common questions

Binary to Decimal Converter FAQ

How do I convert binary to decimal?

Write the place values 1, 2, 4, 8, 16 and so on under the bits, starting from the right. Add up the place values wherever the bit is 1. For 1101 that is 8 + 4 + 1 = 13.

How do I convert decimal to binary?

Divide the number by 2 repeatedly and note each remainder. When you reach 0, read the remainders from last to first. For 13 the remainders give 1101.

Can it convert binary numbers with a fractional part?

Yes. Digits after the binary point count as 1/2, 1/4, 1/8 and so on, so 101.101 is 5.625. Going the other way, decimal fractions are converted up to 32 binary digits, and the tool tells you when a value cannot be written exactly.

What is two’s complement?

Two’s complement is how computers store negative whole numbers. The first bit has a negative weight, so in 8 bits 11111111 is −1 and 10000000 is −128. Tick the signed option and pick a bit width to read your bits this way.

How many bits can I enter?

Up to 2,048 bits, or about 600 decimal digits. The conversion uses exact arbitrary-precision arithmetic, so large numbers do not lose digits the way they would in a normal calculator.

Why does it say my input is not a binary digit?

Binary numbers use only 0 and 1. If your number contains digits such as 2 to 9 it is probably decimal, so switch to Decimal → Binary. Spaces, underscores and a leading 0b are ignored.

Does it show hexadecimal and octal too?

Yes. Every conversion also shows hexadecimal (base 16) and octal (base 8), and you can tap any value to copy it.

Can it turn binary into text?

When you enter a whole number of bytes (a multiple of 8 bits), the tool also shows the text those bytes spell in UTF-8, for example 01001000 01101001 is Hi.

Is my input stored anywhere?

No. All conversion happens in your browser and nothing you type is sent to our server or saved.

Can I link to a specific conversion?

Yes. Add ?mode=b2d&value=11010110 or ?mode=d2b&value=214 to the page address.

From people using this tool

Reviews

Loading reviews…
Keep going

More tools in the box

The homepage features dozens more free tools that don't require an API key.

Suggest a tool