Hexadecimal to Binary Converter
Hex to Binary Conversion Chart
Each hexadecimal digit corresponds to exactly four binary digits. This makes conversion between hex and binary straightforward and efficient.
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.
Conversion Examples
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)
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)
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:
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 |
|---|---|---|---|---|---|
| 00 | 00000000 | 16 | 00010110 | 2C | 00101100 |
| 01 | 00000001 | 17 | 00010111 | 2D | 00101101 |
| 02 | 00000010 | 18 | 00011000 | 2E | 00101110 |
| 03 | 00000011 | 19 | 00011001 | 2F | 00101111 |
| 04 | 00000100 | 1A | 00011010 | 30 | 00110000 |
| 05 | 00000101 | 1B | 00011011 | 31 | 00110001 |
| 06 | 00000110 | 1C | 00011100 | 32 | 00110010 |
| 07 | 00000111 | 1D | 00011101 | 33 | 00110011 |
| 08 | 00001000 | 1E | 00011110 | 34 | 00110100 |
| 09 | 00001001 | 1F | 00011111 | 35 | 00110101 |
| 0A | 00001010 | 20 | 00100000 | 36 | 00110110 |
| 0B | 00001011 | 21 | 00100001 | 37 | 00110111 |
| 0C | 00001100 | 22 | 00100010 | 38 | 00111000 |
| 0D | 00001101 | 23 | 00100011 | 39 | 00111001 |
| 0E | 00001110 | 24 | 00100100 | 3A | 00111010 |
| 0F | 00001111 | 25 | 00100101 | 3B | 00111011 |
| 10 | 00010000 | 26 | 00100110 | 3C | 00111100 |
| 11 | 00010001 | 27 | 00100111 | 3D | 00111101 |
| 12 | 00010010 | 28 | 00101000 | 3E | 00111110 |
| 13 | 00010011 | 29 | 00101001 | 3F | 00111111 |
| 14 | 00010100 | 2A | 00101010 | ||
| 15 | 00010101 | 2B | 00101011 |
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’.
