Skip to contentRedact PII for your data. Get a quote

Coverage · Germany

German ID card number detection and redaction

OpenAnonymizer finds the German Personalausweis number in text and replaces it with a placeholder. The number is confirmed by its official label and its check digits are verified. It runs on a CPU, with no GPU and no API calls.

At a glance

Country
Germany DE
Format
Personalausweis numberPersonalausweisnummer
Placeholder
DE_PERSONALAUSWEIS1Each distinct value gets its own number: DE_PERSONALAUSWEIS_1, DE_PERSONALAUSWEIS_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying one German identity card. It changes each time a new card is issued.

About the Personalausweis number

The card number is nine letters and digits. In the machine-readable zone it is followed by a check digit.

The official specimen card, issued to the fictional Erika Mustermann, has the number T22000129.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
Personalausweis: T220001293
Out
Personalausweis: DE_PERSONALAUSWEIS1

How OpenAnonymizer handles it

Checked by checksum. The format's check digits are verified, so most mistyped or made-up numbers fail. A number with the right label and shape is still masked when its checksum fails, so a typo doesn't let it through.

  • It runs locally on a CPU, with no GPU and no API calls, so the text never leaves your machine.
  • Every package ships every detector, so this format is covered in each of them.
  • It covers 34 languages.
How a match is decided