“We noticed you may be using an ad blocker. Please consider turning it off for this site.”“We noticed you may be using an ad blocker. Please consider turning it off for this site.”
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
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.
Convert. Press Convert to Binary for one line of 8-bit groups.
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
Hex
Binary
Decimal
0
0000
0
1
0001
1
2
0010
2
3
0011
3
4
0100
4
5
0101
5
6
0110
6
7
0111
7
8
1000
8
9
1001
9
A
1010
10
B
1011
11
C
1100
12
D
1101
13
E
1110
14
F
1111
15
16 is 2 to the 4th power, so it is four bits per digit.
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
Split. Go digit by digit: 3A becomes 3 and A.
Swap. Use the hex to binary table above for each digit.
Join. Put the groups together, padding on the left to a byte.
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.
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.
We use cookies to personalize content and ads, to provide social media features and to analyze our traffic. You consent to our cookies if you continue to use our website.
Install SEO Site CheckerFree SEO tools - always in your pocket.