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
Up to 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 one number or a list into the box above and press Convert to Binary. Each number comes back as 8-bit groups, padded on the left to whole bytes.

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). Despite that label, spaces are optional: commas, colons, dashes and new lines separate numbers too. You can also press Upload File to load 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. Every output in this table was checked against Python's integer formatting, with the bits grouped in eights.

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, semicolons, colons, dashes and a \x escape separate numbers. Digits with no separator form one number, so 0123456789ABCDEF is one 16-digit value. Hex copied from a PDF or a web page can carry non-breaking or zero-width spaces, and the tool reads them as ordinary spaces, so your numbers still split where those characters sit. A byte order mark at the start of a saved file is ignored.

In our tests, a single value of 200,000 hex digits converted in under a second, and its 800,000 bits matched Python's integer formatting bit for bit. 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, in whole bytes: no decimal, text, two's complement or 4-bit grouping. A leading minus sign is read as a separator and dropped, so -1A gives 00011010, the same as 1A. A bad entry is refused whole and your text stays, with a message such as "ZZ" is not valid hex.

Guests can convert up to 100 words at a time and signed in visitors up to 1,000, within 200,000 characters. A word is anything between spaces, tabs or line breaks, so numbers joined by commas with no space between them count as one word.

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 counts words, meaning anything between spaces, tabs or line breaks: 100 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. A minus sign is not an error: it counts as a separator, so -1A converts as 1A.
Share on Social Media: