Hex to Binary Converter - Convert Hexadecimal to Binary Online

Convert hexadecimal to binary instantly in your browser. Supports 0x prefixes, spaces, fractional hexadecimal values, long inputs, local file import, copying, and downloading.

Maximum file size: 5 MB
0x, spaces, and one decimal point are supported

A practical hexadecimal to binary converter

Hexadecimal is a compact way to write binary data: every hexadecimal digit maps to exactly four binary bits. This converter makes that relationship visible while keeping the input and result in your browser.

Convert as you type

The binary result updates immediately for valid hexadecimal input, so small edits are easy to inspect.

No numeric precision limit

Each digit is converted directly, which keeps leading information and works with values that are too long for normal JavaScript numbers.

Work with local text files

Paste a value, upload a small text file, or drag one into the input panel, then copy or download the result.

Private by design

Conversion and file reading happen locally in your browser; the value is not sent to a server.

How to convert hexadecimal to binary

1

Enter a hexadecimal value

Paste a value such as FF00AA11, use an optional 0x prefix, or import a local text file.

2

Check the input

Spaces are ignored. The converter accepts digits 0–9, letters A–F, and one decimal point for a fractional value.

3

Read the binary output

Every hexadecimal digit becomes a four-bit group. Leading zero bits are removed from the integer part for a concise result.

4

Copy or download

Copy the converted bits for another tool or download them as a plain text file.

How hexadecimal converts to binary

Base 16 uses sixteen symbols, while base 2 uses two. Because 16 equals 2 to the fourth power, one hexadecimal digit always corresponds to four binary bits. Fractional digits after the decimal point use the same four-bit mapping.

Example3F.A → 0011 1111.1010 → 111111.1010
HexadecimalBinary (4 bits)HexadecimalBinary (4 bits)
0000081000
1000191001
20010A1010
30011B1011
40100C1100
50101D1101
60110E1110
70111F1111

When hex-to-binary conversion helps

Debug bit flags

Expand a hexadecimal status value into individual bits to see which flags are on or off.

Read masks and registers

Inspect binary masks, hardware register values, and low-level diagnostic output more clearly.

Review protocols and data formats

Compare hexadecimal payloads with binary field layouts when documenting or debugging a protocol.

Learn number systems

Use the four-bit table to understand why hexadecimal is common in programming and digital electronics.

Input notes

Prefixes and valid characters

An optional leading 0x is accepted. Other prefixes, signs, commas, and characters outside 0–9 and A–F are not hexadecimal input.

Leading zeros in the result

The integer result is shortened to its meaningful bits, so hex 000F becomes binary 1111. Bits after a decimal point keep their four-bit groups.

Fractional hexadecimal values

Use a single decimal point, for example A.F. The result is 1010.1111 because F maps to 1111.

Hex to binary FAQ

What is hexadecimal?

Hexadecimal is a base-16 number system. It uses 0–9 and A–F, where A represents 10 and F represents 15.

Why does one hexadecimal digit equal four binary bits?

Four binary bits have sixteen possible combinations, from 0000 to 1111, matching the sixteen hexadecimal symbols.

Can this converter handle very long hexadecimal values?

Yes. It maps each digit directly instead of converting the whole value through a limited-precision number type.

Can I convert a hexadecimal fraction?

Yes. Enter one decimal point, such as 3F.A. Each fractional hexadecimal digit becomes a four-bit binary group.

Is my input uploaded?

No. Conversion, local file reading, copying, and downloading run in your browser.