Hex to Binary Converter
Convert hexadecimal (base-16) values into their binary (base-2) representation — showing the full 8-bit binary string for each hex byte.
What Does This Tool Do?
Hexadecimal and binary are both number systems used extensively in computing. Hex is more compact (one hex digit = 4 binary bits), while binary shows the actual bit-level representation. This tool converts hex values to their binary equivalents, useful for understanding data at the bit level.
Key Features
How to Use This Tool
- Enter your hex values (space-separated for multiple values).
- Click Convert to see the binary equivalent.
- Copy the binary output for use in your project.
How It Works
Each hex value is parsed using parseInt(hex, 16) to convert it to a decimal integer, then .toString(2) converts it to binary. The result is padded with leading zeros using .padStart(8, "0") to ensure each byte is represented as a full 8 bits.
Common Use Cases
Frequently Asked Questions
How many binary digits does one hex digit represent?
One hexadecimal digit represents exactly 4 binary bits (since 16 = 2⁴). Two hex digits (one byte) = 8 binary bits.
What is the binary value of hex FF?
FF in hex is 255 in decimal, which is 11111111 in binary — all 8 bits set to 1.
Related Tools
Link to This Tool
Copy and paste the code below to link to this tool from your website: