Binary to Decimal

Convert binary to decimal.

A string of 0s and 1s is exactly how a computer stores a number internally, but it's essentially meaningless to read at a glance. This tool converts binary back into the decimal numbers people actually think in.

Positional value, just with a different base

Decimal numbers work by positional value — in "present," each digit's position represents a power of 10 (the "1" in 100 means one hundred, not one). Binary works identically, just with powers of 2 instead of 10: the rightmost digit represents 2^0 (1), the next represents 2^1 (2), then 2^2 (4), 2^3 (8), and so on. This positional system, applied to base-2, is precisely what Gottfried Wilhelm Leibniz formalized in a 1703 paper — centuries before electronic computers existed — though Leibniz was motivated by philosophical and even theological interest in binary's simplicity rather than any practical computing application, which wouldn't emerge for another 200-plus years.

How the conversion works

The tool multiplies each binary digit by its corresponding power of 2 based on its position, then sums the results — for example, the binary number 1101 converts as (1×8) + (1×4) + (0×2) + (1×1) = 13 in decimal.

Where converting binary to decimal is useful

  • Reading hardware documentation and datasheets — register values, memory addresses and status flags in technical hardware documentation are frequently given in binary and need converting to decimal for practical understanding.
  • Debugging low-level code — inspecting the raw binary value of a variable or memory location during debugging often requires converting it to a more intuitive decimal number.
  • Computer science coursework — a foundational skill for understanding how numbers, and by extension all data, are represented at the hardware level.
  • Networking and subnetting — calculating IP address ranges and subnet boundaries requires converting binary subnet masks back into their decimal dotted notation.

Frequently asked questions

What's the largest number an 8-bit binary value can represent? 255 (all eight bits set to 1), since 8 bits can represent 2^8 = 256 distinct values, ranging from 0 to 255 — a limit that's the direct reason many early computing constraints (like the classic "256 colors" of early graphics) exist.

Did anyone use binary before computers existed? Yes — beyond Leibniz's 1703 mathematical formalization, some ancient number systems (including aspects of the ancient Chinese I Ching's hexagrams) show binary-like structures, though the direct line to modern computing runs specifically through Leibniz and, later, Boole and Shannon.

Why do computer scientists often use hexadecimal instead of binary for readability? Because hexadecimal (base-16) maps cleanly onto binary — exactly 4 binary digits per hex digit — making it a much more compact, human-readable shorthand for binary data than either raw binary or awkward decimal conversions.

Further reading