GameParticles
Numbers & units

Binary to Decimal: How to Convert, With Chart and Examples

Convert binary to decimal by adding the place values (1, 2, 4, 8, 16...) wherever a 1 appears. Step-by-step method, a doubling shortcut and a 0 to 15 chart.

Updated

To convert binary to decimal, give each binary digit a place value that doubles from right to left (1, 2, 4, 8, 16 and so on), then add the place values wherever the digit is 1. For example, 1011 is 8 + 0 + 2 + 1, which equals 11. The same method works for a binary number of any length.

How binary place values work

Decimal is base 10. Each position is worth ten times the one to its right: ones, tens, hundreds. Binary is base 2, so each position is worth twice the one to its right: ones, twos, fours, eights.

In decimal, 3,052 means 3 thousands, 0 hundreds, 5 tens and 2 ones. In binary, 1011 means 1 eight, 0 fours, 1 two and 1 one. Because a binary digit (a bit) can only be 0 or 1, there is no multiplying to do. Each place value is either counted or skipped.

The positional method, step by step

  1. Write the binary number down.
  2. Under the rightmost digit write 1. Moving left, double each time: 2, 4, 8, 16, 32, 64, 128.
  3. Cross out every place value that sits under a 0.
  4. Add the place values that are left.

Worked example: convert 11010110.

Bit11010110
Place value1286432168421
Counted128640160420

Add the bottom row: 128 + 64 + 16 + 4 + 2 = 214. So 11010110 in binary is 214 in decimal.

As a formula, the value is the sum of each bit multiplied by 2 raised to its position, counting positions from 0 on the right. For 1011 that is 1×2^3 + 0×2^2 + 1×2^1 + 1×2^0, which gives 8 + 0 + 2 + 1 = 11.

The doubling shortcut

For long numbers there is a method that needs no place value table. Read the bits from left to right, keeping a running total that starts at 0. For each bit, double the total and add the bit.

For 1011:

  1. Start with 0. Double it and add the first bit, 1: total is 1.
  2. Double to 2 and add the next bit, 0: total is 2.
  3. Double to 4 and add the next bit, 1: total is 5.
  4. Double to 10 and add the last bit, 1: total is 11.

Same answer, and you never need to know what the 2 to the power 11 column is worth. This is also how most programs parse a binary string.

Binary to decimal chart

The sixteen values that fit in four bits are worth memorizing, because long binary numbers are usually read in groups of four.

BinaryDecimalBinaryDecimal
0000010008
0001110019
00102101010
00113101111
01004110012
01015110113
01106111014
01117111115

A few larger landmarks:

BinaryDecimal
1000016
10000032
100000064
1100100100
10000000128
11111111255
100000000256
11111010001,000
100000000001,024

Two patterns help when checking your work. A 1 followed only by zeros is always a power of two. A run made only of ones is always one less than the next power of two, so 1111 is 15 and 11111111 is 255. And any binary number ending in 1 is odd.

Signed binary numbers

The method above treats the number as unsigned, meaning zero or positive. Computers also store negative numbers, most often in two's complement. In that scheme the leftmost bit of a fixed-width value carries a negative weight.

For an 8-bit value, the leftmost bit is worth -128 instead of 128. Take 11010110 again. Unsigned, it is 214. As a signed 8-bit number it is -128 + 64 + 16 + 4 + 2, which equals -42. A shortcut: if the top bit is 1, work out the unsigned value and subtract 256 (for 8 bits), 65,536 (for 16 bits) or 4,294,967,296 (for 32 bits).

Which reading is right depends entirely on how the program that stored the bits declared them. The bits themselves do not say.

Binary fractions

Bits to the right of a binary point continue the pattern downward: one half, one quarter, one eighth, one sixteenth. So 0.101 is 0.5 + 0.125 = 0.625, and 110.11 is 4 + 2 + 0.5 + 0.25 = 6.75.

Using the converter

The Number Base Converter has four linked fields: binary, octal, decimal and hexadecimal. Type a binary number into the binary field and the decimal value appears as you type, along with the octal and hex forms. Spaces between groups are fine, so you can paste 1101 0110 as is.

