BCD Encoder/Decoder
8421 BCD (Binary-Coded Decimal) to decimal conversion tool.
Every 4 bits represents one decimal digit.
Packed BCD: each byte contains two decimal digits.
Usage
What is BCD
BCD (Binary-Coded Decimal) uses 4 binary bits to represent 1 decimal digit (0-9), with the 8421 code being the most common. Compared to pure binary, BCD is easier for decimal display and I/O processing, but less space-efficient.
Three Representation Forms
Decimal (e.g. 123), BCD Binary (e.g. 0001 0010 0011), Packed BCD Hex (e.g. 12 34) three forms sync in real-time; modifying any field auto-updates the others.
Usage Limits
BCD only supports positive integers (0-9), not negative numbers or decimals; binary input must be a multiple of 4 bits; hex input only accepts digits 0-9 (no A-F).