Binary to Decimal Converter
Convert binary to decimal and back, and see exactly how place value turns a string of 0s and 1s into a number.
Binary to Decimal Converter
Editing either field updates the other. Binary accepts only 0 and 1; spaces are ignored.
🔒 Nothing you enter is sent anywhere or stored. All processing happens in your browser.
How it works
Binary (base 2) is the language computers use internally: every value is a string of 0s and 1s, where each position is worth twice the one to its right. Decimal (base 10) is how people usually write numbers. This converter moves between the two in both directions at once.
Type a binary string in the left field and its decimal value appears on the right; type a decimal number on the right and its binary form appears on the left. Because the two fields are linked, you never have to press a button — just edit whichever side you have and read the other. Spaces inside binary are ignored so you can group bits into nibbles or bytes for readability.
Only valid input is accepted: binary must be made of 0s and 1s, and decimal must be a whole, non-negative number. Anything else shows an error rather than producing a misleading result, and the maths uses arbitrary precision so even very long bit strings convert exactly.
Examples
Binary place value & chart
Reading right to left, each position is worth double the one before it:
| Position (from right) | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 |
|---|---|---|---|---|---|---|---|---|
| Place value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Binary chart (0–16)
| Decimal | Binary | Decimal | Binary |
|---|---|---|---|
| 0 | 0 | 9 | 1001 |
| 1 | 1 | 10 | 1010 |
| 2 | 10 | 11 | 1011 |
| 3 | 11 | 12 | 1100 |
| 4 | 100 | 13 | 1101 |
| 5 | 101 | 14 | 1110 |
| 6 | 110 | 15 | 1111 |
| 7 | 111 | 16 | 10000 |
| 8 | 1000 | 255 | 11111111 |
Common milestones: 8 bits (one byte) hold 0–255, and each extra bit doubles the range. That's why you see 256, 1024, and 65536 everywhere in computing.