Hexadecimal To Binary
How This Converter Works
Converts case-insensitive unsigned hexadecimal input to an unpadded binary string; whitespace and underscores are ignored.
Formula or rule
Map each validated hexadecimal character to its four-bit nibble, concatenate the nibbles, strip leading zeroes, and use 0 if no bits remain.
Example
- Input
- 2F
- Calculation
- 2 → 0010 and F → 1111; concatenation 00101111 with leading zeroes removed.
- Result
- 101111