J-Kit
Português

binary to decimal

Binary to Decimal Converter

Exact binary (0b…) to decimal conversion. Ideal for embedded programming, data debugging, and learning.

How binary → decimal conversion works

  • Each position in a binary number represents a power of 2: the rightmost bit is worth 2⁰=1, the next 2¹=2, then 2²=4, and so on.
  • To convert 1011₂ to decimal: 1×8 + 0×4 + 1×2 + 1×1 = 11₁₀. The tool uses BigInt to support any number of bits.

Examples

Max byte

Input
11111111₂
Expected output
255₁₀

Maximum value of an unsigned byte.

IPv4 segment

Input
11000000₂
Expected output
192₁₀

First octet of 192.168.x.x.

Full tool FAQ

Converting a number between bases means representing the same value using a different set of digits. A decimal (base 10) number can be expressed exactly in binary (base 2), hexadecimal (base 16), or any other base.

Frequently asked questions

Do negative numbers work?

Yes. Prefix the binary number with a minus sign.

What is the bit limit?

Up to 256 digits in the source base — enough for astronomically large numbers.