BCD to Hex Converter
Convert Binary Coded Decimal (BCD) to hexadecimal online. Each 4-bit group represents a decimal digit 0-9.
Paste your BCD — 4-bit groups split by spaces or one number per line — and get hex back as you type. Each nibble maps to a decimal digit (0-9), the digits stitch into a full number, then that number flips to hexadecimal. And everything runs in your browser. Nothing gets uploaded.
How to Use
Enter BCD values in the left panel. You can enter multiple 4-bit BCD groups separated by spaces, or one BCD number per line for batch conversion.
Choose options -- select uppercase or lowercase hex output and whether to add a 0x prefix.
Click Convert or leave Live mode enabled to see hex output instantly as you type.
Copy or Download the result. Each line of BCD input produces a corresponding hex value in the output.
Frequently Asked Questions
What is BCD (Binary Coded Decimal)?
BCD is a way to encode decimal numbers in binary where each decimal digit (0-9) is represented by a fixed 4-bit binary pattern. For example, the decimal number 42 is represented as 0100 0010 in BCD -- "0100" for 4 and "0010" for 2. Unlike standard binary, BCD never uses the bit patterns 1010 through 1111 (10-15) since those don't correspond to valid decimal digits.
How does BCD to hex conversion work?
The tool first reads each 4-bit BCD group and interprets it as a decimal digit (0-9). These digits are combined into a full decimal number. That decimal number is then converted to hexadecimal. For example, BCD "0100 0010" represents decimal 42, which converts to hex "2A". If BCD values span multiple lines, each line is converted independently.
What happens if a BCD group is invalid?
Valid BCD groups only represent decimal digits 0-9, meaning only binary patterns 0000 through 1001 are allowed. If you enter a 4-bit group like 1010, 1011, 1100, 1101, 1110, or 1111 (representing 10-15), the tool will flag it as an invalid BCD value since these patterns have no meaning in BCD encoding.
Can I enter multiple BCD numbers at once?
Yes! You can enter one BCD number per line for batch conversion. Each line will be converted independently. Within a line, separate 4-bit groups with spaces for readability (e.g., "0001 0010 0011" represents decimal 123). You can also enter the bits without spaces (e.g., "000100100011").
What is the difference between BCD and standard binary?
In standard binary, 42 is represented as 101010 (a single 6-bit value). In BCD, 42 is represented as 0100 0010 (two 4-bit groups, one for each digit). BCD is less compact but makes it easier to display and work with individual decimal digits, which is why it's commonly used in digital clocks, calculators, and financial systems.