Packed BCD Encoder & Decoder
Encode decimal digit strings as packed 8421 BCD or decode BCD nibbles with leading-zero preservation and invalid-digit checks.
Ready. Explore the example or use the input controls to begin.
Scope and practical limits
Up to 256 decimal digits per item, 500 items. Unsigned packed 8421 BCD only; no sign nibble, decimal point, DPD or ASCII-code conversion. Hex decoding accepts complete nibbles.
The tool processes your work in the browser. The website’s advertising and analytics follow its privacy and consent settings. Projects are not saved automatically. Media workspaces export their files directly rather than storing them in project JSON.
Using Packed BCD Encoder & Decoder
Encode decimal digit strings as packed 8421 BCD or decode BCD nibbles with leading-zero preservation and invalid-digit checks.
- Start with the example and choose the declared input representation and any bit width.
- Change the operation or format, then inspect the precise result and validation messages.
- Copy the output or download text, JSON or a CSV audit. Save a project to retain editable inputs.
Example
00123 becomes 0000 0000 0001 0010 0011. A nibble of 1010 is rejected.
Questions & answers
What representation does this tool use?
Up to 256 decimal digits per item, 500 items. Unsigned packed 8421 BCD only; no sign nibble, decimal point, DPD or ASCII-code conversion. Hex decoding accepts complete nibbles.
What are the limits?
Up to 256 decimal digits per item, 500 items. Unsigned packed 8421 BCD only; no sign nibble, decimal point, DPD or ASCII-code conversion. Hex decoding accepts complete nibbles.
Does it save my input automatically?
No. Processing runs in your browser. Download your result or saved project before leaving. Site advertising and analytics follow the website consent and privacy settings.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
