Short answer: write the powers of 2 (1, 2, 4, 8, 16, …) under the binary digits from right to left, then add up the powers that sit under a 1. For example, 101101 is 32 + 8 + 4 + 1 = 45. You can do it by hand with the two methods below, or check your answer with our free binary to decimal converter, which shows the same breakdown bit by bit.
"Binary to denary" means exactly the same thing: denary is the term UK schools use for decimal, base 10.
Binary place values
In decimal, each place is worth ten times the one to its right (1, 10, 100…). In binary, each place is worth two times the one to its right. These are the values for one byte (8 bits):
| Bit position | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Power of 2 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 |
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Bit 0, on the right, is the least significant bit. Each extra bit doubles the range: 8 bits hold 0 to 255, 16 bits hold 0 to 65,535.
Method 1: add up the place values
Convert 101101 to decimal:
- Write the place values above the digits, starting with 1 on the right: 32, 16, 8, 4, 2, 1.
- Line them up: 1→32, 0→16, 1→8, 1→4, 0→2, 1→1.
- Keep the values under a 1: 32, 8, 4, 1.
- Add them: 32 + 8 + 4 + 1 = 45.
A full byte works the same way. 11010110 = 128 + 64 + 16 + 4 + 2 = 214.
| Binary digit | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Place value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| Counts? | 128 | 64 | – | 16 | – | 4 | 2 | – |
The binary converter lays out this exact table for any number you type: each bit, its power of 2, its weight and what it adds to the total.
Method 2: the doubling method
This one needs no table and works well in your head. Start at 0. Going left to right, double your running total and add the next digit.
| Digit | Double, then add the digit | Running total |
|---|---|---|
| 1 | 0 × 2 + 1 | 1 |
| 0 | 1 × 2 + 0 | 2 |
| 1 | 2 × 2 + 1 | 5 |
| 1 | 5 × 2 + 1 | 11 |
| 0 | 11 × 2 + 0 | 22 |
| 1 | 22 × 2 + 1 | 45 |
The doubling method is faster for long numbers because you never need to know which power of 2 the leftmost digit stands for.
Binary to decimal chart (0 to 15)
Four bits cover 0 to 15, which is also one hexadecimal digit. Knowing this chart by heart makes longer numbers easy: split them into groups of four from the right.
| Decimal | Binary | Hex |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 2 | 0010 | 2 |
| 3 | 0011 | 3 |
| 4 | 0100 | 4 |
| 5 | 0101 | 5 |
| 6 | 0110 | 6 |
| 7 | 0111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| 10 | 1010 | A |
| 11 | 1011 | B |
| 12 | 1100 | C |
| 13 | 1101 | D |
| 14 | 1110 | E |
| 15 | 1111 | F |
Numbers worth remembering beyond 15: 10000 = 16, 100000 = 32, 1000000 = 64, 01111111 = 127, 10000000 = 128 and 11111111 = 255.
Negative numbers: two's complement
Computers usually store signed whole numbers in two's complement. You must know the bit width first, because the leftmost bit is the sign: 0 means positive, 1 means negative.
Shortcut for an 8-bit number: convert it as usual, and if the leftmost bit is 1, subtract 256 (that is, 28).
- 11111011 → 251 as unsigned → 251 − 256 = −5
- 10000000 → 128 → 128 − 256 = −128 (the smallest 8-bit value)
- 01111111 → 127, leftmost bit 0, so it stays 127 (the largest)
The classroom method gives the same answer: if the sign bit is 1, flip every bit and add 1, then put a minus sign in front. 11111011 → 00000100 → 00000101 = 5, so the value is −5.
For 16, 32 or 64 bits, subtract 216, 232 or 264 instead. Our binary to decimal calculator takes unsigned input only, but it shows the signed two's complement reading at each bit width, so typing 11111011 shows −5 for 8-bit and 251 for 16-bit.
Binary fractions to decimal
Digits after the binary point are worth halves, quarters, eighths and so on: 2−1 = 0.5, 2−2 = 0.25, 2−3 = 0.125, 2−4 = 0.0625.
Example: 1010.11
- Whole part: 1010 = 8 + 2 = 10
- Fraction part: .11 = 0.5 + 0.25 = 0.75
- Total: 10.75
Another: 0.101 = 0.5 + 0.125 = 0.625. Fractions are worked by hand here; the tool handles whole numbers only.
Some simple decimals, such as 0.1, have no exact binary form: 0.1 in binary repeats forever (0.000110011…). That is why 0.1 + 0.2 is 0.30000000000000004 in JavaScript.
Decimal back to binary
Divide by 2 repeatedly, write down each remainder, and read the remainders from bottom to top.
| Division | Quotient | Remainder |
|---|---|---|
| 45 ÷ 2 | 22 | 1 |
| 22 ÷ 2 | 11 | 0 |
| 11 ÷ 2 | 5 | 1 |
| 5 ÷ 2 | 2 | 1 |
| 2 ÷ 2 | 1 | 0 |
| 1 ÷ 2 | 0 | 1 |
Reading upward gives 101101, which is 45 again. For a fraction, multiply by 2 instead and take the whole-number parts from top to bottom: 0.75 × 2 = 1.5 (1), 0.5 × 2 = 1.0 (1), so 0.75 = 0.11 in binary.
Converting in code
// JavaScript
parseInt("101101", 2); // 45
Number("0b101101"); // 45
(45).toString(2); // "101101"
# Python
int("101101", 2) # 45
bin(45) # '0b101101'Bytes also show up in text encodings: Base64 packs every 3 bytes (24 bits) into 4 characters of 6 bits each, which is why Base64 output is about a third longer than the input.
Check your work
To check homework or debug a bit mask, type the binary number into the free binary to decimal converter. It updates decimal, hex and octal as you type, lets you click individual bits on an 8 to 64-bit board, and lists the place-value sum so you can compare it with your own working. It runs in your browser.
FAQ
What is the easiest way to convert binary to decimal?
For short numbers, add the place values under each 1. For long numbers, the doubling method (double the total, add the next digit) is quicker and less error-prone.
Is binary to denary the same as binary to decimal?
Yes. Denary is another name for the base-10 number system, used mostly in UK schools and exam boards.
What is 1010.11 in decimal?
10.75. The whole part 1010 is 8 + 2 = 10, and the fraction .11 is 0.5 + 0.25 = 0.75.
How do I know if a binary number is negative?
Only if you know it is a signed number and its bit width. In two's complement, a leading 1 means negative: subtract 2 to the power of the width (256 for 8 bits) to get its value.
What is 11111111 in decimal?
255 as an unsigned 8-bit number, or −1 in 8-bit two's complement.
Practise with a few numbers from the chart, then use the online binary to decimal converter to confirm your answers.



