Tools

Home
Binary to HexadecimalBinary to DecimalBinary to OctalHex to Base64Base64 to Hex

Binary to Hex Converter

Convert binary numbers to hexadecimal online. Groups bits into nibbles and converts each to a hex digit.

Your files never leave your browser
INPUT (BINARY)0 chars
OUTPUT (HEX)0 values
Ready·Uppercase | No prefix

Paste binary into the left panel and hex pops out on the right — each group of four bits becomes one hex character, so 11010110 reads as D6 with zero mental math. Flip case, tack on a 0x prefix for code, or hit Swap to turn hex back into binary. And everything runs in your browser. Nothing gets uploaded.

How to Use

Enter binary values in the left panel. You can enter a single binary number, multiple numbers separated by spaces, or one per line for batch conversion.

Choose options -- select uppercase or lowercase for hex letters (A-F vs a-f) and whether to add a 0x prefix.

Click Convert or leave Live mode enabled to see hex output instantly as you type.

Copy, Download, or Swap the result. Use Swap to convert hex back to binary.

Frequently Asked Questions

How does binary to hex conversion work?

Binary to hexadecimal conversion works by grouping binary digits (bits) into groups of 4 from the right side. Each group of 4 bits maps directly to one hexadecimal digit. For example, 1101 in binary equals D in hex, and 0110 equals 6. So the binary number 11010110 becomes D6 in hex. If the number of bits isn't a multiple of 4, the leftmost group is padded with leading zeros.

Why is binary to hex conversion so clean?

Hexadecimal is base-16 and binary is base-2. Since 16 = 2^4, every hex digit maps exactly to 4 binary digits. This makes the conversion straightforward -- no complex arithmetic needed, just a simple lookup table for each 4-bit group. This is why hex is widely used as a compact representation of binary data in computing.

Can I enter binary with spaces or separators?

Yes! The tool handles binary input flexibly. You can enter bits with spaces for readability (e.g., "1101 0110"), without spaces ("11010110"), or put multiple binary numbers on separate lines. Spaces within a line are stripped before conversion, so "1101 0110" and "11010110" produce the same result.

What is the 0x prefix option?

The "0x" prefix is a common notation used in programming languages like C, Java, JavaScript, and Python to indicate that a number is hexadecimal. For example, 0xFF means 255 in decimal. Enabling this option adds "0x" before each hex value in the output, making it ready to paste into code.

Can I convert hex back to binary?

Yes! Click the Swap button to reverse the conversion. The hex output moves into the input field, and the tool switches to hex-to-binary mode. Each hex digit is expanded into its 4-bit binary equivalent, giving you the full binary representation.

Share: