Binary to Decimal

Bits in, a decimal number out, with octal and hex too.

FREE - NO SIGN-UP - RUNS ON YOUR DEVICE

Bits stay in the tab you opened

  • 4bases at once
  • Liveno convert button
  • 0data uploaded
  • Freeno sign-up
In practice

What you can count on

  • 4readings
    • Binary, octal, decimal and hexadecimal
    • All shown from one entry
  • 0uploads
    • The number is parsed in your browser
    • Nothing is posted anywhere
  • Liveupdate
    • Add a bit and all four move
    • No button to press
Specification

Binary to Decimal at a glance

Input base
Binary, set before you type
Accepted values
Whole numbers, zero or above
Output
All four bases at once
Reverse
Change the base to reverse it
Processing
Runs locally in your browser
Bases and size
Base 2/8/10/16, any length
Price
Free
Account required
No
How to

How to use Binary to Decimal

  1. 1

    Set the base to binary

    Choose binary as the input base so the digits you type are read as ones and zeros.

  2. 2

    Type the bits

    Enter a whole number of zero or more. The four readings update as each digit lands.

  3. 3

    Take the decimal

    Read the decimal line, or any of the other three, then use Copy result for the summary.

Questions

Frequently asked questions

Do I get octal and hex as well?

Yes. All four readings share one entry, so the octal and hexadecimal lines are already filled in when the decimal one is.

Can I enter a negative or a fraction?

No. The panel takes whole numbers of zero or above. A minus sign or a decimal point is outside what it reads.

Is the number sent to a server?

No. Parsing a base is arithmetic the browser can do on its own, so the value stays in the tab and is never transmitted.

How do I go from decimal back to binary?

Change the input base to decimal and type the number there. The binary line then shows the bits without any other change.

Can I paste a value that starts with 0x?

Yes. A leading 0x is stripped before the digits are read, so pasting 0xFF straight from code works without editing it first.

Background

Reading four bases at once

Pick binary as the input base and enter a whole number that is zero or above. The decimal reading appears with the octal and hexadecimal ones, all four kept in step.

  • One entry drives all four readings, so there is no separate step for octal or hexadecimal.
  • The input base tells the panel how to read your digits, so set it before typing.
  • Leading zeros in a binary entry do not change the decimal value it stands for.
  • Nothing you type is stored, so a reload gives you a clean panel.

Full specification

Specification of the Binary to Decimal tool
Input baseSet it to binary before typing, so the digits are read as bits.
Accepted valuesWhole numbers that are zero or above. Negatives and fractions are outside what this panel takes.
OutputDecimal, plus the octal and hexadecimal readings, all four moving together.
ReverseChange the input base to decimal and the same panel goes the other way.
ProcessingAll calculations run locally in the current browser tab.
Bases and sizeInput base is 2, 8, 10 or 16 — no base 32 or 36. Whole numbers of any length stay exact, past the 53-bit limit.
PriceFree
Account requiredNo
Next step

Keep going with the same files

All convert tools: Convert tools on SPOTTOOLS