Hexadecimal to binary converter

Convert hexadecimal to binary using 4-bit nibbles, grouped output and optional byte padding. Includes decimal output and automatic per-digit steps.

Hexadecimal to Binary Calculator Online (Step-by-Step)

Convert hex to binary in seconds, group the output into nibbles or bytes, and apply automatic byte padding. Includes a step table for every digit.

Binary

Direct bit-equivalent

Grouped binary

Use the selector to group into 4 or 8 bits

Padded binary

Automatically aligned to bytes (8 bits)

Decimal (optional)

Unsigned representation

Automatic steps: each hex digit equals 4 bits

# Hex Binary (4 bits) Bits used

How to convert hexadecimal to binary

The mapping is exact because one hexadecimal digit always represents 4 bits. Replace every character with its nibble and join the pieces.

  1. Clean the string. Remove optional 0x prefixes, spaces, or underscores. The calculator normalizes this for you.
  2. Process digit by digit. From left to right, take each hex symbol (0–9, A–F).
  3. Swap for 4 bits. Use the lookup table: A → 1010, F → 1111, 0 → 0000, and so on.
  4. Concatenate the nibbles. Join every 4-bit block to get the full binary number.
  5. Apply padding if needed. With automatic padding, zeros are added to the left until the length is a multiple of 8 bits (bytes) before grouping.

Example with 0x1FAE: 1 → 0001, F → 1111, A → 1010, E → 1110. Result without padding: 0001 1111 1010 1110; padded to bytes it stays the same because it already has 16 bits.

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

Frequently asked questions