Skip to content
Butter Tools Logo
Butter Tools

Hex to Binary

Convert hexadecimal numbers to binary. Arbitrary precision, optional padding, grouping, and prefix / suffix indicators.

Hexadecimal to Binary Examples

Click any card to try
menu_book

How to Use Hex to Binary Converter

To convert hexadecimal to binary, enter one or more hex values into the input field (one per line). The tool accepts values with or without the '0x' prefix. Each hex value is converted to its binary equivalent, with each hex digit expanding to exactly 4 binary bits.

The output shows the binary representation alongside the original hex input and the equivalent decimal value. This is useful for programmers working with memory addresses, colour codes, network data, and assembly language where switching between hex and binary representations is common.

help

Frequently Asked Questions

How does hex to binary conversion work? expand_more

Each hexadecimal digit (0–9, A–F) represents exactly 4 bits. To convert hex to binary, replace each hex digit with its 4-bit binary equivalent. For example, hex A = 1010, so 0xAB = 10101011 in binary.

What is 0xFF in binary? expand_more

0xFF in binary is 11111111, which is 8 bits all set to 1, representing the decimal value 255. This is the maximum value for a single byte.

Why does each hex digit correspond to 4 binary bits? expand_more

Hexadecimal uses base 16, and 16 = 2⁴. This means 4 binary bits have exactly 16 possible combinations (0000 to 1111), perfectly mapping one-to-one with hex digits 0–F.

What is 0xABCDEF in binary? expand_more

0xABCDEF converts to 101010111100110111101111 in binary. Each hex digit expands to 4 bits: A=1010, B=1011, C=1100, D=1101, E=1110, F=1111.

Is the 0x prefix required in the input? expand_more

No. The tool accepts hex values both with the '0x' prefix and without it. You can enter 'FF' or '0xFF' and both produce the same result.