Binary to Decimal Converter

Convert binary numbers (0s and 1s) to decimal with our step-by-step calculator. Learn the positional value method, see detailed examples, and understand how computers store numbers.

Calculation Steps

Why Hexadecimal to Binary?

Hexadecimal to binary conversion is straightforward because of the mathematical relationship between the two bases: 16 (hexadecimal) is 2⁴ (binary to the fourth power). This means each hexadecimal digit represents exactly four binary digits (bits).

This relationship makes hexadecimal an excellent shorthand for binary. Instead of writing long strings of 0s and 1s, programmers can write compact hexadecimal numbers that are easy to convert to binary when needed. Understanding this conversion is essential for:

Step-by-Step Expansion Method

Converting hexadecimal to binary uses the expansion method. Here's exactly how it works:

  1. Write down the hexadecimal number - For example, 3E7
  2. Convert each hex digit to its 4-bit binary equivalent - Use the conversion table below
  3. Write the binary digits in order - Left to right, same order as the hex digits
  4. Remove leading zeros if desired - Though keeping them shows the full 4-bit groups

Complete example: Convert 3E7 to binary

Step 1: Hexadecimal number - 3E7

Step 2: Convert each hex digit to 4-bit binary

3 in hexadecimal = 0011 in binary

E in hexadecimal = 14 in decimal = 1110 in binary

7 in hexadecimal = 0111 in binary

Step 3: Write binary digits in order

0011 1110 0111

Step 4: Remove leading zeros (optional)

Result: 1111100111 in binary

So 3E7 in hexadecimal = 1111100111 in binary

Our converter shows you these expansion steps for any hexadecimal number you enter.

Hexadecimal to Binary Conversion Table

Since each hexadecimal digit expands to exactly 4 binary bits, you can use this table for quick conversions:

HexadecimalBinary (4-bit)Decimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Once you know this table, hexadecimal to binary conversion becomes very fast. Just expand each hex digit to its 4-bit binary equivalent!

Common Hexadecimal to Binary Conversions

Here are important hexadecimal numbers and their binary equivalents:

HexadecimalBinaryWhat It Represents
00000Zero
10001One
20010Two
30011Three
40100Four
50101Five
60110Six
70111Seven
81000Eight
91001Nine
A1010Ten
F1111Fifteen (all bits on)
1000010000Sixteen (first "carry" in hex)
FF11111111255 in decimal, maximum 8-bit value
100000100000000256 in decimal (16²)
FFF1111111111114095 in decimal, maximum 12-bit value
FFFF111111111111111165535 in decimal, maximum 16-bit value

Hexadecimal in Memory Addressing

One of the most important uses of hexadecimal in computing is for memory addresses. Computer memory is organized as a sequence of bytes, each with a unique address. These addresses are typically shown in hexadecimal because:

Memory addresses in hexadecimal

Typical 32-bit memory address range: 0x00000000 to 0xFFFFFFFF

Common addresses:

0x00000000 - Start of memory

0x00400000 - Typical program start address

0x7FFFFFFF - High end of user space (on some systems)

0xFFFFFFFF - Maximum 32-bit address

When debugging or working with low-level code, you'll often see memory addresses in hexadecimal format.

Hexadecimal in Bit Masks and Flags

Programmers use hexadecimal for bit masks and flags because each hex digit corresponds to 4 bits, making it easy to see which bits are set:

Bit masks in hexadecimal

0x01 = 00000001 (bit 0 set)

0x02 = 00000010 (bit 1 set)

0x04 = 00000100 (bit 2 set)

0x08 = 00001000 (bit 3 set)

0x10 = 00010000 (bit 4 set)

0x20 = 00100000 (bit 5 set)

0x40 = 01000000 (bit 6 set)

0x80 = 10000000 (bit 7 set)

0xFF = 11111111 (all 8 bits set)

Combining masks:

Combining bit masks

0x03 = 0x01 | 0x02 = 00000011 (bits 0 and 1 set)

0x0F = 0x01 | 0x02 | 0x04 | 0x08 = 00001111 (lowest 4 bits set)

0xF0 = 0x10 | 0x20 | 0x40 | 0x80 = 11110000 (highest 4 bits set)

Understanding hexadecimal makes working with bit masks much easier!