Skip to content
Calculator Tools
Developer Tools

Binary Converter

Convert binary to decimal, hexadecimal and octal, and back again, with bit information.

Enter values

Results update as you type.

Result

Binary

11010110

Decimal
214
Hexadecimal
D6
Octal
326
Bits required
8
Bytes required
1
Padded to 8 bits
11010110
Fits in
A byte (uint8)

About the Binary Converter

Binary is base 2: every digit is a power of two. Converting to decimal, hex or octal is a matter of regrouping those bits — four bits make one hex digit, three make one octal digit. This converter handles arbitrarily large integers and shows the bit length and two’s-complement form.

Also known as: binary to decimal, decimal to binary, binary calculator, bin to hex, base 2 converter.

How to use this calculator

  1. Enter value, input base.
  2. The result updates instantly as you type — press Calculate (or Enter) at any time.
  3. Review the breakdown shown under the main result.
  4. Use Copy result or Share to save the answer or send a link with your inputs.

Formula

Each binary digit is a power of 2, read from right to left

Worked example

Using the values pre-filled in the calculator above:

  • Value: 11010110
  • Input base: Binary (base 2)

the calculator returns:

  • Binary: 11010110
  • Decimal: 214
  • Hexadecimal: D6
  • Octal: 326

Frequently asked questions

How do I convert binary to decimal by hand?

Add the place values where there is a 1: 1011 = 8 + 0 + 2 + 1 = 11.