Skip to contentRedact PII for your data. Get a quote

Coverage · Italy

Italian codice fiscale detection and redaction

OpenAnonymizer finds the Italian codice fiscale 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
Italy IT
Format
codice fiscale
Placeholder
IT_CODICE_FISCALE1Each distinct value gets its own number: IT_CODICE_FISCALE_1, IT_CODICE_FISCALE_2, and so on.
How it is confirmed
ChecksumOfficial label and checksum
Used for
Identifying people in Italy for tax, health care (it is on the tessera sanitaria), contracts and public services.

About the codice fiscale

The code is issued by the Agenzia delle Entrate.

For a person it is 16 letters and digits: three from the surname, three from the first name, the year, a letter for the month, the day of birth (plus 40 for women), a four-character code for the place of birth, and a check letter.

ExampleThe engine's real output for this input, in Fast mode (the default). The number is a test value.
In
Codice fiscale: XXXXXX80A01H501C
Out
Codice fiscale: IT_CODICE_FISCALE1

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

The same country, or the same kind of number elsewhere.