Math & Number Utilities100% Client-Side

Convert Binary to Decimal

Paste a binary whole number to read its base-10 value. The tool evaluates the bit string using powers of two, then prints the exact integer in ordinary decimal notation. This lets you check a bit representation against a reference value without copying a rounded result. You can enter a minus sign for a negative magnitude or include a familiar binary prefix on the source.

Input
6 chars•1 lines
Output

Reverse tool

Decimal to Binary Converter

Convert a signed decimal integer to binary. Get the exact bit string for a whole number without decimal fractions or a fixed-width encoding assumption.

Open Decimal to Binary Converter
Example input
42
Example output
101010

How to Use the Binary to Decimal Converter Online

  1. 1Paste one whole number written in base 2. Check that its digits belong to that base.
  2. 2Use 0 and 1 for the source magnitude and keep the optional 0b prefix if it is part of the notation you copied.
  3. 3Read the equivalent decimal digits and check any minus sign before copying the result into a fixture.
  4. 4Record both bases with the example. Add any field width, prefix, or spacing separately when the destination requires a particular display.

Input & Output Examples

The result represents the same integer, 42 in base ten, written in base 10.

Input Sample
101010
Expected Output
42

The set high bit has magnitude 32 and the explicit minus sign is kept.

Input Sample
-0b100_000
Expected Output
-32

Practical Developer Workflows

  • Read the decimal value of a field shown as bits in a test.
  • Check a classroom example by adding the binary place values by hand.
  • Compare the exact base-10 spelling of a value larger than an ordinary integer display can represent.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

It represents one. Each position to its left doubles the place value. In 101010 the set positions have values 32, 8, and 2, which add to 42 in decimal.

Explore Other Tools

12 suggested tools

View all tools