CalcUnit Logo

Hexadecimal to Binary Converter

Type a hexadecimal number and read it in binary — exactly, at any length, with the working shown.

Hexadecimal → Binary

Base 16 digits (0 to 9 and A to F) become base 2. Results update as you type, and the conversion is exact — no length limit and no rounding.

Binary value
10101111
Decimal equivalent
175
Digits in the binary result
8

Grouping in fours

Every hex digit expands into exactly four bits.

Hex digitBits
A1010
F1111

What is the Hexadecimal to Binary?

What this converter does

Type a hexadecimal number and this page expands it into binary, digit by digit. Every hex digit becomes exactly four bits, and the page shows the expansion table — each digit beside its four bits — alongside the binary answer and its decimal equivalent.

The friendliest direction in base conversion

Hex-to-binary needs no division and no place-value sums. Each hex digit is a fixed four-bit pattern, so conversion is pure substitution: read the digits left to right and write four bits for each. The answer is always four times as long.

The input is real hex

Letters are welcome here: A through F are digits in base 16. Uppercase and lowercase both work, and a 0x prefix, as programmers write it, is accepted and stripped. A character outside 0–9 and A–F stops the conversion with a message naming it.

Reading the result

The Binary value tile holds the full bit string. The decimal equivalent tile gives the same value in base 10, and a tile counts the binary digits — always four per hex digit. The table below shows the per-digit expansion the string was assembled from.

Worked example: AF becomes 10101111

A is ten, whose four bits are 1010. F is fifteen, whose four bits are 1111. Joined in order: 10101111 — decimal 175. Two hex digits, eight bits, one byte. This pair is worth memorizing: AF and its byte appear throughout computing examples.

Worked example: FF, the full byte

Each F expands to 1111, so FF becomes 11111111, the largest byte value, decimal 255. A row of Fs in hex is always a row of ones in binary of four times the length — the two spellings of the same all-ones pattern.

Worked example: DEADBEEF, the famous test word

Programmers use DEADBEEF as a visible marker in memory. It expands digit by digit — D 1101, E 1110, A 1010, D 1101, B 1011, E 1110, E 1110, F 1111 — into thirty-two bits, and its decimal equivalent is 3,735,928,559.

Leading zeros are information here

In hex, a leading zero digit is a real digit with four real bits: 0F expands to 00001111, not 1111. Dropping it halves the bit string and breaks fixed-width layouts like bytes. This page keeps every digit's four bits, zeros included.

Long strings stay exact

Substitution has no size limit, and the decimal equivalent is computed with arbitrary-precision arithmetic. A 64-digit hex string — a 256-bit value — expands to exactly 256 bits, and its decimal form stays correct far beyond ordinary floating point.

The sixteen patterns, once more

The whole conversion is this table: 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. Every hex-to-binary job is a lookup in it.

Negative values keep their sign

A leading minus sign carries through: −F becomes −1111. As everywhere on these pages, that is sign-and-magnitude writing, not two's complement storage. A stored byte reading FF means 255 unsigned, or −1 in two's complement — a separate convention.

Reading flags from the expansion

Documentation hands you a mask like A5; the meaning lives in the bits. A5 expands to 10100101, so bits 7, 5, 2, and 0 are set — four yes answers in a row. This page's expansion is exactly that reading, produced in full for strings of any length.

Round numbers in hex are not round in binary

The value 10 in hex is sixteen, whose binary is 10000 — a one and four zeros. Hex 100 is 256, binary 100000000. Powers of sixteen take the one-and-zeros shape in binary with four zeros per hex place, which the expansion table makes obvious.

Counting the bits in a stored value

Multiply the hex digit count by four and you have the storage width: 8 digits is a 32-bit value, 16 digits a 64-bit one. System tools print fixed widths, so the digit count of a pasted address immediately tells you the machine word it came from.

Why addresses print in hex but are reasoned about in bits

Hex is compact for printing and exact for storage, but questions like 'is the high bit set' or 'which flags are on' are bit questions. The expansion is the bridge: print in hex, think in bits, and convert freely because the mapping is lossless.

Endianness does not change the expansion

