Hexadecimal to Binary

Convert a hexadecimal number to its binary (base-2) value.

About the Hexadecimal to Binary converter

This tool expands a hexadecimal number into binary. Because hex is base-16, each hex digit maps to exactly four binary digits, so FF becomes 1111 1111, written as 11111111. It is a quick way to unpack a compact hex value, such as a colour code or a byte from a hex dump, into the underlying bit pattern.

How to use it

  • Enter a hexadecimal number using 0-9 and A-F.
  • The binary equivalent appears immediately.
  • Copy the bits for a circuit, bit mask, or analysis.

A common use is examining exactly which bits are set in a byte written as two hex digits. The converter accepts upper or lower case letters, treats the input as an unsigned whole number, and handles long values exactly, so large numbers convert without rounding. A leading 0x prefix is not part of the number itself. Everything runs in your browser, so the values you enter are never uploaded.

Frequently asked questions

How many binary digits does one hex digit produce?

Each hexadecimal digit expands to exactly four binary digits, because hex is base-16 and 16 equals 2 to the fourth power.

Is the hex input case-sensitive?

No. The letters A-F can be entered in upper or lower case, so ff and FF convert to the same binary value.

Should I include a 0x prefix?

The 0x prefix is just a notation marker, not part of the number. Enter only the hex digits, although a leading prefix is commonly ignored.

Is my input sent to a server?

No. The conversion runs in your browser, so the values you enter stay on your device.

Related tools