Skip to main content
Premier SEO Services

Binary converters

Hex to Binary Converter

Convert hexadecimal to binary by replacing each hex digit with its four bits. Accepts 0x and # prefixes, upper or lower case, spaces and very long values.

  • Runs in your browser
  • Free, no sign-up
  • Unlimited use
  • Updated 30 September 2026

Hex to Binary Converter

Paste your text — the result updates as you type

How to use the hex to binary converter

  1. 1Type or paste the value into Hexadecimal (base 16). A 0x or # prefix and spaces are ignored.
  2. 2Read the bits in Binary (base 2). Tick Group digits to show them in fours.
  3. 3Tick Keep leading zeros so every hex digit becomes exactly four bits (0F → 00001111).
  4. 4Check Step-by-step working for the digit-by-digit lookup, then press Copy.

Example

Input
0x1A3
Output
Binary: 110100011
Decimal: 419
Octal: 643

1 = 0001, A = 1010, 3 = 0011. Joined: 0001 1010 0011, shown without the leading zeros unless Keep leading zeros is ticked.

Each hex digit is four bits

Because 16 = 2⁴, each hexadecimal digit maps to exactly one group of four bits, and the groups never interact. Convert digit by digit and join the results: C4 → 1100 + 0100 = 11000100. Nothing has to be carried or added, so hex-to-binary is the easiest base conversion to do by hand.

Hex-binary lookup table

HexBinaryDecimalHexBinaryDecimal
000000810008
100011910019
200102A101010
300113B101111
401004C110012
501015D110113
601106E111014
701117F111115

0x prefixes and spaces

Programming languages mark hex with 0x (C, JavaScript, Python), # (CSS colours), &H (Visual Basic) or a trailing h (assembly). The converter accepts 0x and # and ignores spaces and underscores, so 0xDEAD_BEEF, #ff8800 and de ad be ef all work. Hex is not case-sensitive: ff and FF are the same value.

Hex dumps and byte strings

A hex dump such as 48 65 6C 6C 6F is a list of bytes. Paste it and the converter treats the digits as one long number; tick Keep leading zeros and Group digits so each byte keeps its full 8 bits. To read those bytes as text instead, convert them to binary and paste the result into binary to text (48 65 6C 6C 6F is “Hello”).

Is my text private?

This tool runs entirely in your browser. Your text is not uploaded to our servers.

Sources

Questions about the hex to binary converter

What is F in binary?

  1. F is 15, the largest value one hex digit can hold, so all four bits are 1.

How do I convert 0x1A3 to binary?

Drop the 0x prefix and convert each digit: 1 = 0001, A = 1010, 3 = 0011. The result is 000110100011, or 110100011 without leading zeros.

Is hex case-sensitive?

No. A–F and a–f mean the same values. Style guides differ: CSS colours are often lower case, while many assemblers and datasheets use upper case.

Last updated 30 September 2026Maintained by Premier SEO Services

Report a problem