Skip to main content
HexConverter

Hex to Binary Converter

Translate hexadecimal characters directly into their corresponding 4-bit binary nibbles. Inspect visual nibble breakdowns, customize bit grouping (nibbles vs. bytes), and verify against verified test vectors.

Try samples:
Binary Bit Grouping:
Binary Result (Base 2)
Swap ⇄
1010 0011
Total bits: 8•Nibbles: 2•Bytes: 1.0

Visual Nibble Breakdown Strip

Each hexadecimal digit maps directly and independently to an exact 4-bit binary nibble.

A(Dec 10)
10104 bits
3(Dec 3)
00114 bits
Runs 100% in your browser. Nothing you enter is sent over the network.

Understanding the Hex-to-Binary Nibble Mapping

Unlike converting between decimal and binary—which requires continuous division or subtraction of powers of two—hexadecimal and binary share an exact mathematical harmony. Because 16 is equal to 2⁴, each hexadecimal digit always translates into exactly 4 binary bits (known as a nibble).

To convert by hand:

  1. Write down the hexadecimal number.
  2. For each digit, look up or calculate its 4-bit binary code (0 through 15).
  3. Ensure each group has 4 digits, padding with leading zeros if needed (e.g., 2 is 0010, 5 is 0101).
  4. Join all 4-bit groups together.

For a step-by-step tutorial with practice problems, read: How to Convert Hex to Binary by Hand.

Verified Worked Examples

Example 1: Hex A3 to Binary

Input:0xA3
→
Result:1010 0011

Two 4-bit nibbles.

A (10) = 1010
3 (3) = 0011
Combined: 1010 0011

Example 2: Hex 1A2B to Binary

Input:0x1A2B
→
Result:0001 1010 0010 1011

16-bit word conversion.

1 = 0001
A = 1010
2 = 0010
B = 1011
Combined: 0001 1010 0010 1011

Example 3: Hex FF to Binary

Input:0xFF
→
Result:1111 1111

Full byte of ones (255).

F = 1111
F = 1111
Combined: 1111 1111

Example 4: Hex 3E8 to Binary (1,000)

Input:0x3E8
→
Result:0011 1110 1000

Preserves leading zero in the 3 nibble.

3 = 0011
E = 1110
8 = 1000
Combined: 0011 1110 1000

Frequently Asked Questions

Direct answers to technical and practical questions regarding this tool and base-16 conversion.

How do you convert hexadecimal to binary?

Converting hex to binary is direct and requires no complex division. Replace each individual hexadecimal digit with its exact 4-bit binary equivalent (nibble), keeping leading zeros in each nibble. For example, to convert 0xA3: A becomes 1010, and 3 becomes 0011. Concatenating them gives 10100011 in binary.

Why does each hexadecimal digit represent exactly 4 binary bits?

Because hexadecimal is base 16 and binary is base 2. Since 2⁴ = 16, four binary bits can form exactly 16 unique combinations (from 0000 to 1111). Therefore, there is a perfect 1-to-1 mapping between a 4-bit nibble and a single hexadecimal character.

Do I need to keep leading zeros in the 4-bit groups?

Yes! Within any intermediate nibble, leading zeros are critical. For example, the digit "3" must be written as "0011", not just "11". Omitting leading zeros inside a byte will shift other bits out of their correct positional columns and corrupt the data.

What is the binary representation of hex 0xFF?

Hex 0xFF translates to 1111 1111 in binary. The high-order F is 1111, and the low-order F is 1111, resulting in eight consecutive ones (one full byte with a value of 255).

What is the difference between grouping by 4 and grouping by 8?

Grouping by 4 separates the binary output into nibbles corresponding directly to each hex digit. Grouping by 8 organizes the binary digits into full 8-bit bytes, which aligns with standard computer memory architecture and network packet inspection.

Related Conversion Tools & Resources

Explore companion converters, bitwise arithmetic calculators, and reference charts.

Sources & Technical References

Technical Verification & Editorial Accountability

Written by Sarah Chen (Embedded Systems Engineer) • Verified by Marcus Brody, PE

Reviewed: 2026-10-02MethodologyEditorial PolicyReport Error