BYTETOOLS

Hex to Binary Converter

Convert hexadecimal to binary online with 4-bit or 8-bit grouping and zero-padding to 8, 16, 32 or 64 bits. Handles 0x prefixes and long values. No upload.

16
Bits
4
Hex digits

Binary value

0001 1010 0011 1111

What is the Hex to Binary Converter?

The ByteTools Hex to Binary Converter turns any hexadecimal value into its binary representation. Each hex digit maps to exactly four bits, so the conversion is a direct digit-by-digit expansion — no rounding, no size limit — and it works for anything from a single byte to a long hash or memory dump.

  • Exact per-digit conversion — each hex digit becomes 4 bits
  • No length limit: works on hashes, dumps and long values
  • 4-bit or 8-bit output grouping for readability
  • Zero-padding to 8, 16, 32 or 64-bit widths
  • Accepts 0x prefixes, spaces and underscores in the input
  • 100% client-side and instant

How to use the Hex to Binary Converter

  1. 1

    Paste or type your hexadecimal value — a 0x prefix is fine.

  2. 2

    Choose how to group the output bits: none, nibbles (4) or bytes (8).

  3. 3

    Optionally pick a fixed bit width to zero-pad the result.

  4. 4

    Read the binary output and the bit count instantly.

  5. 5

    Copy the result with one click.

About the Hex to Binary Converter

The ByteTools Hex to Binary Converter turns any hexadecimal value into its binary representation. Each hex digit maps to exactly four bits, so the conversion is a direct digit-by-digit expansion — no rounding, no size limit — and it works for anything from a single byte to a long hash or memory dump.

The output is formatted the way you need it: group the bits into 4-bit nibbles or 8-bit bytes for readability, and optionally zero-pad the value to a fixed 8, 16, 32 or 64-bit width, which is handy when you are lining values up against registers, flags or protocol fields. A 0x prefix, spaces and underscores in the input are handled automatically.

The conversion runs 100% locally in your browser. Nothing is uploaded or stored, and results update live as you type.

Frequently asked questions

How do I convert hex to binary by hand?

Replace each hex digit with its 4-bit binary equivalent: A is 1010, F is 1111, 3 is 0011, and so on. For example 0x1A3F becomes 0001 1010 0011 1111. Because the mapping is one digit to four bits, no arithmetic is needed — it is a straight substitution.

Why is hexadecimal used as shorthand for binary?

One hex digit represents exactly four binary bits, so any binary value can be written in a quarter of the characters with no loss of information. That is why memory addresses, color codes and hashes are written in hex — it is binary in a compact, human-readable form.

What does zero-padding to a bit width do?

It adds leading zeros until the value is exactly 8, 16, 32 or 64 bits long. That matters when you are comparing values against fixed-size registers, bitmasks or protocol fields, where 0xFF and 0x00FF mean the same number but occupy different widths.

Can I convert very long hex strings like SHA-256 hashes?

Yes. The converter expands digit by digit rather than doing arithmetic on one big number, so there is no upper limit — a 64-digit SHA-256 hash simply becomes 256 bits of binary output.

Is anything I enter sent to a server?

No. The conversion is done entirely in your browser with JavaScript. Your input is never uploaded, logged or stored anywhere.

Related tools