Skip to main content

BCD Code

Convert decimal digits to and from Binary-Coded Decimal.

Binary-Coded Decimal stores each decimal digit as one four-bit binary group. For example, 5 becomes 0101, so 28913 becomes 0010 1000 1001 0001 0011. Decode accepts spaced or continuous bit strings, one value per line.