Hex to Binary Converter
Convert hexadecimal to binary online with 4-bit or 8-bit grouping and zero-padding to 8, 16, 32 or 64 bits. Handles 0x prefixes and long values. No upload.
Binary value
0001 1010 0011 1111
What is the Hex to Binary Converter?
The ByteTools Hex to Binary Converter turns any hexadecimal value into its binary representation. Each hex digit maps to exactly four bits, so the conversion is a direct digit-by-digit expansion — no rounding, no size limit — and it works for anything from a single byte to a long hash or memory dump.
- Exact per-digit conversion — each hex digit becomes 4 bits
- No length limit: works on hashes, dumps and long values
- 4-bit or 8-bit output grouping for readability
- Zero-padding to 8, 16, 32 or 64-bit widths
- Accepts 0x prefixes, spaces and underscores in the input
- 100% client-side and instant
How to use the Hex to Binary Converter
- 1
Paste or type your hexadecimal value — a 0x prefix is fine.
- 2
Choose how to group the output bits: none, nibbles (4) or bytes (8).
- 3
Optionally pick a fixed bit width to zero-pad the result.
- 4
Read the binary output and the bit count instantly.
- 5
Copy the result with one click.
About the Hex to Binary Converter
The ByteTools Hex to Binary Converter turns any hexadecimal value into its binary representation. Each hex digit maps to exactly four bits, so the conversion is a direct digit-by-digit expansion — no rounding, no size limit — and it works for anything from a single byte to a long hash or memory dump.
The output is formatted the way you need it: group the bits into 4-bit nibbles or 8-bit bytes for readability, and optionally zero-pad the value to a fixed 8, 16, 32 or 64-bit width, which is handy when you are lining values up against registers, flags or protocol fields. A 0x prefix, spaces and underscores in the input are handled automatically.
The conversion runs 100% locally in your browser. Nothing is uploaded or stored, and results update live as you type.
Frequently asked questions
How do I convert hex to binary by hand?
Replace each hex digit with its 4-bit binary equivalent: A is 1010, F is 1111, 3 is 0011, and so on. For example 0x1A3F becomes 0001 1010 0011 1111. Because the mapping is one digit to four bits, no arithmetic is needed — it is a straight substitution.
Why is hexadecimal used as shorthand for binary?
One hex digit represents exactly four binary bits, so any binary value can be written in a quarter of the characters with no loss of information. That is why memory addresses, color codes and hashes are written in hex — it is binary in a compact, human-readable form.
What does zero-padding to a bit width do?
It adds leading zeros until the value is exactly 8, 16, 32 or 64 bits long. That matters when you are comparing values against fixed-size registers, bitmasks or protocol fields, where 0xFF and 0x00FF mean the same number but occupy different widths.
Can I convert very long hex strings like SHA-256 hashes?
Yes. The converter expands digit by digit rather than doing arithmetic on one big number, so there is no upper limit — a 64-digit SHA-256 hash simply becomes 256 bits of binary output.
Is anything I enter sent to a server?
No. The conversion is done entirely in your browser with JavaScript. Your input is never uploaded, logged or stored anywhere.
Related tools
Binary to Hex Converter
Convert binary to hexadecimal online. Separators are ignored, bits are padded to whole nibbles, with uppercase and 0x prefix options. Fast, free and private.
Hex to Decimal
Convert hexadecimal to decimal online. Accepts an optional 0x prefix and handles arbitrarily large values with BigInt — free, instant and 100% in-browser.
Decimal to Binary
Convert decimal to binary online with optional nibble grouping for readability. Handles very large numbers exactly with BigInt. Free, instant and private.
Binary to Text Converter
Convert binary code back to readable text online. Decodes space-separated or continuous 8-bit binary as UTF-8, so accents and emoji survive. Free and private.
Bitwise Calculator
Calculate AND, OR, XOR, NOT and bit shifts on 32-bit values online. Enter operands in any base and see results in decimal, hex, octal and binary at once.