Number converter · Free · No sign-up

Binary to Decimal Converter

Short answer

To convert binary to decimal, multiply each bit by its place value, a power of 2 counted from 0 at the right, and add: 101101 is 32 + 8 + 4 + 1 = 45. Bits after the point are worth 1/2, 1/4 and 1/8, so 101101.101 is 45.625. As a signed 8-bit pattern, 11010110 reads as -42.

Every bit's place value shown.

45.625In hex: 2D.A.101101.101 in binary =
  1. Number the places from the point: the first place left of the point is 2⁰ = 1, the next 2¹ = 2, and right of the point 2⁻¹ = 0.5.
  2. 1 × 2⁵ = 32
  3. 0 × 2⁴ = 0
  4. 1 × 2³ = 8
  5. 1 × 2² = 4
  6. 0 × 2¹ = 0
  7. 1 × 2⁰ = 1
  8. 1 × 2⁻¹ = 0.5
  9. 0 × 2⁻² = 0
  10. 1 × 2⁻³ = 0.125
  11. Add them: 32 + 0 + 8 + 4 + 0 + 1 + 0.5 + 0 + 0.125 = 45.625.
The number in every common base
FormValue
Binary (base 2)101101.101
Octal (base 8)55.5
Decimal (base 10)45.625
Hexadecimal (base 16)2D.A

The figures above are an example: put in your own binary number. Spaces and underscores between digit groups are ignored, and 0b, 0o, 0x or # in front are read when they match the base. Worked out exactly in this browser and kept there; nothing is sent anywhere. Going the other way? Use decimal to binary.

Type a binary number, with a point for a fraction if you like, and read its decimal value with each bit's share of the total listed. Turn on two's complement to read a bit pattern as a signed value.

Binary to decimal conversion turns a base-2 number, written with only 0 and 1, into the base-10 number it stands for, by adding up the powers of 2 where the bits are 1.

  • No sign-up
  • Nothing uploaded
  • Shows every step
  • Works offline
  • Exact, any size

Key facts

Binary to decimal converter at a glance
DetailAnswer
Method shownEach bit × its power of 2, then add
Example101101.101 = 32 + 8 + 4 + 1 + 0.5 + 0.125 = 45.625
FractionsAccepted after a point; always a finite decimal
Signed8, 16, 32 or 64-bit two's complement: 11111111 = −1 at 8 bits
SizeUp to 256 characters, exact
Where your numbers are keptThis browser only

How to convert binary to decimal by hand

The same steps the converter lists, for any binary number.

  1. Write the place values

    Above each bit from the right: 1, 2, 4, 8, 16, doubling each time.

  2. After the point, keep halving

    0.5, 0.25, 0.125 for the first three places.

  3. Pick out the 1s

    A 0 bit adds nothing.

  4. Add the place values under the 1s

    101101: 32 + 8 + 4 + 1 = 45.

  5. For a signed pattern, check the top bit

    If it is 1, subtract 2 to the power of the width.

  6. Check with the converter

    Its working lists the same sum.

Who converts binary to decimal

Anyone handed a string of 0s and 1s who needs the number it stands for.

  • Computer science students

    Checking each step of a base-conversion exercise.

  • Networking students

    Subnet masks and addresses, octet by octet.

  • Embedded developers

    Register values and status bits read as numbers.

  • Teachers

    A worked example for any binary number on demand.

  • Puzzle solvers

    Binary clues in escape rooms and geocaches.

  • Anyone reading a binary clock

    Each column's bits as a digit.

The doubling method: binary to decimal without powers of 2

The place-value method needs the powers of 2. There is a second method that needs none, and it is the one to use in your head: start at 0, and for each bit from the left, double what you have and add the bit. It gives the same answer because doubling at every step is exactly what moves each earlier bit one place higher.

101101 by the doubling method
Bit readDouble the running totalAdd the bitRunning total
10 × 2 = 0+ 11
01 × 2 = 2+ 02
12 × 2 = 4+ 15
15 × 2 = 10+ 111
011 × 2 = 22+ 022
122 × 2 = 44+ 145

Both methods agree: 101101 is 45. The doubling method is how a program reads a binary string, one character at a time, and it is quicker by hand for long numbers because you never need to know that the leftmost bit of a 16-bit value is worth 32,768. The converter shows the place-value method because it makes each bit’s share of the total visible, which is what most courses ask for.

Binary place values, both sides of the point

Each place is worth twice the one to its right. Right of the point the halving carries on: a half, a quarter, an eighth. The same doubling is how ten fingers count to 1,023. Every one of those fractions ends in decimal, because 10 is divisible by 2, so a binary number with a point always has a finite decimal value.

Binary place values
PlacePower of 2Decimal value
16th bit from the right21532,768
9th28256
8th (the top of a byte)27128
7th2664
6th2532
5th2416
4th238
3rd224
2nd212
1st (just left of the point)201
1st after the point2−10.5
2nd after the point2−20.25
3rd after the point2−30.125
4th after the point2−40.0625

When the top bit means minus

Whether 11111111 is 255 or −1 is not in the bits; it depends on whether the program treats them as signed. A binary number written with a minus sign, such as −101, is simply negative five. A bit pattern from a register, a file or a network packet has no minus sign, so if it is a signed value, its top bit decides: 1 means subtract 2 to the power of the width. Set the width in the converter to read a pattern as signed.

The same 8-bit patterns read both ways
PatternUnsignedSigned (two’s complement)
0000000000
01111111127127
10000000128−128
11010110214−42
11111110254−2
11111111255−1

Only patterns with the top bit set read differently. That is why 0 to 127 are the same in both readings, and why the signed range stops at 127 while the unsigned one reaches 255.

Binary numbers you may need to read

Binary is rarely typed by hand, but it appears whenever the individual bits mean something.

Binary you may need to read
WhereBinaryDecimalWhat it means
IPv4 subnet mask11111111.11111111.11111111.00000000255.255.255.024 network bits: a /24 network
A letter in ASCII0100000165Capital A
Unix permission bits111 101 1017 5 5 (octal 755)Owner rwx, group and others r-x
A binary clock column10019The units digit of the minutes

The subnet mask is converted one octet (8 bits) at a time, which is why each part is between 0 and 255. Permission bits are read three at a time, the octal grouping shown on the binary converter’s shortcut table.

What this page does not do

This page reads binary written in 0s and 1s. It does not decode text written in binary into letters (01000001 is shown as the number 65, not the letter A), and it does not decode IEEE 754 floating-point bit patterns. Up to 256 characters, worked exactly.

A string of 8-bit groups that spells a word is text, not one big number; paste it into the binary to text converter to read it as characters.

What this page does and does not do
It doesIt does not
Binary whole numbers and fractions to decimal, exactlyTurn binary text into letters
Signed patterns at 8, 16, 32 and 64 bitsDecode float or double bit layouts
Show each bit's place valueSend your numbers anywhere

This converter or a typical one

This binary to decimal converter compared with a typical one
 This pageA typical one
Shows each bit's place valueYes, with the sumOften the answer only
Binary fractions (101.101)Yes, exactOften refused
Signed (two's complement)8 to 64 bits, both readingsSometimes one fixed width
Very long binary numbersExactRounded past 53 bits
Your numbers leave the browserNeverVaries

Frequently asked questions

How do you convert binary to decimal?

Write the powers of 2 above the bits, starting with 1 at the right and doubling to the left. Add the powers that sit above a 1. For 1011 that is 8 + 2 + 1 = 11. The converter lists each bit's value and the sum, and it handles a point and bits after it the same way with halves, quarters and eighths.

What is 1010 in decimal?

1010 in binary is 10 in decimal: 8 + 0 + 2 + 0. Reading it as the decimal number one thousand and ten is the usual slip, so programmers often write 0b1010 to make the base clear. The converter accepts the 0b prefix.

What is 11111111 in decimal?

As an unsigned number, 11111111 is 255, the largest value one byte can hold (2^8 - 1). As a signed 8-bit two's complement value the same bits mean -1. Set the converter's width to 8-bit to see both readings side by side.

How do you convert a binary fraction to decimal?

Bits after the point are worth 1/2, 1/4, 1/8 and so on. Add the ones under a 1. 0.101 is 0.5 + 0.125 = 0.625. A binary fraction always ends in decimal because every power of 2 divides some power of 10, so the converter's decimal answer is always exact.

How do you read a negative binary number?

If it is written with a minus sign, read the digits as usual and keep the sign: -101 is -5. If it is a fixed width bit pattern with no sign, it may be two's complement: when the top bit is 1, subtract 2 to the power of the width. 11010110 at 8 bits is 214 - 256 = -42.

What is 10000000 in decimal?

Unsigned, 10000000 is 128, which is 2^7. As a signed 8-bit value it is -128, the lowest number a signed byte can hold, because its only 1 is the sign bit. That one pattern is why the signed byte range is -128 to 127 rather than symmetric.

Is there a quick way to convert binary to decimal in your head?

Yes: the doubling method. Start at 0 and, for each bit from the left, double the total and add the bit. For 1101: 1, then 3, then 6, then 13. It needs no table of powers, and it is the way a computer program reads a binary string.

Why does binary only use 0 and 1?

Base 2 has two digits for the same reason base 10 has ten: the base sets how many there are. Hardware uses it because a circuit can tell two states, such as a high or low voltage, far more reliably than ten. Each of those states is one bit.

Open the binary to decimal converter

Free, no sign-up, and what you enter stays in your own browser.