Hex to binary converter (one digit, four bits)

Expand each hexadecimal digit into four bits.

Was this helpful?
Share Tool

Each hex digit is four bits: F is 1111, 8 is 1000, so FF8800 is 111111111000100000000000. Paste hex here (0x and mixed case are fine) and read the expanded bit string, with an option to strip leading zeros.

Need the reverse? Binary to hex groups bits into nibbles. For every base in one box, open all bases at once in the binary converter.

Colour FF8800 (or #FF8800 in CSS) expands F F 8 8 0 0 → 1111 1111 1000 1000 0000 0000. A 32-bit dump 0xDEADBEEF is 11011110101011011011111011101111.

The 16-row table is the same mapping as binary-to-hex, read the other way. A is 1010, D is 1101, E is 1110. Tick “Strip leading zeros” if you want 00FF to become 11111111 rather than 0000000011111111.

Open Step-by-step working to see each digit → nibble line. Invalid characters (G, # in the middle, spaces inside a digit) show a red alert. Close the tab when you are done. A nybble is just another name for those four bits: textbooks say nibble, hardware docs sometimes say nybble, and both mean the same 0000–1111 map this widget prints.

Sixteen-bit words such as FFFF expand to sixteen 1s. That is the unsigned 16-bit maximum, the same pattern −1 uses in two’s complement at width 16, which the signed hub and the two’s complement calculator also show as FFFF.

How to convert hex to binary

  1. Paste hex digits. A 0x prefix, spaces and underscores are allowed. # at the start of a colour is stripped.
  2. Read four bits per digit. Optional: strip leading zeros after expansion.
  3. Open Step-by-step working to confirm each 0–F → 0000–1111 line.
  4. Copy the bit string. Use the reverse link when you started from binary instead.

Key Features

  • Hex → binary, four bits per digit
  • 0x prefix, mixed case, optional leading-zero strip
  • Colour #FF8800 and 0xDEADBEEF examples
  • Shared 0000–1111 table with the reverse spoke
  • Local, no upload

Expand each glyph to four bits

  • F → 1111, 8 → 1000, 0 → 0000. Concatenate in the same order as the digits.
  • #FF8800 and FF8800 are the same 24 bits. A leading # is ignored so CSS colours paste cleanly.
  • 0xDEADBEEF: D=1101 E=1110 A=1010 D=1101 B=1011 E=1110 E=1110 F=1111 → 11011110101011011011111011101111.
  • 00FF with strip-zeros is 11111111 (8 bits). Without the option it stays 0000000011111111 (16 bits).

Colours, bytes, and IEEE hex

  • 24-bit orange #FF8800 is a teaching sample, not a colour picker. The bits are what this page prints.
  • DEADBEEF is a classic 32-bit filler. Unsigned decimal is 3735928559; this page only expands bits.
  • IEEE-754 hex such as 3DCCCCCD for float32 0.1 belongs on the IEEE 754 converter, which also toggles fields.
  • One digit that is not 0–9/A–F fails the whole paste. Do not mix binary 0/1 with hex A–F in one box.

Common mistakes

  • Writing F as 1111 0000 (an extra nibble). One glyph is exactly four bits, never eight.
  • Dropping leading zeros inside a byte: 0F is 00001111, not 1111, unless you opted to strip.
  • Reading DEAD as decimal English. These are hex digits D,E,A,D.
  • Pasting a 0/1 string here. That direction is binary to hex.
  • Expecting UTF-8 text from hex bytes — that is the text-hex converter, not a number-base spoke.

Digit table (0–F → 0000–1111)

  • Same sixteen rows as binary → hex, with headings swapped for this direction.
HexNibbleDecimal
000000
100011
200102
300113
401004
501015
601106
701117
810008
910019
A101010
B101111
C110012
D110113
E111014
F111115

Frequently Asked Questions

What is FF8800 in binary?

111111111000100000000000. Six digits, six nibbles. The CSS form #FF8800 is accepted.

What is 0xDEADBEEF in binary?

11011110101011011011111011101111. Eight hex digits expand to 32 bits.

Does a 0x prefix matter?

It is stripped. 0xFF, FF and ff are the same 11111111 (or 0000000011111111 if you keep width).

When should I strip leading zeros?

When you want the shortest 0/1 string (00FF → 11111111). Leave them when the byte width matters.

Is A the same as 1010?

Yes. A is decimal 10, which is the nibble 1010. a and A are equal.

Can I convert hex to decimal here?

This page prints bits. The ×16^n sum is the [hex to decimal converter](/tool/hex-to-decimal/?v=FF), which also shows a signed readout at width.

Expert Guide for Hex to Binary Converter

View Blog
Hex to Text: Decode Hexadecimal Strings (With Examples)

Hex to Text: Decode Hexadecimal Strings (With Examples)

Decode hex to text by hand and online. Worked examples turn 48 65 6C 6C 6F into Hello and show why UTF-8 bytes like E2 82 B9 become one character.

Read Guide

Categories

Browse all FlashKit tools