A side panel shows the bit length, the unsigned and signed 32-bit readings, and the value padded out to 8, 16 and 32 bits. The converter works with whole numbers up to 32 bits, which means a maximum of 4,294,967,295. It does not take binary fractions, so use the halves and quarters method above for those.

Related guides

Going the other way uses division instead of addition: see Decimal to Binary. If you want to turn binary into letters instead of numbers, How to Read Binary covers bytes and ASCII text. And because every four bits map to one hex digit, What Is Hexadecimal shows the shorter way programmers write the same values.

Try it

Paste 11010110 into the binary field of the Number Base Converter and check that the decimal field reads 214. Then edit one bit at a time and watch the decimal value jump by that bit's place value. It is the fastest way to make the doubling pattern stick.

Tools in this guide

Frequently asked questions

How do you convert binary to decimal?

Write the place values 1, 2, 4, 8, 16 and so on under the binary digits, starting from the right. Add up the place values that sit under a 1 and ignore those under a 0. For 1011 that is 8 + 2 + 1, which equals 11.

What is 1111 in decimal?

1111 in binary is 15 in decimal, because 8 + 4 + 2 + 1 = 15. It is the largest value four bits can hold. In general, a run of n ones equals 2 to the power n, minus 1, so 11111111 is 255.

What is the largest number 8 bits can represent?

Eight bits can hold 256 different values. Read as an unsigned number the range is 0 to 255, where 255 is 11111111. Read as a signed two's complement number the range is -128 to 127, because the leftmost bit is used for the sign.

Can binary numbers have a decimal point?

Yes. Digits to the right of the point stand for one half, one quarter, one eighth and so on. Binary 0.101 is 0.5 + 0.125, which equals 0.625 in decimal. Many fractions that are short in decimal, such as 0.1, repeat forever in binary.

More numbers & units guides

JSON Formatter
Developer · Format, validate and minify JSON with syntax highlighting.
↵
Base64 Encode / Decode
Developer · Encode text to Base64 or decode Base64 back to plain text.
↵
URL Encoder / Decoder
Developer · Encode or decode URL components and query strings.
↵
Hash Generator
Developer · Generate MD5, SHA-1, SHA-256 and SHA-512 hashes.
↵
UUID Generator
Developer · Generate UUIDs v4 (random) in bulk with one click.
↵
Regex Tester
Developer · Test regular expressions against text with live match highlighting.
↵
Word Counter
Text · Count words, characters, sentences, paragraphs and reading time.
↵
Case Converter
Text · Convert text between UPPER, lower, Title, camelCase, snake_case and more.
↵
List Sorter
Text · Sort, reverse, deduplicate and shuffle lists of text.
↵
Markdown Preview
Text · Write Markdown and see a live rendered preview side by side.
↵
Percentage Calculator
Numbers · Calculate percentages, increases, decreases and what % one number is of another.
↵
Color Converter
Colors · Convert colors between HEX, RGB, HSL and HSV instantly.
↵
Snake
Arcade · Eat food, grow longer, don't hit the walls. A timeless classic.
↵
2048
Puzzle · Slide tiles and combine them to reach the legendary 2048 tile.
↵
Word Grid
Puzzle · Guess the hidden five letter word in six tries using color clues.
↵
Sudoku
Puzzle · Fill the 9x9 grid with logic. Four difficulties from easy to expert.
↵
Minesweeper
Strategy · Use number clues to clear the minefield. Classic logic, three levels.
↵
Breakout
Arcade · Smash every brick with paddle and ball. Power-ups, combos, endless levels.
↵
Typing Practice
Casual · Build your WPM and accuracy with timed drills from 30 seconds to 5 minutes. Find your weak keys.
↵
TypeRunner
Arcade · Multiplayer typing race. Race friends by link, beat computer runners, or chase your own ghost.
↵
Typing Blocks
Arcade · Type each word before its wooden block lands. Miss, and the pile climbs toward the line.
↵
Bubble Shooter
Arcade · Aim, bank shots off the walls, and pop groups of three or more bubbles.
↵
Road Rush
Arcade · Race seven rivals through traffic and punch your way to the front.
↵