Hex to Binary Converter
Enter a hexadecimal number to get its binary, decimal, and octal equivalents, along with the 4-bit mapping behind the result.
What is Hex to Binary Conversion?
Hexadecimal to binary conversion turns a base-16 number (using the digits 0-9 and letters A-F) into its base-2 equivalent. It's one of the simplest number-base conversions because hexadecimal was designed around binary: every hex digit maps to exactly four binary bits, so no long division is needed.
For example, hex AC equals binary 10101100. Enter any hexadecimal number above to convert it and see the digit-by-digit breakdown. Want to learn how to convert hexadecimal to binary manually? See how to convert hex to binary for the full 4-bit mapping method, table, and worked examples. For arithmetic on the resulting binary value, see the Binary Calculator. For the relationship between the two number systems, see binary vs hexadecimal.
The 4-Bit Mapping
Hexadecimal is base 16, and 16 is 2⁴ — so each of the 16 possible hex digit values (0-15) maps to a unique 4-bit binary pattern (0000-1111). To convert, replace every hex digit with its 4-bit binary equivalent and concatenate the results in order. Leading zeros in the very first group of the final result can be dropped without changing the value.
Worked example: convert AC to binary
A → 1010 C → 1100 AC₁₆ = 1010 1100 = 10101100₂
Hex ↔ binary reference table
| Hex | Binary (4 bits) | Decimal |
|---|---|---|
| 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 |
| A | 1010 | 10 |
| B | 1011 | 11 |
| C | 1100 | 12 |
| D | 1101 | 13 |
| E | 1110 | 14 |
| F | 1111 | 15 |
For the reverse operation, use the Binary to Hex Converter, or regroup that binary result into 3-bit chunks with the Binary to Octal Converter.
Common Hex to Binary Conversions
A quick reference for frequently seen hexadecimal numbers and their binary and decimal equivalents:
| Hex | Binary | Decimal |
|---|---|---|
| 0 | 0 | 0 |
| 1 | 1 | 1 |
| A | 1010 | 10 |
| F | 1111 | 15 |
| 10 | 10000 | 16 |
| 2A | 101010 | 42 |
| FF | 11111111 | 255 |
| 100 | 100000000 | 256 |
| AC | 10101100 | 172 |
| FFF | 111111111111 | 4095 |
Where Hex to Binary Conversion Is Used
Converting hex to binary comes up whenever a compact hex value needs to be inspected at the bit level:
- Programming and debugging: expanding hex memory dumps, register values, and stack traces into their underlying bit patterns.
- Bitmasks: checking which individual bits a hex flag or permission mask (e.g.
0xAC) actually sets or clears. - Memory addresses and data representation: reading pointers and raw byte data, which hardware and debuggers report in hex but ultimately store in binary.
- Digital systems: interpreting hardware register and signal states documented in hex back into their binary form.
- Computer science education: demonstrating how hexadecimal serves as a compact shorthand for binary.
Need decimal instead of binary? Try the Hex to Decimal Converter.
Related Converters
Binary to Hex
Convert binary numbers back to hexadecimal — the reverse of this tool.
Hex to Decimal
Convert hexadecimal numbers to decimal values.
Decimal to Hex
Convert decimal numbers to hexadecimal notation.
Binary to Decimal
Convert binary numbers to decimal for human-readable values.
Binary Calculator
Add, subtract, multiply, and divide binary numbers.
Octal to Binary
Convert octal numbers to binary — commonly used for Unix file permissions.
Frequently Asked Questions
How do I convert FF to binary?
Hex FF equals binary 11111111. Each F maps to 1111, so F followed by F gives 1111 1111 (255 in decimal).
Why does each hex digit become 4 binary bits?
Hexadecimal is base 16, and 2⁴ = 16, so a single hex digit (0-15) maps to exactly one 4-bit binary pattern (0000-1111) with no remainder — that exact fit is what makes the conversion direct substitution rather than division.
Can I enter hex values with a # or 0x prefix?
Enter just the hex digits, without prefixes. For example, enter "FF" rather than "#FF" or "0xFF".
Is hexadecimal case-sensitive?
No. FF, ff, and Ff all represent the same value. The input is normalized to uppercase automatically.
Can this converter handle very large hexadecimal numbers accurately?
Yes. Conversion uses JavaScript's BigInt arithmetic rather than parseInt() or Number, so the result stays exact even for hex values longer than the 53-bit range where regular JavaScript numbers start to lose precision.
What happens if I enter an invalid character?
The converter shows an error message and does not produce a result, since only the digits 0-9 and letters A-F are valid in a hexadecimal number.
Related Tools
You might also find these tools useful
Base Converter
Convert whole numbers between binary, octal, decimal, hex, and custom bases 2-36 in one hub.
Binary Converter
Convert text, UTF-8 bytes, and binary values without focusing only on readable messages.
Binary Calculator
Add, subtract, multiply, and divide binary numbers for math and computer science exercises.
Binary to Decimal
Turn base-2 numbers into decimal values for programming, networking, and study notes.
Binary to HEX
Compress long binary strings into hexadecimal groups for code, memory, and color checks.
Decimal to Binary
Convert everyday base-10 numbers into binary with clear fixed-width output.