InovoTools
Developer Tools

Binary to Decimal Converter

Convert a binary number (base 2) to decimal (base 10) and see the hex and octal values at the same time. The converter reads the bits from right to left, where each position is worth twice the one before it.

01

Your inputs

Start with the example, or enter your own values.

Processed in your browser. Your inputs stay on this device.

02

Your result

A little clarity, coming right up.

Make room for the answer.

Enter your values and run the tool. Your result will appear here.

How to use the Binary to Decimal Converter

Type a binary number made of 0s and 1s. The decimal value appears along with the hex and octal equivalents.

How binary to decimal conversion works

Each binary digit is a power of two. The rightmost bit is worth 1, the next 2, then 4, 8, 16 and so on. Multiply each bit by its place value and add the results. For 101101 that is 32 + 0 + 8 + 4 + 0 + 1 = 45. A byte has eight places, so its largest value, 11111111, is 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255.

Where you meet binary numbers

Binary shows up in subnet masks, file permissions, bit flags in code, network packets and computer science homework. Converting to decimal makes these values easier to compare and to type into tools that expect ordinary numbers.

The formula

Sum each bit × 2^position.

Examples

  • 101101
    Decimal: 45
    Hex: 2D
    Octal: 55
  • 11111111
    Decimal: 255
    Hex: FF
    Octal: 377
  • 1000
    Decimal: 8
    Hex: 8
    Octal: 10

Binary to decimal table

BinaryDecimal
00
11
102
113
1004
1015
1106
1117
10008
10019
101010
101111
110012
110113
111014
111115
1000016
10000032
100000064
10000000128
11111111255

Limitations and assumptions

Runs entirely in your browser. Nothing you enter is uploaded.

Frequently asked questions

How do I convert binary to decimal by hand?

Write the place values 1, 2, 4, 8, 16 and so on under the bits from right to left, keep the values that sit under a 1 and add them. 1101 becomes 8 + 4 + 1 = 13.

What is 11111111 in decimal?

255. Eight bits that are all 1 add up to 2⁸ − 1, the largest value an unsigned byte can hold.

What is 1010 in decimal?

10. The two 1 bits stand for 8 and 2, and 8 + 2 = 10.

How do I convert decimal back to binary?

Use the decimal to binary converter, or divide by 2 repeatedly and read the remainders from last to first.