Hex To Binary

Convert hexadecimal numbers to binary instantly, turning base 16 into base 2. No signup. Ideal for programmers, students and anyone working with these number systems.

Remove Ads
Words Limit/Search : 3000
Upto 30k Words Go Pro

Upload File
Remove Ads
Remove Ads

Share on Social Media:

This hex to binary converter turns hexadecimal numbers into binary. Paste your hex into the box, click Convert to Binary, and the binary result appears below — made of zeros and ones, with the same value as the hex you entered. It is free, needs no signup, and works on any device. You can convert one hex number or several at once by separating them with spaces.

On this page

  1. How to Convert Hex to Binary Step by Step
  2. What Hexadecimal and Binary Are
  3. Why Hex and Binary Work So Well Together
  4. Who Converts Hex to Binary
  5. Pro Tips for Working With Hex and Binary
  6. Common Hex to Binary Mistakes to Avoid
  7. Related Tools You May Need Next
  8. Frequently Asked Questions

How to Convert Hex to Binary Step by Step

  1. Enter your hex numbers. Type or paste them into the box labelled "Enter your Hex numbers with space". Hex uses only the digits 0–9 and the letters A–F. To convert several numbers at once, put a space between them, for example 48 69.
  2. Click "Convert to Binary". The tool sends your input and converts each hex number to binary.
  3. Read the result. The binary appears under the heading "Result". Each hex number you entered gets its own binary group, separated by a space, in the same order.
  4. Copy or save it. Click "Copy to Clipboard" to copy the result, or "Save as TXT" to download it as a hex-to-binary.txt file.
  5. Convert again if needed. Your input stays in the box, so you can edit it and click "Convert to Binary" again without retyping everything.

Worked example: 48 69 means "Hi"

In ASCII, the hex byte 48 is the letter H and 69 is the letter i. Converting them here gives:

HexBinary (as the tool shows it)Full 8-bit byte
48100100001001000
69110100101101001

So 48 69 converts to 1001000 1101001. The tool trims leading zeros, which is why each group shows 7 bits instead of the full 8 — the value is exactly the same. If you need full bytes, pad each group on the left with zeros until it is 8 bits long: 01001000 01101001.

More verified examples:

Hex you enterBinary resultDecimal value
FF11111111255
1A1101026
101000016
DEAD BEEF11011110 10101101 10111110 111011113,735,928,559

Each hex digit is worth 4 bits

By hand, you convert hex to binary one digit at a time, because 16 is 2 to the power of 4. Replace every hex digit with its 4-bit group:

Hex digit4-bit binaryHex digit4-bit binary
0000081000
1000191001
20010A1010
30011B1011
40100C1100
50101D1101
60110E1110
70111F1111

For example, 1A becomes 0001 1010 by hand — the tool shows the same value with the leading zeros trimmed, as 11010.

Hex tiles converting through a chip into binary digits

What Hexadecimal and Binary Are

Hexadecimal, or hex, is the base-16 number system. It uses sixteen digits: 0–9, then the letters A–F for the values 10–15. Binary is base 2, using only 0 and 1. Binary is the fundamental language of computers — every bit of data is a 0 or a 1 — while hex is the compact, human-friendly shorthand we use to write binary down.

That shorthand works because 16 is a power of 2. Each single hex digit stands for exactly 4 binary digits, so converting between the two is a clean digit-by-digit swap, with no division or multiplication like converting to decimal needs. A long binary string is hard to read and easy to mistype; the same value in hex is four times shorter.

One hex digit = 4 binary digits, always. Because 16 = 2⁴, every hex digit maps to exactly one group of 4 bits. That is the whole reason hex exists in computing: it is binary, written compactly.

You meet hex everywhere in computing: colour codes in web design (#FF5733), memory addresses, error codes, Unicode values, and raw data dumps. When you need to see the actual bits behind one of those values — to check a flag, a bitmask, or a single byte — you convert it to binary.

Laptop showing hex converting into binary

Why Hex and Binary Work So Well Together

AspectHexadecimalBinary
BaseBase 16Base 2
Digits0–9 and A–F0 and 1 only
Length1 digit per 4 bits — short1 digit per bit — long
ConversionEach digit swaps to 4 bitsEach 4 bits group back to 1 digit
Used forWriting binary compactlyThe machine's own language

Compare that with decimal: converting hex to decimal needs powers of 16 and addition, and converting decimal to binary needs repeated division by 2. Hex to binary needs neither — it is a direct lookup, digit by digit, which is why the conversion is exact for any valid hex number.

Who Converts Hex to Binary

Programmers A developer working with hex values — colours, flags, bitmasks, or raw data — converts them to binary to see the underlying bits.

Students learning number systems A student studying hex and binary converts between them to see how the two systems line up, one digit to four bits.

Web developers with hex colours Someone working with a hex colour code converts it to binary when they need the underlying bit values, for example to split out the red, green, and blue channels.

People working with data or memory Anyone reading hex dumps, memory addresses, or encoded data converts to binary to inspect the exact bit pattern.

Anyone checking a value by hand When a calculator or code gives you a hex number and you want to confirm what it means in bits, a converter gives you the answer in seconds.

Hex cubes feeding a machine that outputs binary cubes

Pro Tips for Working With Hex and Binary

Work in pairs of hex digits. Two hex digits make one byte (8 bits). Entering hex in pairs — 48 69, not single digits — keeps your values byte-aligned and easy to read.

Lowercase works fine. The tool accepts ff just as it accepts FF. Both give 11111111, so you can paste hex in either case.

Leave off the 0x prefix. This tool does not accept 0x1A — type 1A instead. If your hex comes from code with a 0x prefix, strip it before pasting.

Expect trimmed leading zeros. The result drops leading zeros, so 48 shows as 1001000 rather than 01001000. The value is identical — pad each group to 8 bits on the left if you need full bytes.

Separate several numbers with spaces. The input box takes more than one hex number at a time. Put a space between them and each one converts to its own binary group, in order.

Chain to other bases if needed. To get the decimal value of your binary result, use our Binary to Decimal tool. For any other base, the Base Converter handles conversions between bases.

Use the .txt upload for long lists. The page has an Upload File button that accepts a .txt file, so you can convert a whole file of hex numbers instead of pasting them.

Common Hex to Binary Mistakes to Avoid

Typing 0x in front of your hex. The 0x prefix is common in code, but this tool rejects it — 0x1A gives an "Input is not valid Hex" message. Enter the digits and letters only.

Using letters beyond F. Only A–F are valid hex letters. A G, H, or any other letter makes the whole input invalid, and the tool refuses to convert it.

Putting a space inside one number. Spaces separate numbers here. DE AD converts as two numbers; DEAD converts as one. A stray space in the middle of a value splits it into two different values.

Reading trimmed output as full bytes. Because the tool trims leading zeros, 48 shows 7 bits, not 8. If you count bits to check a byte, pad each group to 8 bits first — otherwise you will think a bit is missing.

Treating hex as decimal. The digits 0–9 look like decimal, but 10 in hex is 16, not ten, and FF is 255. Be clear which system your number is in before converting.

Related Tools You May Need Next

Once you have the binary result, you may want its decimal value — use the Binary to Decimal tool. To go the other way, the Decimal to Binary and Binary to Hex tools convert in reverse. For conversions between any bases, the Base Converter handles them all. If your starting point is text rather than hex, the Text to Binary and Binary to Text tools convert words and characters directly.

Frequently Asked Questions

How do I convert hex to binary?

Paste your hex number into the input box and click "Convert to Binary". The binary result appears under the "Result" heading. For example, FF converts to 11111111.

What is hexadecimal?

Hexadecimal, or hex, is the base-16 number system. It uses sixteen digits: 0–9, then A–F for the values 10–15. It is used in computing as a compact way to write binary, because each hex digit stands for exactly 4 bits.

Why do hex and binary work so well together?

Because 16 is 2 to the power of 4, each hex digit maps exactly to a group of 4 binary digits. Converting is a direct digit-by-digit swap, with no arithmetic — unlike converting to decimal, which needs powers and addition.

What characters are valid in a hex number?

Only the digits 0–9 and the letters A–F. Anything else — including G–Z, the 0x prefix, and punctuation — makes the input invalid, and the tool shows "Input is not valid Hex".

Does the converter accept lowercase hex?

Yes. Lowercase ff converts to 11111111, exactly the same as uppercase FF. You can paste hex in either case.

Can I convert several hex numbers at once?

Yes. Separate them with spaces — for example 48 69 converts to 1001000 1101001, one binary group per hex number, in the same order.

Why does my binary result have fewer bits than I expected?

The tool trims leading zeros, so 48 shows as 1001000 (7 bits) instead of the full byte 01001000. The value is exactly the same. Pad each group on the left with zeros to 8 bits if you need full bytes.

Can I copy or save the result?

Yes. The result screen has a "Copy to Clipboard" button and a "Save as TXT" button, which downloads the result as a hex-to-binary.txt file.

What happens if I enter invalid hex?

The tool does not convert it. It returns you to the tool page with the message "Input is not valid Hex". Check for letters beyond F, a 0x prefix, or stray characters, then try again.

Can I convert the binary result to decimal?

Yes. Paste the binary result into our Binary to Decimal tool, or convert the original hex directly with the Base Converter.