Binary to Decimal Converter Online — Free Binary Calculator

Need to convert a binary number quickly? Enter it above and get the decimal value instantly. This free binary to decimal converter online also shows the working, hexadecimal and octal values, so you can check the answer instead of trusting a number with no explanation.

Convert binary Runs locally in your browser
No API key Free, no sign-up required
Binary to Decimal Converter — Convert Binary Numbers Online

Binary number

Type 0s and 1s. Spaces, underscores and a 0b prefix are ignored.
Read the number as

Add a point for fractions, such as 101.101. Longer numbers up to 4,096 bits are converted exactly.

Result

Decimal —
—Hexadecimal
—Octal
0Bits
0Ones (1s)
—Signed reading

How it was calculated

Enter a binary number to see each bit and its place value.

Convert a list

Uses the same settings as above. Up to 500 lines.

Your decimal results will appear here.

The guide

Binary to Decimal Converter: Convert Binary Numbers with Step-by-Step Working

Convert binary to decimal, check two's complement values, and see exactly how each bit adds up.

A simple explanation

What Is Binary to Decimal Conversion?

Binary uses only 0 and 1, while decimal is the number system we normally use from 0 to 9. Converting binary to decimal simply means finding the ordinary decimal number represented by a binary pattern. For example, 1010 is 10 in decimal.

Binary appears everywhere in computing, from program data and bit flags to electronics and networking. If you only need an answer, the converter does the arithmetic for you. If you are learning the method, the calculation panel lets you see where the answer comes from.

Common reasons to convert

Popular Uses

You do not need to be a programmer to run into binary. It appears in computer science lessons, code, networking and electronics, and a quick converter is useful whenever you need to check a value.

Homework and learning

Use the step-by-step working to check number-system exercises and see how each bit contributes to the final decimal value.

Programming and debugging

Check bit flags, masks and register values without doing the place-value arithmetic by hand. Signed mode is also useful when a bit pattern represents a negative integer.

Networking and electronics

Work with binary groups used in networking and electronics. For repeated conversions, paste one value per line into the list converter and copy the decimal results together.

Worked examples

Binary Numbers and Their Decimal Values

Looking for a binary decimal calculator for a quick value? These examples show the kind of binary-to-decimal conversions you can check with the tool, including short values, 0b-prefixed input and common bit patterns.

These examples cover several searches people commonly make when checking a binary value. They are all unsigned conversions; use Signed mode when the bit pattern represents a two’s-complement integer.

BinaryDecimalHexWorking
0010222
0100444
101554 + 1
101010A8 + 2
111115F8 + 4 + 2 + 1
10000161016
0b101010422A32 + 8 + 2
11111111255FF128 + 64 + 32 + 16 + 8 + 4 + 2 + 1
100000000256100256
111110100010003E8512 + 256 + 128 + 64 + 32 + 8
Convert in a few steps

How to Convert Binary to Decimal Online for Free

  1. Enter or paste a binary number into the box. You can include spaces, underscores or a leading 0b prefix; the converter cleans those up before calculating the result.
  2. Read the decimal answer in the result panel. Hexadecimal, octal, bit count and the number of 1s update as you type.
  3. If the bits represent a signed integer, switch to Signed (two’s complement) and choose the correct bit width, or leave it on Auto.
  4. Open the calculation details to see each bit, its place value and the sum used to reach the decimal answer.
  5. For a batch conversion, paste one binary value per line into the list converter. You can then copy all decimal results or download them as a CSV file.
The full picture

Complete Guide to Reading Binary

Most conversions come down to place values. Signed numbers add one more idea: two’s complement, which is how many systems represent negative integers.

Place values

Each position is a power of two. Starting at the right, the values are 1, 2, 4, 8, 16 and so on. Add the values where the bit is 1 and skip the positions containing 0.

The double-and-add shortcut

There is another handy way to convert binary without writing powers of two. Start at 0, read from left to right, double the running total and add the next bit. For 1101, the running values are 1, 3, 6 and 13.

Binary fractions

Digits after a binary point represent fractions: 1/2, 1/4, 1/8 and so on. For example, 101.101 equals 4 + 1 + 0.5 + 0.125, giving 5.625.

Two's complement

For a signed value, the leftmost bit acts as the sign bit for the chosen width. In 8-bit two’s complement, 11111110 represents −2, while the same eight bits represent 254 when read as unsigned.

What happens as you type

How This Tool Works

The converter first cleans spaces, underscores and a leading 0b prefix, then checks that the input contains valid binary digits and, in unsigned mode, at most one binary point. It calculates the value with exact big-number arithmetic. That means long binary values can be converted without the rounding problems you can get from ordinary floating-point arithmetic.

Better results

Tips & Best Practices

  • For a long value, group the bits in fours or eights, such as 1101 0110. The spaces are ignored, but they make the number much easier to read.
  • Check whether the number is signed or unsigned before you convert it. The same bits can have very different decimal values depending on that choice.
  • Use the correct bit width for signed values. For example, 1111 is −1 as a 4-bit two’s-complement value, but it can represent 15 when treated as an unsigned value.
  • If you are working with an IPv4 address, convert its eight-bit groups separately. A dotted address is not one binary number, and the converter treats a point as a binary point.
  • Use a quick sanity check when you can. Appending a zero doubles an unsigned binary value, and a string of all 1s is one less than the next power of two.
Good to know

Limitations & Privacy

Privacy

Conversions are performed locally in your browser. The binary values you enter are not uploaded to the server or saved by the converter.

Limitations

The converter accepts binary values up to 4,096 bits and up to 500 lines in the batch converter. Two’s complement is for whole numbers, while binary fractions are supported in unsigned mode. Hexadecimal and octal represent the entered bit pattern.

From people using this tool

Reviews

Loading reviews…
Keep going

More tools in the box

Dozens more free, no-API-key tools live on the homepage.