Hex to Binary Converter
Convert any hexadecimal value to binary instantly — paste a single digit like FF or a long string like 3A9C1F and get the binary result in milliseconds. Supports bidirectional conversion, live validation, nibble grouping, and byte counts. 100% free, no sign-up, runs entirely in your browser.
HEX Length: 0 characters
Binary Length: 0 bits
Conversion Details
Input Format
Decimal Value
Nibbles
Bytes
Validation Status
Valid HEX
Valid Binary
How to Convert Hex to Binary
Converting hexadecimal to binary takes 3 steps:
- Enter your hex value in the HEX Input field — e.g.
3A,FF, or0x1A. - Click “HEX to Binary” — the binary equivalent appears instantly in the output field.
- Copy the result with one click. Use “Swap” to reverse (binary → hex).
Quick examples: 3A → 0011 1010 | FF → 1111 1111 | 1A → 0001 1010
Hex to Binary Conversion Table (0–F)
Each hex digit maps to exactly 4 binary bits (one nibble). Use this table as a quick reference:
| Hex | Binary (4-bit) | Decimal |
|---|---|---|
| 0 | 0000 | 0 |
| 1 | 0001 | 1 |
| 2 | 0010 | 2 |
| 3 | 0011 | 3 |
| 4 | 0100 | 4 |
| 5 | 0101 | 5 |
| 6 | 0110 | 6 |
| 7 | 0111 | 7 |
| 8 | 1000 | 8 |
| 9 | 1001 | 9 |
| A | 1010 | 10 |
| B | 1011 | 11 |
| C | 1100 | 12 |
| D | 1101 | 13 |
| E | 1110 | 14 |
| F | 1111 | 15 |
How Hex to Binary Conversion Works
What Is Hexadecimal (Base 16)?
Hexadecimal (base 16) is a number system using 16 symbols: digits 0–9 and letters A–F. It is widely used in computing to represent binary data more compactly — one hex digit equals exactly 4 binary bits (one nibble). Developers use hex for memory addresses, HTML color codes (#FFFFFF), byte-level data, and machine instructions.
What Is Binary (Base 2)?
Binary (base 2) is the fundamental language of computers, using only 0 and 1. Every piece of data — text, images, programs — is ultimately stored as binary. Eight binary digits form one byte, which can represent values from 0 (00000000) to 255 (11111111).
The Conversion Formula
To convert hex to binary manually: replace each hex digit with its 4-bit binary equivalent from the table above and concatenate the groups.
Example 1: Convert 3A (hex) to binary
3 → 0011
A → 1010
Result: 0011 1010
Example 2: Convert FF (hex) to binary
F → 1111
F → 1111
Result: 1111 1111 (= 255 decimal)
Example 3: Convert 1A (hex) to binary
1 → 0001
A → 1010
Result: 0001 1010 (= 26 decimal)Common Hex Values in Binary — Quick Reference
| Hex | Binary | Decimal | Common Use |
|---|---|---|---|
| 0x00 | 0000 0000 | 0 | Null / off / reset |
| 0x0F | 0000 1111 | 15 | Low nibble mask |
| 0x10 | 0001 0000 | 16 | 16 / power of 2 |
| 0x1A | 0001 1010 | 26 | Escape character (SUB) |
| 0x3A | 0011 1010 | 58 | Colon (:) in ASCII |
| 0x7F | 0111 1111 | 127 | Max 7-bit value (DEL) |
| 0x80 | 1000 0000 | 128 | Min signed negative (int8) |
| 0xFF | 1111 1111 | 255 | Max byte value / all bits set |
When Do Developers Use Hex to Binary Conversion?
- Bit manipulation: Checking or setting individual bits in a register value expressed in hex
- Debugging: Reading memory dumps, error codes, and machine instructions in binary form
- Networking: Analysing MAC addresses, IPv6 addresses, and subnet masks
- Electronics: Configuring microcontroller registers, GPIO pins, and FPGA logic
- Computer science education: Learning number systems and the relationship between base 16 and base 2
Related Binary Converters
If you need to convert in a different direction or format, try these related tools:
- Binary to Hex Converter — reverse this conversion
- Decimal to Binary Converter — convert base 10 to binary
- Binary to Decimal Converter — decode binary to a number
- ASCII to Binary Converter — convert text characters to binary
100% Client-Side Privacy
All hex-to-binary conversions happen locally inside your browser. No data is sent to any server. Your hex values, converted binary strings, and all intermediate results stay entirely on your device.
Frequently Asked Questions
Common questions and answers about the Hex to Binary Converter.
How does hex to binary conversion work?
Each hexadecimal digit maps directly to a 4-bit (one nibble) binary group. For example, hex digit 'A' equals decimal 10, which is 1010 in binary. To convert a hex string, replace each digit with its 4-bit binary equivalent and concatenate the results. For example: 3A in hex becomes 0011 1010 in binary.
What is FF in binary?
FF in hexadecimal is 11111111 in binary. Each 'F' equals 1111 in binary, so FF = 1111 1111, which is 255 in decimal.
What is 1A in binary?
1A in hexadecimal is 00011010 in binary. The digit '1' = 0001 and 'A' = 1010, giving 0001 1010 when concatenated.
What is the difference between hex and binary?
Binary (base 2) uses only 0 and 1. Hexadecimal (base 16) uses 0–9 and A–F. One hex digit always equals exactly 4 binary digits, making hex a compact shorthand for binary data. For example, 8 binary digits (one byte) can be written as just 2 hex digits.
Can I use this as a hex to binary calculator?
Yes. Enter any hex value and the tool instantly calculates and displays the binary result, along with the decimal equivalent, nibble count, and byte count. It also supports bidirectional conversion (binary back to hex).
Can I convert long hex strings?
Yes. Paste any length of hex values, and the tool will convert them instantly.
Do I need to install anything?
No, it works directly in your browser without any plugins or software downloads.
Is it free to use?
Absolutely! It's completely free and always will be.
Is my data safe?
Yes, all mathematical conversions are done locally inside your browser. Nothing is uploaded or stored on any server.