Skip to main content
chain
⇄
Hex to Binary
⌃⏎ run · ⎋ clear · / focus input
Decimal · base 10
Hexadecimal · base 16
Binary · base 2
send result to
no matches
Octal · base 8
Enter a hexadecimal value above to convert it
// about this tool

Hex to Binary Online

Updated 2026-10-24

Convert hexadecimal to binary online for free. Paste a hex value (with or without a 0x prefix) and SnapTools shows its binary representation instantly, right in your browser. Nothing you enter is uploaded.

Because one hex digit is exactly four binary bits, hexadecimal is really just a compact way to write binary, which is why byte values, colours, and memory addresses are shown in hex. This converter expands any hex value back to its bits in one step, so you can read a bitmask, check a manual conversion, or learn the mapping without counting nibbles by hand. For every base at once, use the Number Base Converter.

// how to use

  1. 1 Paste or type a hexadecimal value into the input (a leading 0x and spaces are fine).
  2. 2 SnapTools converts it to binary as you type.
  3. 3 Copy the binary result, or open the Number Base Converter for all bases at once.

// examples

Byte value
Input
FF
Output
11111111
Larger value
Input
1F4
Output
111110100

// common uses

Reading a hex byte or colour value as raw bits Learning how hexadecimal maps to binary Debugging low-level data and bitmasks Checking a manual hex-to-binary conversion

// faq

Where else besides byte values is hex-to-binary expansion used?
Network identifiers are a common case. A 48-bit MAC address and a 128-bit IPv6 address are both written in hex purely for readability, and expanding them back to binary is how routers and firewalls actually match and mask the underlying bits.
How do I convert hex to binary by hand?
Every hex digit stands for a fixed 4-bit pattern (F is 1111, A is 1010, and so on down to 0000), and lining up those patterns in the same order as the original digits rebuilds the full binary value. This tool runs that substitution and trims any extra leading zeros for you.
Why is hex a shorthand for binary?
One hex digit maps to exactly four binary bits, so hexadecimal is a compact way to write binary. That is why colours, memory addresses, and byte values are usually shown in hex.
Does it accept a 0x prefix or spaces?
Yes, the tool strips a leading 0x automatically and ignores any spaces used to separate bytes, so pasting straight out of a debugger or hex editor works without cleanup.
What if my input is not valid hex?
Valid hex is limited to 0 through 9 plus A through F; anything outside that set gets caught and flagged immediately, so you can fix the character instead of getting a silently wrong bit pattern.

Use this via API

Get a free API key →
curl -X POST https://thesnaptools.com/api/v1/tools/hex-to-binary \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"number":"FF"}'