Hex to Binary

Use this hex to binary tool when you need an exact result without a slow form, a sign-up screen, or a server-side upload. It is designed for people who need to inspect bit patterns behind flags, masks, bytes, network values, or compact hex data, and it keeps the input on your device while you work.

Converter

Hex to Binary Converter

The converter accepts A-F and optional 0x prefixes.

Ready.

Expand hexadecimal into the bits behind it

The hex to binary page is for values that are compact in base 16 but need to be inspected at the bit level. Hex is easy to scan in logs and code, while binary reveals flags, masks, permissions, and individual bit positions.

Paste a hex value such as FF, 2A, or 0x80 and the converter returns the binary integer. It is useful for debugging, networking, embedded work, and lessons where the relationship between nibbles and bits needs to be visible.

How to convert hex to binary

  1. Paste the hexadecimal value with digits 0-9 and letters A-F.
  2. Keep a 0x prefix if it came from code; the converter accepts it.
  3. Use separate lines for separate values instead of inserting spaces inside one value.
  4. Pad the binary output manually if you need fixed groups of four bits.
  5. Compare the result against the original hex digits when inspecting flags or masks.

Hex to binary examples

Input Result Why it matters
FF 11111111 All bits set in one byte.
2A 101010 A small alternating bit pattern.
0x80 10000000 The high bit of an 8-bit byte.

Hex input rules

Hexadecimal input can use uppercase or lowercase letters. Values outside A-F are rejected because they belong to another notation or to surrounding text, not to the hex number.

The output is the shortest binary integer representation. If you need a nibble-aligned display, add leading zeroes to make the length a multiple of four.

The four-bit relationship

Each hex digit maps to four binary bits: F maps to 1111, A maps to 1010, and 8 maps to 1000. That is why hexadecimal is so common in byte-level work; it compresses binary without losing the bit pattern.

The converter returns a numeric binary value, so it may omit leading zeroes. For example, hex 0F and hex F have the same integer value, but 0F is often displayed as 00001111 when byte width matters.

When hex to binary is the right page

  • Inspecting bit masks copied from code.
  • Checking packet bytes and protocol examples.
  • Explaining how hex digits correspond to nibbles.
  • Finding which bit positions are set in a register or flag field.

Accuracy notes

Binary output shows the mathematical value, not a fixed hardware width. If your source is a byte, word, or double word, preserve that width separately.

Negative hex values are accepted with a minus sign, but two's-complement decoding still depends on the intended bit width.

Related tools

If this page is close but not exactly the operation you need, the related converters below cover adjacent intents without mixing every feature into one crowded interface. You can move from hex to binary to Hex to Decimal, Binary to Decimal, Decimal to Hex, Binary Converter. Keeping each page centered on one core task makes the tool faster to use and makes the explanation easier to follow.

Frequently asked questions

Why is 0F shown as 1111?

Leading zeroes do not change the integer. Pad to 00001111 if you need an 8-bit display.

Can I paste 0x80?

Yes. Optional 0x prefixes are supported.

Does it show groups of four bits?

The result is plain binary. Add grouping after conversion if your document requires it.

More number conversion tools