Skip to content

Danish CPR number: anonymize it before ChatGPT or sharing

The Danish CPR number (Denmark) is the civil registration number (personnummer) of everyone registered in Denmark. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

Date of birth (DDMMYY), a hyphen and 4 digits (150385-1234); the last digit is odd for men and even for women.

Date of birth and sex, straight from the number.

Payslips, employment and tenancy contracts, health records, school documents, municipal letters.

Piixie’s local LLM models (Small, Medium, Large) and Piixie Cloud find it from its context and label. Lite (rules plus a compact model) has no dedicated rule for it yet: for documents full of these numbers, choose an LLM model, and check the result in the editor. In spreadsheets, a column of these numbers is recognized by its header and replaced with valid fakes.

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.