Skip to content

Credit and debit card numbers: anonymize them before ChatGPT or sharing

The Credit and debit card numbers (International) are payment card numbers (PAN) of Visa, Mastercard, American Express and others. They turn up in documents people want to share or give to an AI assistant, and they should never go out as they are.

13 to 19 digits, usually 16 in groups of 4; the last is a Luhn check digit.

A payment instrument. It is covered by PCI DSS and must never be shared.

Invoices, receipts, booking confirmations, chargeback and claim documents, support tickets.

Piixie has a dedicated rule for it, in every model including Lite: it matches the format and checks the control digits, so random numbers of the same length aren’t flagged and real ones aren’t missed. The local LLM also reads the context around it.

With Synthesize, a fake of the same kind with correct check digits, consistent everywhere the same number appears. With Redact, a black box or [REDACTED]; with Replace, a placeholder such as [ID_1].

All of it happens on your computer: the document is never uploaded to find the numbers. See why a local LLM.