Convert as you type
The binary result updates immediately for valid hexadecimal input, so small edits are easy to inspect.
Convert hexadecimal to binary instantly in your browser. Supports 0x prefixes, spaces, fractional hexadecimal values, long inputs, local file import, copying, and downloading.
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.
The binary result updates immediately for valid hexadecimal input, so small edits are easy to inspect.
Each digit is converted directly, which keeps leading information and works with values that are too long for normal JavaScript numbers.
Paste a value, upload a small text file, or drag one into the input panel, then copy or download the result.
Conversion and file reading happen locally in your browser; the value is not sent to a server.
Paste a value such as FF00AA11, use an optional 0x prefix, or import a local text file.
Spaces are ignored. The converter accepts digits 0–9, letters A–F, and one decimal point for a fractional value.
Every hexadecimal digit becomes a four-bit group. Leading zero bits are removed from the integer part for a concise result.
Copy the converted bits for another tool or download them as a plain text file.
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.
3F.A → 0011 1111.1010 → 111111.1010| Hexadecimal | Binary (4 bits) | Hexadecimal | Binary (4 bits) |
|---|---|---|---|
0 | 0000 | 8 | 1000 |
1 | 0001 | 9 | 1001 |
2 | 0010 | A | 1010 |
3 | 0011 | B | 1011 |
4 | 0100 | C | 1100 |
5 | 0101 | D | 1101 |
6 | 0110 | E | 1110 |
7 | 0111 | F | 1111 |
Expand a hexadecimal status value into individual bits to see which flags are on or off.
Inspect binary masks, hardware register values, and low-level diagnostic output more clearly.
Compare hexadecimal payloads with binary field layouts when documenting or debugging a protocol.
Use the four-bit table to understand why hexadecimal is common in programming and digital electronics.
An optional leading 0x is accepted. Other prefixes, signs, commas, and characters outside 0–9 and A–F are not hexadecimal input.
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.
Use a single decimal point, for example A.F. The result is 1010.1111 because F maps to 1111.
Hexadecimal is a base-16 number system. It uses 0–9 and A–F, where A represents 10 and F represents 15.
Four binary bits have sixteen possible combinations, from 0000 to 1111, matching the sixteen hexadecimal symbols.
Yes. It maps each digit directly instead of converting the whole value through a limited-precision number type.
Yes. Enter one decimal point, such as 3F.A. Each fractional hexadecimal digit becomes a four-bit binary group.
No. Conversion, local file reading, copying, and downloading run in your browser.