Overview
What hexadecimal to binary means
Converting hexadecimal to binary rewrites the same integer using a different digit alphabet and place-value system.
The absolute value does not change — only the representation does. Hexadecimal uses base-16 (0–9, A–F); Binary uses base-2 (0–1). This page treats the whole input as one number (whitespace is ignored), which matches how engineers usually convert machine values between bases.
Guide
How to convert hexadecimal to binary
- 1
Read the hexadecimal digits
Confirm every character is legal in base-16 (0–9, A–F). Optional whitespace is stripped before parsing so you can paste spaced nibbles or bytes.
- 2
Convert to an absolute value
Each digit is multiplied by 16 raised to its position, counting from the right starting at power 0. Summing those terms yields the same integer you would write in decimal.
- 3
Express the value in base-2
Repeatedly divide by 2 and collect remainders, or mentally group bits when moving between binary, octal, and hex. The remainders become the binary digits (0–1).
- 4
Preserve the sign if present
A leading minus sign is kept through the conversion. The magnitude is converted, then the sign is reattached to the result.
Example
Worked example
Take the hexadecimal sample 48 69. Walking through the conversion:
- Digits: 4 8 6 9 (base-16)
- Place values: 4×16^3 + 8×16^2 + 6×16^1 + 9×16^0 = 18537 (decimal)
- In base-2: 100100001101001
Reference
Base reference (0–15)
Values zero through fifteen in decimal, binary, octal, and hexadecimal — the building blocks for larger conversions.
| Value | Dec | Bin | Oct | Hex |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 1 | 1 | 1 | 1 | 1 |
| 2 | 2 | 10 | 2 | 2 |
| 3 | 3 | 11 | 3 | 3 |
| 4 | 4 | 100 | 4 | 4 |
| 5 | 5 | 101 | 5 | 5 |
| 6 | 6 | 110 | 6 | 6 |
| 7 | 7 | 111 | 7 | 7 |
| 8 | 8 | 1000 | 10 | 8 |
| 9 | 9 | 1001 | 11 | 9 |
| 10 | 10 | 1010 | 12 | A |
| 11 | 11 | 1011 | 13 | B |
| 12 | 12 | 1100 | 14 | C |
| 13 | 13 | 1101 | 15 | D |
| 14 | 14 | 1110 | 16 | E |
| 15 | 15 | 1111 | 17 | F |
Basics
About these bases
base-16Hexadecimal
Hexadecimal is base-16, using digits 0–9 and letters A–F. Each hex digit maps to four binary digits (a nibble).
Two hex digits represent one byte, which is why hex is common for memory addresses, color codes (#RRGGBB), hashes, and debugging dumps. Case is usually ignored when reading values.
Digits: 0–9, A–F
base-2Binary
Binary is base-2, using only the digits 0 and 1. It maps directly to the on/off states of digital circuits.
Every bit is a power of two. Reading from the right, positions are 2⁰, 2¹, 2², and so on. Contiguous binary is often grouped in 8-bit bytes so each group lines up with one character code.
Digits: 0–1
Practice
When to use a hexadecimal → binary converter
Bit-level debugging
Expand hex dumps into individual bits when you need to inspect flags, masks, or instruction encodings.
Teaching nibbles
Show how each hex digit unpacks into exactly four bits — a staple of systems and networking courses.
Learning place value
See the same quantity side by side in two alphabets — a concrete way to internalize powers of two, eight, ten, or sixteen.
Protocol & homework checks
Verify dumps, worksheet answers, or configuration values before you paste them into code or documentation.
Notes
Tips and common pitfalls
- Whitespace inside numeric input is ignored, so you can paste grouped bytes or nibbles safely.
- Hex digits A–F are accepted in either case; output uses lowercase for consistency.
- When reading binary by hand, mark groups of 4 bits for hex or 3 bits for octal — those groupings eliminate most conversion mistakes.
- Invalid digits stop the conversion with a clear error instead of silently skipping characters.
Explore
Related converters
FAQ
Frequently asked questions
- Does hexadecimal to binary change the value?
- No. Both sides represent the same integer. Only the digit alphabet and place values change.
- Is my input uploaded?
- No. Conversion runs entirely in your browser. Nothing you type is sent to a server.
- How should I format multi-value input?
- Enter a single number. Spaces inside the digits are stripped before parsing.
- What digits are valid in hexadecimal?
- Hexadecimal accepts 0–9, A–F. Letter case does not matter.