BCD Encoder / Decoder

Pack digits into binary-coded decimal or unpack BCD bytes back into digits.

  • 100% Free
  • No account required
  • Runs in your browser
  • No data is uploaded
Use masked test data only. PANs, Track 2, PIN blocks and production keys must never be pasted here.
Local saving paused

Private to this browser, not a cloud backup. Saves expire 7 days after the last save. Avoid saving sensitive data on shared devices.

Local saving is disabled for this sensitive tool. Use sanitized test data and clear the editor when finished.

Saved BCD Encoder / Decoder workspaces

Saved only on this device. Clearing browser data removes your workspaces. Expired saves are removed when this app next checks storage.

No saved workspaces for this tool yet.

Text to Packed BCD

Input

Paste or edit your digits or BCD, then click “Run tool”.

Type, paste or drop a file
Text
Ln 1, Col 1Spaces: 2UTF-810 bytes

Output

Packed BCD (read-only).

Read-only
Text
Ln 1, Col 1Spaces: 2UTF-80 bytes
Ready when you arePaste your input, then press Run tool or ⌘ ↵

Using the BCD Encoder / Decoder

Overview

Pack digits into binary-coded decimal or unpack BCD bytes back into digits.

Pack digits into binary-coded decimal the way payment messages expect, or unpack BCD bytes from a trace.

How to use it

  1. Paste or type your Text into Input, drop a file onto it, or press Example to load a sample.
  2. Choose the settings in the Mode bar under the editors.
  3. Press Run tool, or ⌘ ↵ from anywhere on the page.
  4. Read the result in Output, then copy or download it. The Result tab has size, line counts and next steps.

Input

Digits or BCD.

Settings

  • Mode — Pack (F filler), Pack (leading 0), Unpack

Output

Packed BCD.

  • Packs two digits per byte
  • F filler for odd counts
  • Leading-zero option
  • Unpacks back to digits

Tips

  • Use documented test numbers such as 4111 1111 1111 1111.
  • Mask the PAN before pasting anything from a log or a trace.
  • Fields are parsed positionally, so keep the layout of the original message.

Keyboard shortcuts

⌘ ↵
Run the tool
⌘ K
Search every tool
/
Filter the sidebar