Skip to content

Swiss AHV/AVS number: anonymize it before ChatGPT or sharing

The Swiss AHV/AVS number (Switzerland) is the social security number (AHV-Nummer, numéro AVS) of everyone insured in Switzerland. It turns up in documents people want to share or give to an AI assistant, and it should never go out as it is.

13 digits starting with 756, written 756.1234.5678.97; the last is a check digit (EAN-13).

Nothing about the person since 2008 (the digits are random), but it is unique and used across social insurance, health insurance and tax.

Payslips (Lohnausweis), the AHV card, health insurance cards, pension and tax documents.

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.

With Synthesize, a fake with the same shape and separators, 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.