Math & Number Utilities100% Client-Side

Convert Hexadecimal to 8421 BCD

Paste a non-negative hexadecimal integer to display its decimal digit codes. The tool interprets the source as base sixteen and writes the exact resulting number as decimal digits before encoding each of them in four bits. This lets you check a fixture that is written in hex but needs separate encoded decimal digits. Leading zeroes in the source hex field do not become decimal padding.

Input
2 chars•1 lines
Output

Reverse tool

BCD to Hexadecimal Converter

Convert unsigned 8421 BCD to uppercase hexadecimal. Decode the decimal digit groups first and copy the exact base-16 value for a compatibility fixture.

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

How to Use the Hexadecimal to 8421 BCD Converter

  1. 1Paste one non-negative whole number written in hexadecimal.
  2. 2Check the decimal value represented by the input if the source uses another base.
  3. 3Read every group of four bits as one digit in that decimal value.
  4. 4Copy the grouped result and compare each decimal position against the expected layout of a fixture.

Input & Output Examples

The magnitude is 42 in decimal, so the displayed result is its bcd representation.

Input Sample
2A
Expected Output
0100 0010

The hex magnitude is decimal 255. The input padding is dropped, and only the three significant decimal digits are encoded.

Input Sample
0x00_fF
Expected Output
0010 0101 0101

Practical Developer Workflows

  • Create a decimal-digit encoding fixture from a compact hex value.
  • Verify how a base-sixteen value is translated before its decimal digits are encoded.
  • Compare an input that includes 0x with an equivalent unprefixed sample.

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

Unsigned 8421 BCD represents decimal digits zero through nine. A hex letter contributes to the source number, then the complete value becomes decimal before encoding. Hexadecimal A therefore gives decimal 10 and two BCD groups.

Explore Other Tools

12 suggested tools

View all tools