Math & Number Utilities100% Client-Side

Convert Hexadecimal to Binary

Paste a hexadecimal whole number to read the same value in binary. The converter accepts letters A through F in either case and prints an unpadded bit string. Each hex digit corresponds to four bits when checking the conversion manually. This is useful for inspecting the bit pattern of a fixture written in compact hex notation without needing to expand every digit by hand.

Input
2 chars•1 lines
Output

Reverse tool

Binary to Hexadecimal Converter

Convert a binary whole number into uppercase hexadecimal. Group bits in fours to check the exact base-16 result while preserving the value and sign.

Open Binary to Hexadecimal Converter
Example input
101010
Example output
2A

How to Use the Hexadecimal to Binary Converter Online

  1. 1Paste one whole number written in base 16. Check that its digits belong to that base.
  2. 2Use 0 through 9 and A through F for the source magnitude and keep the optional 0x prefix if it is part of the notation you copied.
  3. 3Read the equivalent binary digits and check any minus sign before copying the result into a fixture.
  4. 4Record both bases with the example. Add any field width, prefix, or spacing separately when the destination requires a particular display.

Input & Output Examples

The result represents the same integer, 42 in base ten, written in base 2.

Input Sample
2A
Expected Output
101010

Leading zeroes in the magnitude are omitted. The result keeps the explicit minus.

Input Sample
-0x0f_A0
Expected Output
-111110100000

Practical Developer Workflows

  • Inspect the bits behind a short hexadecimal test value.
  • Compare the binary spelling of mixed-case hex examples.
  • Check a fixture that uses a 0x prefix and an explicit minus sign.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

The letter A represents decimal ten, which is 1010 in binary. Every hexadecimal digit has a similar four-position group. Combine those groups from left to right when expanding the complete magnitude.

Explore Other Tools

12 suggested tools

View all tools