🛠️ Developer · Updated November 20, 2026 · 6 min read

Convert Binary to Decimal and Back, Step by Step

101101 45 🔢

To convert binary to decimal, multiply each bit by its power of 2, starting with 1 on the right and doubling as you move left, then add up the results. The binary number 101101 has ones in the 32, 8, 4 and 1 places, so it equals 45. To go from decimal back to binary, divide by 2 repeatedly and read the remainders from bottom to top: 200 becomes 11001000. This guide covers both directions, the hexadecimal shortcut and negative numbers.

🔢 Try Binary, Hex & Decimal Converter now — freeOpen →
Binary 101101 converted to decimal 45: 32-bit two's complement 0000 ... 0010 1101, hex 0000002D, and the working 32 + 8 + 4 + 1 = 45
101101 in binary is 45 in decimal: add the powers of 2 under each 1.
💡 Binary shows up more often than you think

Computer science classes, networking exams, file permissions, color codes and low-level debugging all involve reading numbers in base 2 or base 16. Doing a conversion by hand once or twice builds the intuition that makes subnet masks, bit flags and byte sizes easy to read. A converter is then useful for checking your work and for numbers too long to do on paper.

Binary to decimal: add the place values

Each position in a binary number is worth twice the one to its right. For eight bits the place values are 128, 64, 32, 16, 8, 4, 2 and 1.

The converter shows the same working under Show the working: 1×25 + 0×24 + 1×23 + 1×22 + 0×21 + 1×20 = 45. Type in the Binary box and the Decimal, Octal and Hexadecimal boxes update as you type; here they read 45, 55 and 2D.

Decimal to binary: divide by 2 and keep the remainders

To convert decimal to binary, divide by 2, write down the remainder, and repeat with the quotient until you reach 0. For 200:

Reading the remainders from the last one up gives 11001000. Check it with place values: 128 + 64 + 8 = 200. The working panel prints this table for any number up to 1,048,575, and the Group digits option spaces binary into blocks of four, 1100 1000, which are easier to read.

The hex shortcut: four bits per digit

Hexadecimal is base 16, with digits 0 to 9 and A to F for 10 to 15. Because 16 is 24, every four bits map to exactly one hex digit, so binary to hex needs no arithmetic beyond small groups.

The converter also handles octal, which groups bits in threes, and a custom base from 2 to 36. There is no 64-bit size limit, and prefixes such as 0b, 0o and 0x are accepted.

Negative numbers, two's complement and text to binary

Computers usually store negative integers in two's complement. To write −45 in 8 bits, take 45 as 00101101, invert every bit to get 11010010, then add 1: 11010011. Read as an unsigned byte that is 211, which is 256 − 45. The Two's complement menu shows 8, 16, 32 and 64-bit versions for any value that fits.

Text is binary too. In the Text to binary tab, Hi! becomes 01001000 01101001 00100001, the UTF-8 bytes 72, 105 and 33. Accented letters and emoji take two to four bytes each, and pasting bytes back in decodes them to text.

Where binary and hex show up in real work

Reading these values becomes much faster once you can picture the bits behind them. Hex is simply a compact way to write binary for humans, which is why debuggers, memory dumps and color pickers use it everywhere. Octal survives mainly in file permissions, while decimal stays the language of people. When a value looks strange, convert it to binary and the pattern usually becomes obvious, for example a mask of 240 is 11110000, four ones followed by four zeros, and 15 is 00001111, the opposite half of the byte.

File permissions are a real example, and the Chmod Calculator shows them as binary. The Color Converter turns hex colors into other formats.

Practice binary conversions you can check

A few quick drills make the method automatic. Cover the answers, work each one by hand, then type it into the converter to check.

For larger values, the Bits needed and Bytes cards tell you how much storage a number takes: 45 needs 6 bits and fits in 1 byte, while 200 needs 8 bits and still fits in 1 byte. Knowing this helps with data types in programming, where an 8-bit unsigned integer holds 0 to 255 and a signed one holds −128 to 127.

If you mistype a digit, the converter explains the error, for example that 2 is not a binary digit and only 0 and 1 are allowed, instead of silently returning a wrong answer.

Step-by-step

12345
1Open the Number bases tab and type your binary number into the Binary box.
Binary box with 101101 typed; Decimal shows 45, Octal 55, Hexadecimal 2D and Custom base 36 shows 19
Type the binary number into the Binary box; every other base fills in.
2Read the decimal value, plus the octal and hexadecimal equivalents, as you type.
3Open Show the working to see each bit multiplied by its power of 2.
Bits needed 6, Decimal 45 and Show the working: 1x2^5 + 0x2^4 + 1x2^3 + 1x2^2 + 0x2^1 + 1x2^0 = 32 + 8 + 4 + 1 = 45
Open Show the working to see each bit times its power of 2.
4To go the other way, type a decimal number and follow the divide-by-2 table.
Decimal 200 typed, giving binary 1100 1000, octal 310 and hex C8, with the divide-by-2 remainders read upward as 11001000
Going the other way, type a decimal number and read the remainders bottom to top.
5Switch to Text to binary if you need letters as bytes.
Text box with Hi! and Encoded set to Binary, showing 01001000 01101001 00100001
Switch to Text to binary to see letters as 8-bit bytes.

Common mistakes to avoid

⚠️Reading the remainders top to bottom instead of bottom to top.
⚠️Starting the place values at 2 instead of 1 on the right-hand bit.
⚠️Mixing up hex letters: A is 10 and F is 15, not 16.
⚠️Treating a two's complement byte such as 11010011 as 211 when it is meant to be signed.

Pro tips

✓Memorize the first eight place values: 1, 2, 4, 8, 16, 32, 64, 128; together they add up to 255, the maximum byte.
✓Pad binary on the left to a multiple of four bits before converting to hex.
✓An even number always ends in 0 in binary, an odd number in 1.
✓Use Copy share link to send a classmate the exact conversion.

Frequently asked questions

How do you convert binary to decimal?

Multiply each bit by its power of 2, starting with 1 on the right, and add the results. 101101 is 32 + 8 + 4 + 1 = 45. Check the answer by converting back: 45 divided by 2 repeatedly gives remainders that read 101101 from the bottom up.

How do you convert decimal to binary?

Divide by 2 repeatedly and note each remainder, then read the remainders from bottom to top. 200 gives 11001000.

What is 11111111 in decimal?

It is 255, the largest value one unsigned byte can hold: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1. In hex it is FF, and adding 1 more would need a ninth bit.

How do I convert binary to hex?

Group the bits in fours from the right and convert each group to one hex digit. 1100 1000 becomes C8.

How are negative numbers written in binary?

Usually with two's complement: invert the bits of the positive number and add 1. In 8 bits, −45 is 11010011.

📌 Bottom line

Binary to decimal is just adding place values, and decimal to binary is repeated division by 2 read from the bottom up. Learn the powers of 2 up to 128, use four-bit groups for hex, and check longer numbers with the converter's working panel.

Open Binary, Hex & Decimal Converter →

Related guides

Browse more: all text and developer guides · Binary, Hex & Decimal Converter