Binary to Decimal Converter

Turn any binary number into its base-10 value instantly.

Free binary to decimal converter — paste any string of 0s and 1s and get the base-10 value, plus hex and octal. Runs entirely in your browser, nothing is uploaded. It runs free in your browser on Gera Tools, with nothing uploaded.

Last updated Source: Gera Tools

What is binary to decimal conversion?

Binary (base 2) uses only 0 and 1, where each position is a power of two. Converting to decimal (base 10) sums those powers — for example 1101 is 8 + 4 + 0 + 1 = 13.

Binary to decimal — instant base-10 conversion

This tool converts a binary number (base 2) into its decimal (base 10) value, and also shows the hexadecimal and octal equivalents. It is built for students learning number systems, programmers reading register values or bit masks, and anyone decoding data stored in binary. Spaces between groups are ignored, so grouped input like 1010 1101 works exactly the same as 10101101.

How it works

Each binary digit stands for a power of two, increasing from right to left: 1, 2, 4, 8, 16, 32, 64, 128, and so on. Only positions where the digit is 1 contribute to the total; positions with 0 add nothing. The conversion method:

  1. Identify the rightmost digit — that is the 2⁰ = 1 position.
  2. Move left, doubling the power at each step (2¹ = 2, 2² = 4, 2³ = 8, …).
  3. Wherever the binary digit is 1, add that power to a running total.
  4. The sum is the decimal value.

The tool strips whitespace, checks the input contains only 0 and 1, parses it as base 2 using arbitrary-precision arithmetic, and re-renders the same integer in base 10, base 16 (hex) and base 8 (octal).

Worked example

Take 10101101:

Bit position76543210
Power of 21286432168421
Digit10101101
Contribution12803208401

Sum: 128 + 32 + 8 + 4 + 1 = 173

So 10101101 = 173 decimal, AD in hex, 255 in octal, across 8 bits.

Common reference values

BinaryDecimalHexNotes
111Single bit set
101010ANibble
110113DNibble
11111111255FFMax unsigned byte
1 0000 0000256100One byte overflow
1111 1111 1111 111165535FFFFMax unsigned 16-bit

When to use this

  • Reading CPU register dumps or memory hex dumps in debugging sessions.
  • Decoding bitmask values from embedded systems or network protocols.
  • Verifying binary-to-decimal conversions done by hand in coursework.
  • Understanding IPv4 subnet masks (e.g. 11111111.11111111.11111111.00000000 = 255.255.255.0).

Grouped input with spaces — such as 1111 0000 — is accepted directly and the spaces are stripped before conversion. Everything runs in your browser; nothing is uploaded.