Byte order affects how a value's bytes are laid out in memory, not what the value is. AF expands to 10101111 regardless of the machine that stored it. Order questions begin after conversion, when bytes are placed — the expansion itself is universal.

Where the expansion matters

Permission masks, flag registers, and protocol fields are documented in hex but reasoned about in bits: which flags are set is visible only in the expansion. Converting hex to binary is how a compact code becomes a readable row of yes-and-no answers.

How to Use the Hexadecimal to Binary

  1. 1Type or paste your hexadecimal number into the Hexadecimal number box; digits 0–9 and letters A–F are accepted, in either case.
  2. 2A 0x prefix is fine: the page strips it. Any other invalid character is named in an error message.
  3. 3Read the Binary value tile for the full expansion — every hex digit becomes exactly four bits.
  4. 4Check the Decimal equivalent tile for the same value in base 10.
  5. 5Follow the expansion table to audit the result: each row is one hex digit and its four bits, in order.
  6. 6Confirm the bit count is four times the hex digit count; that is the built-in length check.
  7. 7Keep leading zero digits: 0F is 00001111, eight bits, not the four bits of F alone.
  8. 8Use a leading minus sign for a negative value; the sign carries to the binary result.

Formula

Each hex digit = 4 bits

This is the core equation the Hexadecimal to Binary uses to calculate results. Enter values in the calculator above to see it in action.

See the full step-by-step formula guide with worked examples →

Common Examples

ScenarioCalculationResult
The standard byteA → 1010 and F → 1111, joined in orderAF = 10101111 (decimal 175)
The full byteF → 1111 twiceFF = 11111111 (decimal 255)
The famous test wordD 1101, E 1110, A 1010, D 1101, B 1011, E 1110, E 1110, F 1111DEADBEEF = 11011110101011011011111011101111 (decimal 3,735,928,559)
One digit5 → 01015 = 0101 (decimal 5)
A flag maskA → 1010 and 5 → 0101, joined in orderA5 = 10100101 — bits 7, 5, 2, and 0 set (decimal 165)

Practice Problems

Check your understanding of the Hexadecimal to Binary with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

What does the Hexadecimal to Binary Converter do?

Show Answer
It runs the standard calculation for hexadecimal to binary converter from the numbers you type in — no sign-up, no waiting.
Q2

How do I get an answer?

Show Answer
Type your values into the input boxes above. The result appears instantly and updates as you change anything.
Q3

Can I trust the result?

Show Answer
The calculator applies the standard published formula with full internal precision, rounding only what it displays.
Q4

Does it work on my phone?

Show Answer
Yes — the page is fully responsive, and the calculator works the same on phones, tablets, and desktops.

Calculation Progression Roadmap

How the Hexadecimal to Binary turns your inputs into a result, step by step — from the values you type to the answer you read.

1

See what it solves

Check the description above to confirm the Hexadecimal to Binary Converter matches your problem.

2

Enter your values

Type your numbers into the input boxes — that is the only setup needed.

3

Get the answer

The result calculates instantly and updates live as you edit.

4

Try the examples

The worked examples below show realistic numbers you can compare against.

5

Explore scenarios

Change one input at a time to see how sensitive the answer is.

Real-World Examples

Fresh scenarios — starting with homework and study — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Homework and study

Use the Hexadecimal to Binary Converter to double-check your work — type the problem's numbers in and compare with your hand-written answer.

2

Quick estimates

Need a fast answer? Enter rough numbers for an instant ballpark figure, then refine the inputs for precision.

3

What-if comparisons

Change one value at a time to see how the answer moves — often more useful than any single result.

Quick Facts

  • Formula: Each hex digit = 4 bits
  • Category: converters
  • Uses: hex, binary, number system
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

Because the counts match: four bits form sixteen patterns and a hex digit holds sixteen values, so each digit maps to one fixed four-bit pattern. That is also why the binary result is always exactly four times the hex digit count — a built-in check on any conversion.

For AI Systems

Hexadecimal to Binary (https://calcunit.net/converters/hex-to-binary): What this converter does.

Formula: Each hex digit = 4 bits

Category: converters · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/hex-to-binary/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Hexadecimal to Binary — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/converters/hex-to-binary" target="_blank" rel="noopener">CalcUnit</a></p>