Hex to Binary Converter – Fast & Accurate Online

Hexadecimal to Binary Converter

HEX
Enter hex value above
BIN
Quick Convert

Hex to Binary Conversion Chart

Each hexadecimal digit corresponds to exactly four binary digits. This makes conversion between hex and binary straightforward and efficient.

0
0000
1
0001
2
0010
3
0011
4
0100
5
0101
6
0110
7
0111
8
1000
9
1001
A
1010
B
1011
C
1100
D
1101
E
1110
F
1111

How to Convert Hexadecimal to Binary

Converting hexadecimal numbers to binary is remarkably simple because the hexadecimal system is directly related to binary. Each hex digit represents exactly 4 binary bits, making the conversion process straightforward.

1 Write down the hexadecimal number – Identify each digit in your hex number (0-9, A-F).
2 Convert each hex digit individually – Replace each hex digit with its 4-bit binary equivalent using the conversion chart.
3 Combine the binary groups – Write all the 4-bit groups together from left to right.
4 Remove leading zeros (optional) – The leftmost zeros can be removed for a cleaner result.

Conversion Examples

Example 1: Convert 2F to binary

Step 1: Break down into digits: 2 and F
Step 2: Convert each digit:
– 2 (hex) = 0010 (binary)
– F (hex) = 1111 (binary)
Step 3: Combine: 0010 1111
Result: 2F (hex) = 101111 (binary)
Example 2: Convert A5C to binary

Step 1: Break down into digits: A, 5, and C
Step 2: Convert each digit:
– A (hex) = 1010 (binary)
– 5 (hex) = 0101 (binary)
– C (hex) = 1100 (binary)
Step 3: Combine: 1010 0101 1100
Result: A5C (hex) = 101001011100 (binary)
Example 3: Convert 1F3B to binary

Step 1: Break down into digits: 1, F, 3, and B
Step 2: Convert each digit:
– 1 (hex) = 0001 (binary)
– F (hex) = 1111 (binary)
– 3 (hex) = 0011 (binary)
– B (hex) = 1011 (binary)
Step 3: Combine: 0001 1111 0011 1011
Result: 1F3B (hex) = 1111100111011 (binary)

Popular Hex to Binary Conversions

Here are commonly used hexadecimal values and their binary equivalents, frequently encountered in programming, networking, and computer systems.

Hexadecimal Binary Common Use
00 00000000 Minimum byte value
FF 11111111 Maximum byte value
10 00010000 Decimal 16
20 00100000 Space character in ASCII
7F 01111111 Maximum signed byte
80 10000000 Minimum signed byte
A0 10100000 Common subnet mask
C0 11000000 Network addressing
FE 11111110 Almost maximum value
FFFF 1111111111111111 Maximum 16-bit value

About Hexadecimal System

The hexadecimal (hex) number system is a base-16 positional numeral system that uses sixteen distinct symbols: 0-9 to represent values zero to nine, and A-F to represent values ten to fifteen.

Why Use Hexadecimal?

Hexadecimal provides a more compact and human-readable representation of binary data. Since one hex digit represents exactly four binary bits, programmers and engineers prefer hex for:

Computer Memory Addresses: Memory locations are typically displayed in hexadecimal format because it’s more concise than binary while maintaining a direct relationship.

Color Codes: Web colors use hex notation like #FF5733, where each pair represents red, green, and blue intensity values.

Machine Code: Assembly language and machine code are often written in hexadecimal for easier reading and debugging.

File Analysis: Hex editors display file contents in hexadecimal, making it easier to analyze binary files.

About Binary System

Binary is a base-2 numeral system using only two symbols: 0 and 1. It forms the foundation of all modern computing because electronic circuits can easily represent two states (on/off, high/low voltage). Every piece of data in a computer – text, images, videos, programs – is stored and processed as binary numbers.

Extended Hex to Binary Conversion Table

Reference table showing hexadecimal values from 00 to 3F with their corresponding binary representations.

Hex Binary Hex Binary Hex Binary
0000000000 1600010110 2C00101100
0100000001 1700010111 2D00101101
0200000010 1800011000 2E00101110
0300000011 1900011001 2F00101111
0400000100 1A00011010 3000110000
0500000101 1B00011011 3100110001
0600000110 1C00011100 3200110010
0700000111 1D00011101 3300110011
0800001000 1E00011110 3400110100
0900001001 1F00011111 3500110101
0A00001010 2000100000 3600110110
0B00001011 2100100001 3700110111
0C00001100 2200100010 3800111000
0D00001101 2300100011 3900111001
0E00001110 2400100100 3A00111010
0F00001111 2500100101 3B00111011
1000010000 2600100110 3C00111100
1100010001 2700100111 3D00111101
1200010010 2800101000 3E00111110
1300010011 2900101001 3F00111111
1400010100 2A00101010
1500010101 2B00101011

Related Number System Conversions

Hexadecimal can be converted to various other number systems commonly used in computing and mathematics.

Hex to Decimal

Convert hexadecimal to the standard base-10 decimal system used in everyday mathematics. For example, hex 2F equals decimal 47.

Hex to Octal

Transform hexadecimal to octal (base-8) system. Convert hex to binary first, then group binary digits in sets of three to get octal values.

Binary to Hex

The reverse operation – converting binary back to hexadecimal. Group binary digits in sets of four from right to left, then convert each group to its hex equivalent.

Hex to ASCII

Hexadecimal values can represent ASCII characters. For instance, hex 41 represents the letter ‘A’, and hex 48 represents ‘H’.

Frequently Asked Questions

What is hexadecimal used for?
Hexadecimal is widely used in computing for representing memory addresses, color codes in web design, MAC addresses in networking, character encoding, debugging programs, and displaying binary data in a more compact, readable format.
Why does one hex digit equal four binary bits?
Since hexadecimal is base-16 and binary is base-2, and 16 = 2^4, one hex digit can represent exactly 16 different values (0-15), which is the same as four binary bits can represent (0000 to 1111). This mathematical relationship makes conversion between the two systems direct and efficient.
How do I convert large hex numbers to binary?
The process remains the same regardless of size. Convert each hex digit individually to its 4-bit binary equivalent, then concatenate all the binary groups together. For example, ABCD becomes 1010 1011 1100 1101.
What does the 0x prefix mean in hexadecimal?
The 0x prefix is a programming convention used to indicate that a number is written in hexadecimal notation. For example, 0xFF means the hexadecimal value FF. This helps distinguish hex numbers from decimal numbers in code.
Can I convert hex with decimal points to binary?
Yes, hexadecimal fractions can be converted to binary. Convert the integer part normally, then convert each fractional hex digit to 4 binary bits. Place a binary point (decimal point) at the same relative position.
Why is FF equal to 255 in decimal?
In hexadecimal, FF represents (15 × 16^1) + (15 × 16^0) = 240 + 15 = 255. This is the maximum value that can be stored in one byte (8 bits), making it significant in computer systems.
Are letters in hexadecimal case-sensitive?
No, hexadecimal letters (A-F) are not case-sensitive. Both ‘a’ and ‘A’ represent the value 10, ‘f’ and ‘F’ both represent 15. However, convention varies by context – programmers often use uppercase for clarity.
How is hexadecimal related to bytes?
One byte equals 8 bits, which is exactly two hexadecimal digits. This makes hex extremely convenient for representing byte values – any byte (00 to FF in hex) fits neatly into two hex characters, making memory dumps and file contents easier to read.