Skip to main content

Convert HEX to BINARY, Free

Files convert instantly in your browser. 100% private, any file size, no account needed.

100% private No signup Unlimited size No upload

How to convert HEX to BINARY

Hexadecimal and binary are both number systems used extensively in programming, digital electronics, and low-level computing. Hex (base 16) is a compact way to represent binary data: each hex digit corresponds to exactly 4 binary bits. Converting hex to binary is therefore a digit-by-digit substitution, no arithmetic required. The hex digit F is always 1111 in binary; the hex digit A is always 1010.

The conversion runs instantly in your browser using JavaScript. Type a hex string and the binary equivalent appears right away, ready to use in circuit design, bit manipulation, or a computer science problem set.

Enter the hexadecimal value

Type the hex string in the input field. A leading '0x' prefix is optional. Examples: FF, 1A3C, 0xDEAD.

Read the binary output

Each hex digit expands to 4 binary bits. FF becomes 11111111; 1A becomes 00011010.

Copy the binary string

Highlight the binary output and copy it for use in your code, register layout, or protocol documentation.

Verify with the reverse converter

Use binary-to-hex to confirm the conversion by going back the other way.

Frequently asked questions

How do I convert hex to binary manually?

Replace each hex digit with its 4-bit binary equivalent: 0=0000, 1=0001, 2=0010, 3=0011, 4=0100, 5=0101, 6=0110, 7=0111, 8=1000, 9=1001, A=1010, B=1011, C=1100, D=1101, E=1110, F=1111.

What is 0xFF in binary?

11111111. F=1111 twice gives 8 bits all set to 1, which is 255 in decimal.

What is 0x1A in binary?

1=0001, A=1010, so 0x1A = 00011010 in binary = 26 in decimal.

Why do programmers use hex instead of binary?

Hex is much more compact. A 32-bit value needs 32 binary digits but only 8 hex digits. Hex is also easy to read in groups of bytes.

Does the converter handle uppercase and lowercase hex?

Yes. A-F and a-f are equivalent in hexadecimal. The converter accepts either form.