Free tool · no sign-up

Binary Converter

Convert binary to decimal and decimal to binary, with hex and octal too. Type in any box, see the others update, and follow the working step by step.

BIN
DEC
HEX
OCT
Try:
Bits needed
6
Bytes
1
Signed (two’s complement)

0010 1010

How binary becomes decimal

Multiply each digit by 2 to the power of its place, then add them up.

  1. 1 × 2⁵32
  2. 0 × 2⁴0
  3. 1 × 2³8
  4. 0 × 2²0
  5. 1 × 2¹2
  6. 0 × 2⁰0

Total42

Building a tool for developers or students?

Launch it on BetterLaunch for free and get it in front of thousands of makers and early adopters.

Launch for free

How to use the binary converter

  1. Binary to decimal: type 0s and 1s in the Binary box. The decimal value appears below, with the working on the right.
  2. Decimal to binary: type a normal number in the Decimal box. The binary updates as you type, with the division steps.
  3. Hex and octal update at the same time. Turn on Group digits to split binary into groups of 4, which makes long numbers easier to read.

How binary works

Decimal has ten digits and each place is worth ten times the one to its right: ones, tens, hundreds. Binary has only two digits, 0 and 1, and each place is worth twice the one to its right: 1, 2, 4, 8, 16 and so on. To read a binary number, add up the places that have a 1.

So 101010 is 32 + 8 + 2 = 42. Each digit is a bit, and 8 bits make a byte, which can hold any number from 0 (00000000) to 255 (11111111).

PowerDecimalBinary
2^011
2^1210
2^24100
2^381000
2^41610000
2^532100000
2^6641000000
2^712810000000
2^8256100000000
2^95121000000000
2^101,02410000000000

Binary, decimal and hex chart

DecimalBinaryHex
111
2102
51015
810008
101010A
151111F
161000010
3210000020
64100000040
100110010064
1281000000080
25511111111FF

Want to turn words into binary instead of numbers? Use the binary translator.

More free number tools

Frequently asked questions