Skip to contentRedact PII for your data. Get a quote

Coverage · Switzerland

Swiss AHV / AVS number detection and redaction

OpenAnonymizer finds the Swiss AHV 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
Switzerland CH
Format
AHV numberAHV-Nummer / numéro AVS
Placeholder
CH_AHV1Each distinct value gets its own number: CH_AHV_1, CH_AHV_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying people in Swiss social insurance (old-age and survivors’ insurance), and in health insurance and some other public records.

About the AHV number

The number is 13 digits, written 756.XXXX.XXXX.XX. It starts with 756, the country code for Switzerland, and ends in an EAN-13 check digit.

Since 2008 the number carries no personal information.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
AHV-Nr.: 756.1234.5678.97
Out
AHV-Nr.: CH_AHV1

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