Language
English English Vietnamese (Tiếng Việt) Vietnamese (Tiếng Việt) Chinese (简体中文) Chinese (简体中文) Portuguese (Brazil) (Português do Brasil) Portuguese (Brazil) (Português do Brasil) Spanish (Español) Spanish (Español) Indonesian (Bahasa Indonesia) Indonesian (Bahasa Indonesia)
Hexadecimal to Binary

Hexadecimal to Binary

Convert hexadecimal to binary. Expand hex values to see the underlying bit patterns - each hex digit becomes 4 binary bits.

What is the Hexadecimal to Binary Converter?

This tool expands hexadecimal values to reveal their underlying binary bit patterns.

Key relationship: each hex digit expands to exactly 4 binary bits, because 16 = 2⁴.

Why Convert Hex to Binary?

Analyze Bit Flags

See exactly which bits are set within a value.

Debug Hardware

Understand register and device values bit by bit.

Learn Computing

Visualize how data is represented at the lowest level.

Work with Masks

Plan bitwise AND, OR, and XOR operations precisely.

Direct Conversion

Each hex digit converts to exactly 4 binary digits, so simply replace each one in place.

Example: 2F → 2 = 0010, F = 1111 → 00101111.

How to Use

1

Enter the Hex Number

Type the digits 0–9 and the letters A–F. Both uppercase and lowercase are accepted.

2

View the Binary Result

Each hex digit becomes 4 bits, with the binary output shown instantly.

3

Analyze the Bits

Read the exact bit pattern, grouped in fours for easy reference.

Bidirectional: both fields are editable. Type a binary value in the result field to convert it back to hexadecimal, or use the swap button to flip the direction.

Common Patterns

HexBinaryMeaning
0F00001111low nibble mask
F011110000high nibble mask
AA10101010alternating bits
5501010101alternating bits

Frequently Asked Questions

Why does each hex digit become 4 bits?

Because 16 = 2⁴. A single hex digit can hold 16 values (0–F), exactly the range of 4 binary bits.

Is the input case sensitive?

No. Both uppercase (FF) and lowercase (ff) produce the same binary result.

Why is the output grouped into fours?

Grouping in fours lines each nibble up with its original hex digit, making the bit pattern easy to read and verify.

What does 0F do as a bit mask?

0F is 00001111. Using it with a bitwise AND keeps the lowest four bits and clears the rest — a common way to isolate the low nibble.

0123456789ABCDEFabcdef
0x
01
0b

Hex to Binary

0 = 0000
5 = 0101
A = 1010
F = 1111
FF = 11111111
AA = 10101010

Hexadecimal (Base-16)

Compact binary representation. Each digit contains exactly 4 bits of information.

Binary (Base-2)

The expanded form showing actual bit patterns. Essential for bit manipulation.

Enter hex digits (0-9 and A-F)
FF in hex = 11111111 in binary
Each hex digit expands to 4 bits
Useful for analyzing bit flags
Want to learn more? Read documentation →
1/5
Start typing to search...
Searching...
No results found
Try searching with different keywords