Convert Decimal to Binary Coded Decimal
Convert non-negative decimal integers to packed 8421 Binary Coded Decimal in your browser.
Embed this tool
Copy the iframe code below to add this tool to your site. The embed loads Convert Decimal to Binary Coded Decimal without ads.
Embed code copied to clipboard.
Tool workspace
Encodes each decimal digit as a 4-bit 8421 BCD nibble (space-separated; max 64 digits). Nothing you paste is uploaded.
How it works
The tool encodes each decimal digit as a 4-bit 8421 Binary Coded Decimal (BCD) nibble, separated by spaces for readability (for example 42 becomes 0100 0010). Results are capped at 64 digits (256 BCD bits)—aligned with sibling binary tools. Negatives, fractions, and oversize values are rejected with a clear message.
Everything runs in your browser. Nothing you paste is uploaded.
Examples
- 0 → 0000
- 42 → 0100 0010
- 1995 → 0001 1001 1001 0101
- 255 → 0010 0101 0101
Privacy
FAQ
Is my number uploaded?
No. Conversion runs entirely in your browser. We do not log or store what you paste.
What is Binary Coded Decimal?
BCD stores each decimal digit as its own 4-bit binary nibble using 8421 weighting. It is not the same as converting the whole number to binary.
Why is there a 64-digit limit?
Sixty-four digits produce 256 BCD bits, matching the bit cap used by sibling binary tools and keeping results practical for browsers.
Do I need an account?
No. All published tools work for guests without login.