Binary to Decimal Converter

Type a binary number to see it in decimal and the other common bases, with the working shown step by step.

Decimal
11
Binary
1011
Octal
13
Hexadecimal
B
Other base (36)
B

Bits: 4

Working
positional expansion / repeated division / bit grouping
  1. 1×2³ + 0×2² + 1×2¹ + 1×2⁰
  2. = 8 + 0 + 2 + 1
  3. 1011₍2₎ = 11₍10₎

How to convert

  1. Positional expansion: multiply each digit by 2 to the power of its position (rightmost is 0) and add.
  2. Example: 1011 = 1×2³ + 0×2² + 1×2¹ + 1×2⁰ = 8 + 0 + 2 + 1 = 11.

Notes

  • Integers of any length are converted exactly — no scientific notation.
  • Prefixes are accepted: 0x for hex, 0b for binary, 0o for octal; spaces and underscores are ignored.
  • Negative numbers: prefix with "-". Fractions are not supported yet.

Binary to Decimal table

BinaryDecimalHex
000
111
1022
1133
10044
10155
11066
11177
100088
100199
101010A
101111B
110012C
110113D
111014E
111115F
1 00001610
10 00003220
100 00006440
110 010010064
111 11111277F
1000 000012880
1111 1111255FF
1 0000 0000256100
11 1110 100010003E8
100 0000 00001024400
1 0000 0000 000040961000
1111 1111 1111 111165535FFFF

Frequently Asked Questions

Related