Developer Tools
Hex to Binary Converter
Convert exact non-negative hexadecimal integers to canonical binary without Number precision loss.

Enter the values and review the result.
Use 0-9 and A-F without a prefix, up to 4,096 digits.
Calculation assumptions
- *Hexadecimal input accepts 0-9 and A-F in either case and represents a non-negative whole integer.
- *Leading zeros and surrounding whitespace are accepted; prefixes, internal whitespace, signs, fractions, and separators are rejected.
- *The 4,096-digit input limit is a browser-safety boundary, not a mathematical limit.
- *The binary and decimal outputs are exact, canonical, ungrouped strings produced with BigInt-backed arithmetic.
Enter a value to convert.
Converted output will appear here.
How hexadecimal becomes binary
Hexadecimal is base 16 and binary is base 2. Each hex digit has a four-bit representation, so FF corresponds to 1111 1111 and the canonical ungrouped result is 11111111.
Substituted example: 2A in base 16 represents 2 x 16 + 10 = 42, which is 101010 in base 2.
Normalization and limitations
Uppercase and lowercase hex digits are equivalent. Inputs such as 000000FF and ff both produce the canonical binary result 11111111.
This is integer conversion, not color parsing. A leading # or 0x prefix, signed values, fractions, and incomplete strings such as FFG are rejected.
Quick answers
What this calculator answers
- Direction: Converts base-16 non-negative integers directly to base 2.
- Exactness: Keeps values above JavaScript Number safe-integer range exact.
- Bit mapping: Each hexadecimal digit corresponds to four bits, but unnecessary leading zero bits are omitted.
Transparency note
Accuracy and limitations
Calzivo tools are built for practical estimates, conversions, and checks. Some tools use standard formulas or simplified assumptions, and results can be affected by input accuracy, rounding, units, local rules, or changing official requirements.
Results depend on the values you enter and any simplified assumptions used by the tool. Verify important results before making decisions or submitting official information.
Reference check
Sources and references
These references provide background context for the topic. They do not replace official advice or documents for personal decisions.
- ECMAScript Language Specification: The BigInt Type
Ecma International / TC39
How to Use This Tool
Use these steps to enter the right inputs and interpret the result correctly.
Enter hexadecimal digits without a 0x prefix.
Read the exact canonical binary result and decimal reference.
Copy the ungrouped result for another integer conversion.
Related Tools
Continue with exact non-negative integer conversions between binary, decimal, and hexadecimal.
Binary to Hex Converter
Convert exact non-negative binary integers to uppercase hexadecimal with optional short 4-bit steps.
Hex to Decimal Converter
Convert exact non-negative hexadecimal integers to plain decimal digits without scientific notation.
Decimal to Hex Converter
Convert exact non-negative decimal integers to uppercase hexadecimal, including values beyond the safe Number range.
Binary Converter
Convert exact non-negative integers between decimal and binary using BigInt-backed arithmetic.
Frequently Asked Questions
Common questions about Hex to Binary Converter and how to read the result.
Is hexadecimal case-sensitive?
No. Uppercase A-F and lowercase a-f represent the same digits.
Why are leading binary zeros omitted?
They do not change the integer value, so the primary result uses canonical notation.
Can I include # or 0x?
No. Enter only hexadecimal digits 0-9 and A-F.
Can this convert FFFFFFFFFFFFFFFF exactly?
Yes. It returns 64 binary ones and the exact decimal reference 18446744073709551615.
Are signed or fractional values supported?
No. This page converts non-negative whole integers only.
