HEX to Binary Converter

Translate one exact integer representation from base 16 to base 2.

Open Binary to HEX
Working rulereplace each HEX digit with its four-bit binary value

HEX accepts 0-9 and A-F; an optional 0x prefix is allowed.

RegistersColor bytesMasksEncoded flags

Check: A HEX digit such as 2 expands to 0010 when fixed four-bit grouping is important. Negative integers are supported; spaces and decimal points are rejected.

Expand HEX Digits Into Individual Bits

HEX-to-binary conversion exposes the individual bits behind register values, color bytes, masks, and encoded flags. Each HEX digit maps directly to a four-bit group, so the conversion can be checked one digit at a time. Keeping all four bits per digit is useful when field width and leading zeroes matter.

Hexadecimal integer As An Exact Integer

Exact positional-integer conversion with BigInt; no numeric rounding.

Signed whole-number grammar with optional matching 0b, 0o, or 0x prefix; output is normalized and hexadecimal is uppercase.

What The Binary integer Output Preserves

Leading zeroes and fixed width are notation choices and are not preserved by normalized output.

Representation Example

2A base 16 produces 101010 base 2 under the declared profile. The calculator carries the value through the operation before formatting the displayed result.

Learn More About This Topic

Use the number-system guide when a compact HEX value needs bit grouping, prefix, or fixed-width interpretation. For more context, read how number systems and text values differ before using the result in a real workflow.

Frequently Asked Questions

Leading zeroes and fixed width are notation choices and are not preserved by normalized output.

No. The numeric base tools use exact BigInt arithmetic after full-string validation. Output is normalized, so leading zeroes and fixed width are not preserved automatically.

Related Converter Tools

More converters in Number Systems Converter: