Hex to Binary Converter

Base 16
Base 2

Conversion table

SourceResult

Convert Hex integers to Binary with exact arbitrary-precision arithmetic. Signed values, long integers, common source prefixes, spaces, and underscore separators are accepted, and the result updates as the input changes.

How to convert Hex to Binary

Replace every hexadecimal digit with its four-bit binary value, then remove unnecessary leading zeros from the complete result.

Hex to Binary example

2af in base 16 equals 1010101111 in base 2. The converter supports values much larger than JavaScript's ordinary safe integer range because it uses integer arithmetic rather than floating-point numbers.

Common conversions: Binary to Decimal · Decimal to Binary · Binary to Hex · Hex to Binary · Decimal to Hex · Hex to Decimal · Binary to Octal · Octal to Binary