Binary to Decimal Converter - Convert Binary Numbers
—————Binary to Decimal in One Step
Paste a binary number made of 0s and 1s and the decimal value appears straight away, with octal, hex and a custom base listed underneath. The converter uses arbitrary-precision integers, so a 64-bit register dump or a 200-bit value converts exactly instead of being rounded.
How to Convert Binary to Decimal by Hand
Binary is base 2, so each position is worth twice the one to its right. Number the bits from 0 starting at the rightmost bit, then add up 2 to the power of each position that holds a 1.
Worked example: 101101
- Write the positions under the bits: 1 (5), 0 (4), 1 (3), 1 (2), 0 (1), 1 (0).
- Keep the positions that hold a 1: 5, 3, 2 and 0.
- Look up their values: 32, 8, 4 and 1.
- Add them: 32 + 8 + 4 + 1 = 45.
A second method avoids powers entirely. Start at 0, and for each bit from left to right, double the running total and add the bit. For 101101: 1, 2, 5, 11, 22, 45. This doubling method is how the converter works internally and is easy to do in your head for short numbers.
Powers of Two Table
The value of a 1 bit at each position:
| Bit position | Power | Decimal value |
|---|---|---|
| 0 | 20 | 1 |
| 1 | 21 | 2 |
| 2 | 22 | 4 |
| 3 | 23 | 8 |
| 4 | 24 | 16 |
| 5 | 25 | 32 |
| 6 | 26 | 64 |
| 7 | 27 | 128 |
| 8 | 28 | 256 |
| 9 | 29 | 512 |
| 10 | 210 | 1,024 |
| 11 | 211 | 2,048 |
| 12 | 212 | 4,096 |
| 13 | 213 | 8,192 |
| 14 | 214 | 16,384 |
| 15 | 215 | 32,768 |
| 16 | 216 | 65,536 |
Common Binary Numbers
| Binary | Decimal |
|---|---|
| 1 | 1 |
| 10 | 2 |
| 101 | 5 |
| 1000 | 8 |
| 1010 | 10 |
| 1111 | 15 |
| 10000 | 16 |
| 100000 | 32 |
| 1000000 | 64 |
| 1111111 | 127 |
| 10000000 | 128 |
| 11111111 | 255 |
| 1111111111111111 | 65,535 |
Shortcuts for Reading Binary
A run of n ones always equals 2n − 1, so 1111 is 15 and 11111111 is 255. A 1 followed by n zeros is exactly 2n, so 1000000 is 64. For long numbers, split the bits into groups of four from the right and read each group as a hex digit (0000 to 1111 is 0 to F); converting the hex to decimal is then easier than adding many powers of two. Leading zeros never change the value: 00101101 and 101101 are both 45. Turn on "Group digits" in the converter to see the result alongside a nibble-grouped view of the input.
Where You Meet Binary Values
Binary shows up in bit flags and permission masks, subnet masks (11111111.11111111.11111111.00000000 is 255.255.255.0), hardware registers and low-level protocol documentation. Going the other way? Use the decimal to binary converter, or the number base converter for any pair of bases.
Related Tools
JWT Decoder
Decode JSON Web Tokens and inspect header, payload and signature.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 strings back to plain text.
URL Encode / Decode
Percent-encode or decode URLs and query-string parameters safely.
Hash Generator
Generate MD5, SHA-1, SHA-256, SHA-384, and SHA-512 hashes from text.