logo
logo

Hex to Binary Converter

Convert hexadecimal numbers to binary instantly. Step-by-step conversion. Group output in 4-bit chunks. Supports 0x prefix. 100% free.

Hex to Binary Converter

Convert hexadecimal to binary numbers

Result appears here
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
🔄 Instant conversion • Step-by-step breakdown • Supports 0x prefix

Free Hex to Binary Converter – Convert Hexadecimal to Binary Online

Convert hexadecimal numbers to binary instantly. See step-by-step conversion for each digit. Group output in 4-bit chunks. Supports 0x prefix. 100% free, browser-based.

What Is Hexadecimal to Binary Conversion?

Hexadecimal to binary conversion transforms base-16 numbers (using 0-9 and A-F) into base-2 numbers (using only 0 and 1). Each hexadecimal digit converts to exactly 4 binary digits, making this conversion straightforward and predictable.

Why Convert Hex to Binary?

  • Bit-level analysis: See individual bits in data
  • Hardware debugging: Understand register values at bit level
  • Learning: Visualize how hex values map to binary
  • Bitwise operations: Prepare values for bit manipulation

How to Use This Tool

Step 1: Enter Hexadecimal

Type your hex value (with or without 0x prefix).

Step 2: Choose Formatting

Enable/disable 4-bit grouping for readability.

Step 3: View Conversion

See the binary result and step-by-step breakdown.

Step 4: Copy Result

Click copy to use the binary output.

Conversion Method

Each hex digit maps to exactly 4 binary digits:

Example: Convert A5 to Binary

  1. Split into individual digits: A and 5
  2. Convert each to 4-bit binary:
    • A = 10 = 1010
    • 5 = 5 = 0101
  3. Combine: 10100101

Hex to Binary Reference Table

HexBinaryDecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Common Conversion Examples

HexadecimalBinaryDescription
FF11111111Maximum byte value
0000000000Zero byte
8010000000High bit set
0F00001111Low nibble set
F011110000High nibble set
AA10101010Alternating pattern
5501010101Inverse alternating
DEADBEEF11011110101011011011111011101111Debug marker

Understanding Hexadecimal

Why 16 Values?

Hex uses 16 symbols because:

  • 4 bits can represent 16 values (2⁴ = 16)
  • Perfect grouping for 8-bit bytes (2 hex digits)
  • Clean mapping to binary

Common Hex Prefixes

PrefixLanguage/Context
0xC, JavaScript, Python
0XSame as above, uppercase
#CSS color codes
$Assembly, some BASICs
&HVisual Basic

Use Cases

Programming

  • Analyzing memory addresses
  • Understanding byte values in debuggers
  • Working with bit flags

Web Development

  • Converting hex colors to understand RGB bits
  • Analyzing character codes

Networking

  • Examining packet data
  • Converting MAC addresses
  • Understanding IP header fields

Embedded Systems

  • Reading microcontroller registers
  • Debugging hardware interfaces
  • Analyzing I/O port values

4-Bit Grouping

Grouping binary output in 4-bit chunks improves readability:

Without grouping: 1101111010101101 With grouping: 1101 1110 1010 1101

The grouped format makes it easier to:

  • Verify each hex digit conversion
  • Spot patterns
  • Avoid counting errors

Input Formats Supported

  • Plain hex: FF, DEAD, 1234
  • With 0x prefix: 0xFF, 0xDEAD
  • With spaces: DE AD BE EF
  • Mixed case: DeAdBeEf

Frequently Asked Questions

Does it handle the 0x prefix?

Yes. The prefix is automatically removed before conversion.

Is there a length limit?

No practical limit. Large hex strings work fine.

Can I use lowercase letters?

Yes. Both a-f and A-F are accepted.

Is the conversion accurate?

Yes. Each hex digit always maps to exactly 4 binary digits.