Binary to Decimal Converter
Convert binary to decimal online with the working shown step by step. Handles fractions such as 101.101, signed two's complement values and whole lists at once.
Runs in your browser · Nothing uploaded · No sign-up
Something not working, or missing a feature? Send feedback
About the Binary to Decimal Converter
The Binary to Decimal Converter turns base-2 numbers into ordinary decimal numbers and shows the working: each bit is multiplied by its power of 2 and the results are added. It also reads binary fractions such as 101.101 and signed two's complement values, so it is useful for homework, exam practice and reading register dumps.
Conversion happens in your browser, so your files and records stay private.
How to use the Binary to Decimal Converter
- Type a binary number such as 101101, or paste several, one per line.
- Turn on "Signed (two's complement)" if the bits are a signed integer, such as 11111111 for -1.
- Read the decimal result and the table that multiplies each bit by its power of 2.
- Copy one result, or all of them for a pasted list.
Powers of 2
The place value of each bit, counted from the right starting at 0.
| Bit position | Power | Decimal value |
|---|---|---|
| 0 | 2^0 | 1 |
| 1 | 2^1 | 2 |
| 2 | 2^2 | 4 |
| 3 | 2^3 | 8 |
| 4 | 2^4 | 16 |
| 5 | 2^5 | 32 |
| 6 | 2^6 | 64 |
| 7 | 2^7 | 128 |
| 8 | 2^8 | 256 |
| 10 | 2^10 | 1,024 |
| 15 | 2^15 | 32,768 |
| 16 | 2^16 | 65,536 |
| 31 | 2^31 | 2,147,483,648 |
| 32 | 2^32 | 4,294,967,296 |
| 63 | 2^63 | 9,223,372,036,854,775,808 |
Examples
Input
101101
Result
45
1×32 + 0×16 + 1×8 + 1×4 + 0×2 + 1×1 = 45.
Input
101.101
Result
5.625
The bits after the point are worth 0.5, 0.25 and 0.125.
Input
11111111 (Signed on)
Result
-1
Unsigned it is 255; in two's complement 255 − 2⁸ = −1.
Common mistakes
- Dropping leading zeros of signed values. Two's complement depends on the width. 1111 read as 4 bits is −1, but as 8 bits (00001111) it is 15. Type all the bits of the register or byte.
- Reading the bits from the wrong end. The rightmost bit is worth 1 and the values double to the left. Starting at the left gives a different, wrong number.
Works well with the Binary to Decimal Converter
- Decimal to Binary Converter: convert the result back to binary.
- Binary to Hex Converter: write long bit strings more compactly.
- Number Base Converter: see octal and any base from 2 to 36 at once.
Frequently asked questions
How do you convert binary to decimal by hand?
Write the powers of 2 under the bits, starting with 2⁰ = 1 at the right. Add the powers where the bit is 1. For 101101 that is 32 + 8 + 4 + 1 = 45.
How are binary fractions converted?
Bits after the point have negative powers: ½, ¼, ⅛ and so on. 101.101 is 4 + 1 + 0.5 + 0.125 = 5.625. Binary fractions always have an exact decimal value, so nothing is rounded.
What does signed mean here?
Signed numbers use two's complement: the leftmost bit counts as a negative power. In 8 bits, 11111111 is 255 unsigned but -1 signed. The width is the number of bits you type, so add leading zeros (01111111) when the top bit should be 0.
Is there a size limit?
No practical one. The converter uses arbitrary-precision integers, so a 128-bit or 1,000-bit value is converted exactly.
Related tools
JSON to CSV
Convert JSON arrays to CSV online with automatic column detection, nested object flattening and custom delimiters. Open the result in Excel or Sheets.
CSV to JSON
Convert CSV to a JSON array online with header detection, type inference and delimiter auto-detection. Turn spreadsheet exports into data for APIs and code.
JSON to XML
Convert JSON to well-formed XML online with a configurable root element and attribute support. Validate the input and download the XML file.
XML to JSON
Convert XML to JSON online, keeping attributes and turning repeated elements into arrays. Malformed XML is reported with its location.
JSON to YAML
Convert JSON to clean, human-readable YAML online. Turn API responses and package files into config for Kubernetes, Docker Compose or CI pipelines.
YAML to JSON
Convert YAML documents to formatted JSON online with syntax validation. Errors are reported by line, so broken indentation is quick to find and fix.