Hex to Binary Converter

This tool converts a hexadecimal number into its binary (base-2) equivalent, expanding each hex digit into its corresponding 4-bit binary group.

Your data stays in your browser — this tool runs entirely on the client side and nothing is uploaded to a server.

How to Use the Hex to Binary Converter

  1. Type a hexadecimal number (0-9, A-F) into the input box, with or without a "0x" prefix.
  2. The binary equivalent appears instantly.
  3. Use the linked base converter to also view decimal and octal forms.

How the conversion works

Each hexadecimal digit is expanded into exactly 4 binary digits, since 16 (the base of hex) is 2 to the 4th power. For example, the hex digit "F" (decimal 15) expands to the 4-bit binary group "1111."

Where you'll use this

This conversion is common when working with color codes, memory addresses, low-level networking or protocol data, and any context where hex is used as a compact, readable stand-in for underlying binary values.

Example

Convert FF
FF
11111111

Tips

  • Convert each hex digit independently into its 4-bit binary group, then concatenate them in order.
  • Leading zeros in a binary group are significant when hex digits are combined — don't drop them mid-conversion.

Frequently Asked Questions

Does a "0x" prefix matter?

No, "0x" is just a common convention to indicate a number is hexadecimal — this tool accepts hex digits with or without that prefix.