Hex to Binary Calculator and Binary to Hex

Convert between hexadecimal and binary numbers with step-by-step breakdown

How Hex ↔ Binary Conversion Works

Direct Conversion Method: Each hexadecimal digit directly maps to exactly 4 binary digits (bits).

Conversion Table (click to expand)
HexBinaryDecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Example: Hex "2A" → Binary "00101010" (2 → 0010, A → 1010)

Get fast base conversion for studies and work. Enter a hexadecimal value or a binary value. The tool converts both ways and shows a clear step by step breakdown. Many readers search for a dot product calculator. This page focuses on base two and base sixteen conversion.

What This Calculator Does

Hexadecimal uses base sixteen and digits 0 to 9 and A to F. Binary uses base two and digits 0 and 1. Hex is short for hexadecimal. This calculator converts hexadecimal to binary by mapping each hex digit to four bits. A bit is a single binary digit. It converts binary to hexadecimal by grouping bits in sets of four. It displays a learning table that lists each mapping. It then shows a final line with both values and base labels.

How It Works

Two input fields sit side by side. One field expects a hexadecimal value. The other field expects a binary value. You can type 0x before hexadecimal values. You can type 0b before binary values. The tool accepts uppercase or lowercase letters. As you type, the other field fills with the converted value. A step by step table shows each digit or bit group and its match.

Step by Step Instructions

Follow these steps to run a clean conversion.

  1. Click in Hexadecimal and type digits 0 to 9 and A to F.
  2. Add 0x at the start if needed.
  3. Click in Binary and type digits 0 and 1.
  4. Add 0b at the start if needed.
  5. Type in either field and read the other field.
  6. Check the breakdown to see each mapping step by step.
  7. Read any error message and enter allowed characters.
  8. For bit counts outside multiples of four, the tool adds leading zeros and shows a note.

How You Benefit from Using This Tool

Students learn base skills fast and with clarity. Developers check bit masks and protocol flags with ease. Embedded teams read and write register values with less guesswork. Data science learners practice binary thinking for coding tasks.

The step by step table makes learning stick. You see each hex digit and the four bits it maps to. You see each group of four bits and the hex digit it maps to. This clear feedback builds trust and speed. For vector work, a dot product calculator serves a different need.

Simple, Effective, and Practical

Use whole numbers in base sixteen or base two. The tool supports long inputs and still runs fast. It accepts 0x and 0b prefixes. It ignores case for letters A to F. It adds leading zeros for binary to hex so groups form clean sets of four. It outputs uppercase hex by design. It uses standard maps for digits 0 through F.

As you type, the other field updates with the converted number. The breakdown lists each part and the matching part. The final line shows input equals output with base 16 and base 2 tags. Check the base tag to confirm the target base. This gives quick checks at a glance.

Try these quick examples. Hex 2A becomes binary 00101010. Hex FF becomes binary 11111111. Binary 101 becomes hex 5 and the note shows a pad to 0101. Binary 11001000 becomes hex C8.