Hex to Binary
Convert hexadecimal numbers to binary — enter, convert, and copy instantly.
Binary output will appear here...About Hex to Binary Converter
Hex to Binary Converter translates base-16 hexadecimal values (digits 0-9 and letters A-F) into base-2 binary strings made entirely of 0s and 1s. Because each hex digit maps exactly to a four-bit group, this conversion is a staple operation in embedded systems, digital electronics, and low-level software development. Developers reach for it when they need to see the raw bit pattern behind a register value, a network packet byte, a color channel, or a memory address.
The tool accepts one or more hex values, one per line, and converts each independently in a single click. A leading 0x prefix is stripped automatically so you can paste values directly from debugger output or code without editing. For hex strings longer than 13 digits — beyond standard JavaScript floating-point precision — the converter switches to BigInt arithmetic transparently, so the full bit pattern is always accurate regardless of input length.
All conversion runs entirely inside your browser. No hex value you enter is sent to a server, logged, or stored anywhere. The tool is completely free and works without a sign-up or account. Whether you are converting a single byte or batch-processing dozens of register values, the only limit is your browser.
Key Features
Four-bit digit mapping
Each hex digit expands to exactly four binary bits (e.g., F → 1111), so you can verify any nibble or byte at a glance without doing the arithmetic by hand.
Batch multi-line conversion
Enter multiple hex values on separate lines and convert them all at once. Each line is processed independently, making register dumps and packet traces easy to handle.
Automatic 0x prefix handling
Values prefixed with 0x or 0X (common in C, Python, and debugger output) are accepted and stripped automatically — no manual cleanup required.
BigInt precision for large values
Hex strings longer than 13 digits exceed JavaScript number precision. The tool detects this and switches to BigInt conversion automatically, preserving every bit of large addresses or hash fragments.
100% client-side and private
Conversion runs locally in your browser with no server round-trip. Sensitive hex data such as crypto keys, memory addresses, or protocol payloads never leaves your machine.
One-click copy
Copy all binary output to your clipboard with a single button press and paste it straight into your code, documentation, or analysis tool.
How to Use
Enter Hex Number
Type or paste your hexadecimal number into the input area. You can enter multiple numbers on separate lines for batch conversion. A 0x prefix is automatically removed.
Convert
Click "Convert" to calculate the binary equivalent of your hex input. Each line is converted independently.
Copy Result
Copy the binary result to your clipboard with one click using the copy button in the toolbar.
Example
Each hex digit expands to four binary bits. Leading zeros in intermediate groups are dropped from the final result, so the output length reflects the magnitude of the input value.
ff
1a
b4
3e8 11111111
11010
10110100
1111101000 Common Use Cases
- arrow_circle_right
Inspecting register and flag bits
CPU status registers and peripheral control registers are documented bit-by-bit. Converting the hex value from a debugger directly to binary lets you read which flags are set without manually expanding nibbles.
- arrow_circle_right
Analyzing network protocol fields
Protocol headers such as TCP flags or IP DSCP fields use specific bit positions. Converting the hex byte to binary makes it straightforward to verify which bits are active in a captured packet.
- arrow_circle_right
Verifying bitwise operation results
When writing code that uses AND, OR, XOR, or shift operations, seeing the binary representation alongside the hex confirms that masks and shifts behave as intended before the code goes to test.
- arrow_circle_right
Working with memory addresses and offsets
Alignment requirements in embedded and systems programming depend on the low-order bits of an address. Viewing the address in binary immediately shows whether it meets a four-byte or eight-byte alignment boundary.
- arrow_circle_right
Learning and teaching number systems
Hex-to-binary conversion illustrates how the two bases relate through groups of four bits. Checking worked examples against this tool is faster than using a calculator during a computer architecture or digital logic course.