Math & Number Utilities100% Client-Side

Convert 8421 BCD to Hexadecimal

Paste an unsigned BCD value to convert the underlying decimal number to hexadecimal. Each original group first yields a decimal digit. The decimal magnitude is then expressed in base sixteen using uppercase letters. This is useful when inspecting a decimal-coded field alongside a hex reference for the same value. Compare the exact input groups before reading the output as an integer.

Input
9 chars•1 lines
Output

Reverse tool

Hexadecimal to 8421 BCD Converter

Convert a non-negative hexadecimal integer to 8421 BCD. Get one four-bit group for each digit in its decimal value and compare the result with a fixture.

Open Hexadecimal to 8421 BCD Converter
Example input
2A
Example output
0100 0010

How to Use the BCD to Hexadecimal Converter Online

  1. 1Paste one unsigned BCD field as complete groups of four bits.
  2. 2Read each group as one decimal digit, and check that no group exceeds nine.
  3. 3Review the resulting hexadecimal number and compare it with the intended decoded value.
  4. 4Copy the output with the reference field or retain the original BCD separately if its written width is important.

Input & Output Examples

The BCD groups decode to the digits 4 and 2, and that decimal value is written in hexadecimal.

Input Sample
0100 0010
Expected Output
2A

The three groups encode decimal 255, so the exact uppercase hex magnitude is FF.

Input Sample
0010 0101 0101
Expected Output
FF

Practical Developer Workflows

  • Compare an input field encoded as decimal digits with its hexadecimal equivalent.
  • Check a BCD value containing a zero digit between other digits.
  • Copy the expected uppercase hex value into a test that uses the same numeric magnitude.

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 BCD groups describe the digits of decimal 42. That decimal whole number is 2A in hexadecimal. Writing the original groups as if they were binary nibbles would describe a different magnitude.

Explore Other Tools

12 suggested tools

View all tools