Free Hex to Binary Converter

Paste hex numbers, press Convert to Binary and get exact 8-bit groups back. Separate numbers with a space, comma or new line. Free, no account needed.

Words Limit/Search : 100
Upto 1,000 Words Sign up free

Upload File

What Is a Hex to Binary Converter?

Quick answer: A free hex to binary converter swaps every hexadecimal digit (0 to 9, A to F) for its four-bit value. Paste a number or list into the box above, press Convert to Binary, and then pads the result to whole bytes (8-bit groups).

Developers read a register value in a memory dump, and students check homework. Try it with your own hex.

How to Convert Hex to Binary With This Tool

  1. Paste. Put values under Enter your Hex numbers with space (it reads Paste Your Hex Here... when empty), or press Upload File for a .txt file.
  2. Convert. Press Convert to Binary for one line of 8-bit groups.
  3. Take it. The Result card then offers Save as TXT and Copy to Clipboard.

The 0x prefix is optional, and uppercase and lowercase both work. Tip: paste a MAC address like 00:1A:2B:3C:4D:5E as is.

Hex to Binary Conversion Table

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

16 is 2 to the 4th power, so it is four bits per digit.

Hex to Binary Examples

Hex inputBinary outputWhat it is
3A00111010One byte
E711100111High bit of the byte set
FF573311111111 01010111 00110011A color code, see the RGB to Hex converter
DEADBEEF11011110 10101101 10111110 11101111A debug fill pattern
00:1A:2B:3C:4D:5E00000000 00011010 00101011 00111100 01001101 01011110A MAC address

Paste a row into the box to compare; each matched Python.

Odd Digits, 0x Prefixes and Separators

An odd digit count gets left padding to a whole byte. So F becomes 00001111 and ABC becomes 00001010 10111100.

Spaces, tabs, new lines, commas, colons, dashes and a \x escape separate numbers. Digits with no separator form one number, so 0123456789ABCDEF is one 16-digit value.

In our tests, 200,000 digits converted exactly in about 0.9 seconds, round trip. Parsing hex into a JavaScript Number loses precision past 2^53, and Number.prototype.toString(2) drops leading zeros.

How to Convert Hex to Binary by Hand

  1. Split. Go digit by digit: 3A becomes 3 and A.
  2. Swap. Use the hex to binary table above for each digit.
  3. Join. Put the groups together, padding on the left to a byte.

Place value is the reason: 3 is 0011 and A is 1010, so 00111010. In Python, format(0x3A, '08b') restores the zeros; int() parses it. The hex to binary conversion table and long guide covers positional notation. Or check your work in the box above.

What the Converter Does Not Do, and What the Errors Mean

It returns binary only: no decimal, text or two's complement. A bad entry is refused whole and your text stays, with a message such as "ZZ" is not valid hex.

Guests get 100 numbers and signed in visitors 1,000 numbers, counted as words, within 200,000 characters.

Related Number Converters

Pick by input, from base 16 to base 2.

Last updated

Frequently Asked Questions

Frequently Asked Questions (FAQs) is a list of common questions and answers provided to quickly address common concerns or inquiries.

How do I convert hex with an odd number of digits, like ABC?

Paste it as it is. The tool pads an odd digit count on the left to a whole byte, so ABC becomes 00001010 10111100 and F becomes 00001111. That matches how a hex dump writes bytes, two hex digits each.

Can I paste a MAC address or a list of bytes with colons or commas?

Yes. Spaces, tabs, new lines, commas, semicolons, colons and dashes all separate numbers, and each token converts on its own. The address 00:1A:2B:3C:4D:5E gives six 8-bit groups in order, and a backslash x escape works too.

Why does F come out as 00001111 and not 1111?

The tool shows whole bytes, so a single digit is padded to eight bits. The values 1111 and 00001111 are identical, so strip the leading zeros if you only want a nibble. The four-bit pattern of every digit is in the table above.

How many hex digits can I convert at once?

Up to 200,000 characters per conversion, and in our tests the output stayed exact at that size. The list limit is 100 space-separated entries as a guest and 1,000 with a free account. A .txt upload is limited to about 200 KB.

Does this tool also give the decimal value?

No, it only returns binary. For decimal, take the bits it gives you to Binary to Decimal, or start from the decimal side with Decimal to Hex. The table above also lists the decimal value of each single hex digit.

What happens if my hex has a typo?

Nothing is converted. The whole input is refused, the message quotes the bad token, and your text stays in the box. Common causes are a # prefix, an h suffix, a dot, a slash, or a letter past F such as G.
Share on Social Media: