Hex to Binary
Cross-convert Hexadecimal into binary streams
What is Hex to Binary?
Hexadecimal is the shorthand that binary wears in public. The Hex to Binary converter expands compact hex like "4A F3" back into full bit patterns — "01001010 11110011". Every hex digit unfolds into exactly four bits, so the result is a faithful, bit-for-bit reconstruction of the original binary.
You need this direction when a tool hands you hex but your task demands bits: configuring hardware registers from a datasheet, setting individual flag bits in a protocol header, or studying for a networking exam where subnetting is taught in binary. Typing out sixteen bits per byte by hand invites mistakes; the converter eliminates that risk.
How to use
- Paste or type the hexadecimal string. Uppercase and lowercase both work, and a 0x prefix is stripped automatically — "0x4A", "4a", and "4A" all mean the same thing.
- Spaces between bytes are optional. "4AF3" converts identically to "4A F3", so hex copied from dumps, code, or documentation needs no reformatting.
- Click convert. Each hex digit expands to its four-bit group, and groups are spaced for readability in the output.
- Copy the binary string for your register map, worksheet, or protocol diagram.
Common use cases
- Register configuration: Microcontroller datasheets list control registers in hex. Expand them to binary to see exactly which bit enables which peripheral feature.
- Subnet practice: Networking students convert hex masks to binary to visualize network versus host portions bit by bit.
- Flag manipulation: Protocol headers pack multiple boolean flags into single bytes documented in hex — binary view reveals each flag's position.
- Exam preparation: Certification tests love hex-to-binary drills. Generate practice values and check answers instantly.
Example
Input: 4A F3 Output: 01001010 11110011
FAQs
Are leading zeros preserved?
Yes, and that matters. The hex digit "1" becomes "0001", not "1", because dropping leading zeros would shift every bit position that follows. Bit positions are the whole point of binary view, so the converter keeps all four bits of every digit.
What about odd-length hex strings?
A single trailing or leading nibble is still converted — "ABC" becomes "1010 1011 1100" (twelve bits). If you expected whole bytes, pad the input with a leading zero yourself ("0ABC") to get sixteen bits.
Can I go back from binary to hex?
Yes, with the Binary to Hex tool. The round trip is exact: hex → binary → hex returns your original string, because each hex digit and each four-bit group map to each other uniquely.
Is the 0x prefix required?
No. It is accepted and ignored when present, but plain hex without any prefix converts just as well. The same applies to common variants like "0X" or "h" suffixes, which are stripped before conversion.