F

Hex to Binary Converter

Expand each hexadecimal digit into four binary bits, producing a full binary string.

Number base converter

Converting from Hexadecimal (base 16) to Binary (base 2).

Converted value

1000010

Steps

  1. Input (base 16): 42
  2. Convert via decimal: parse in base 16, then express in base 2.
  3. Result (base 2): 1000010

How it works

Replace each hex digit with its fixed 4-bit pattern without going through decimal.

How to use Hex to Binary Converter

  1. Enter hex digits (optional 0x).
  2. Read zero-padded binary per nibble.
  3. Validate length against expected word size (8, 16, 32).

Worked examples

Concrete numbers and cases you can check against the tool above.

Hex A5

A=1010, 5=0101 → 10100101 binary.

When to use Hex to Binary Converter

Datasheets list registers in hex while bus analyzers show bits. Expansion makes bit positions explicit.

Common use cases

  • Map a hex opcode to individual control bits.
  • Verify #FF0000 red channel is 11111111 in binary.

Inputs and outputs

  • Hexadecimal strings
  • Optional 0x prefix

Privacy

This tool runs entirely in your browser. Your data never leaves your device — nothing is uploaded to our servers.

Frequently asked questions

Case sensitive?
A–F and a–f are equivalent.
Odd-length hex?
Valid — leading zero nibble may be implied (e.g. F = 1111).
Spaces in input?
Many tools strip spaces; byte pairs like FF AA are common.

Related tools

More free utilities you may need next — also listed in Text, Writing & Developer Tools and the All Tools directory.

View full category →