Convert Hexadecimal to Binary

Convert hexadecimal to binary instantly to see every bit — free online hex to binary tool.

About

About the Hexadecimal to Binary Converter

Hex is compact, but sometimes you need to see the actual bits behind it — expanding a hex value like a flag or bitmask into binary shows exactly which individual bits are set, which the hex digits alone hide.

Every hex digit expands to exactly four bits — A is 1010, F is 1111 — so 0x3C is 0011 1100. The converter drops leading zeros, so 0x3C shows as 111100; pad it on the left to a multiple of four if you want to line the bits up digit by digit.

Choose what to view about this tool

Guide

Using the Hexadecimal to Binary Converter

  1. 1

    Step 1

    Hexadecimal is already selected below as the input base.

  2. 2

    Step 2

    Type your hex digits (0-9, A-F) into the value box.

  3. 3

    Step 3

    The result table fills in instantly — the binary value sits alongside octal, decimal and hex all at once.

  4. 4

    Step 4

    For a quick manual check, replace each hex digit with its 4-bit binary equivalent and string them together.

  • Expands hex into binary as you type, in upper or lower case
  • Accepts an optional 0x prefix, so values copied from code work as-is
  • Shows decimal and octal too, so one flag value can be read three ways at once
  • Shows the value in binary, octal, decimal, hexadecimal and base 36 at once, plus any custom base from 2 to 36
  • Exact for whole numbers up to 9,007,199,254,740,991, and tells you when a number is too large
  • Runs entirely in your browser — free, with no sign-up and no limit

Embedded developers

Developers see exactly which bits a register value like 0x8F sets.

Network engineers

Engineers expand a hex mask or IPv6 group into individual bits.

Security researchers

Researchers inspect flag bytes from a packet capture bit by bit.

Students

Students check four-bits-per-digit expansions from class.

Popular base conversions

Examples

Hexadecimal to Binary examples

4 worked examples

01

A single byte, F0

Hex F0 converts to binary 11110000 — each hex digit expands to exactly 4 bits, so F becomes 1111 and 0 becomes 0000.

02

A full byte, FF

Hex FF, the maximum single-byte value, converts to binary 11111111 — all eight bits set.

03

A small flag value, 2A

Hex 2A converts to binary 101010, useful for seeing exactly which bits are set in a bitmask.

04

A colour code

FF5733 converts to 111111110101011100110011 — 24 bits, eight each for red, green and blue.

FAQ

Frequently asked questions

Quick answers to common questions about the Hexadecimal to Binary Converter.

How do I convert hex to binary?

Type your hex value above, with hexadecimal selected as the input base. The binary value appears instantly in the results table — nothing is uploaded anywhere.

How do you convert hex to binary by hand?

Replace each hex digit with its 4-bit binary form and concatenate them: F0 becomes 1111 followed by 0000, giving 11110000.

What is F0 in binary?

F0 in hex is 11110000 in binary — F (15) expands to 1111 and 0 expands to 0000, one of the simplest examples for practicing hex-to-binary expansion.

Is this hex to binary converter free?

Yes. It's free, with no sign-up and no limit on how many numbers you convert.

Can I convert binary back to hex?

Yes — the same converter works in both directions. Select binary as the input base instead, or use the dedicated binary to hex converter page.

How large a hex value can I convert?

Up to 9,007,199,254,740,991 in decimal terms — beyond that the conversion won't be exact, and the tool will tell you so.

Can I paste hex with a 0x prefix or a # sign?

A leading 0x is removed automatically, so 0xFF and FF both work. A # from a colour code isn't, so delete it first — enter #FF5733 as FF5733.

Does the binary result keep leading zeros?

No. Leading zeros are dropped, so hex 0F gives 1111 rather than 00001111. Pad the result on the left to four bits per hex digit when you need a fixed width, such as a full byte.

Does upper or lower case matter in the hex input?

No — ff, FF and Ff are all read as the same value, 11111111.

Still have a question? Contact us

Report a problem

Hexadecimal to Binary Converter

What went wrong?
    or paste a screenshot