Hex to Binary Conversion
This tool converts hexadecimal (base-16) values to binary (base-2), and vice versa.
How to Use This Converter
- Enter a hex value (e.g.,
2F
) to get the binary equivalent - Or input binary digits (e.g.,
101111
) to see the hex version
The converter supports both directions for easy translation between these formats.
Understanding the Conversion
Each hex digit directly maps to 4 binary bits. This makes hex-to-binary conversion fast and straightforward:
- 0 → 0000
- 1 → 0001
- A → 1010
- F → 1111
So 2F16
= 0010 11112
Fun fact: a group of 4 bits is called a nibble.
Example
Convert DEAD16
to binary:
Hex | Binary |
---|---|
D | 1101 |
E | 1110 |
A | 1010 |
D | 1101 |
Result: 1101111010101101
Why Use Hex and Binary?
Hex is a compact way to represent binary. It's commonly used in:
- Machine code and assembly
- Memory addresses
- Color codes in web development
Binary shows exact bit-level data, while hex is much easier to read and write.