Skip to content

What you get

Three tables behind our codice fiscale tools, rebuilt from the official files every time we publish. Each one comes as CSV (UTF-8, comma separated, header row) and JSON (with licence, attribution and source in the wrapper).

DatasetRowsVersionDownload
Current comuni7,8942026-11-24CSV · JSON
Historic (ceased) comuni11,4422026-11-24CSV · JSON
Foreign states (Z codes)2092026-11-24CSV · JSON

Columns

Current comuni

ColumnMeaning
istat6-digit ISTAT code (province + progressive), text, keep leading zeros
catastaleCodice catastale (Belfiore), 4 characters, used in the codice fiscale
nameOfficial comune name
province_code2-letter province code
province_nameProvince name
region_code2-digit ISTAT region code
region_nameRegion name
region_slugRegion slug used in our URLs
capoluogotrue if provincial capital
slugComune slug used in our URLs
valid_fromStart date of the current record (YYYY-MM-DD)

Historic (ceased) comuni

ColumnMeaning
catastaleCodice catastale of the ceased comune
istatISTAT code at the time
nameName at the time, title-cased
province_codeProvince code at the time
valid_fromStart of validity (YYYY-MM-DD)
valid_toEnd of validity (YYYY-MM-DD)

Foreign states (Z codes)

ColumnMeaning
codeZ code used as the birthplace in the codice fiscale
name_itState name in Italian (ANPR)
name_enState name in English
iso3ISO 3166-1 alpha-3 code
valid_fromStart of validity (YYYY-MM-DD)
valid_toEnd of validity; 9999-12-31 = still valid

Foreign states list current states only. Ceased states (old Z codes) are not in the ANPR table and are not included.

Sources and raw files

We keep the untouched downloads and record their SHA-256 so you can check what we started from.

Raw filePublisherDownloadedSHA-256
istat/Elenco-comuni-italiani.csvISTAT2026-11-2457eaf945182fc64fa05f80f1a5fb2a84cff55ebde2af6e3947a731776e7809e0
anpr/ANPR_archivio_comuni.csvMinistero dell'Interno – ANPR2026-11-242a83f63414e43eae4ceba69b3c752d41fe8d091ff5a793fed3a5733041535530
anpr/Legenda-ANPR-archivio-comuni.txtMinistero dell'Interno – ANPR2026-11-24108fe679a2a0be59aed4dbdfbd8b1bc7f8a2368deb2d9d65cce0a1993223657e
anpr/tabella_2_statiesteri.xlsxMinistero dell'Interno – ANPR2026-11-249a1843f89ad6a0f6809bee93150c2c8f4a1d92130eddfdd03657b270614b4ed6

Cleaning steps: the ANPR active set is the base, ISTAT supplies province, region and capoluogo fields, ceased ANPR records become the historic table, names are title-cased. Known differences between the two files are listed in the methodology.

Licence

Both publishers state a Creative Commons Attribution 4.0 (CC BY 4.0) licence on their official legal notes, checked on 2026-11-25: ISTAT (istat.it/note-legali) and the Ministero dell'Interno for the ANPR site (anagrafenazionale.interno.it/note-legali). Our files are derived from those and are offered under the same CC BY 4.0 terms: share and adapt, including commercially, with credit and a note of any changes. Please do not suggest that ISTAT or the Ministero endorses your use.

One caveat: the ANPR legal notes apply to data published on that site, and the download pages of the individual files do not repeat the licence. If you build something where this matters, check the publisher's pages yourself.

Attribution text

Contains data from ISTAT (Elenco dei comuni italiani) and Ministero dell'Interno, ANPR (archivio storico dei comuni, tabelle di decodifica), both CC BY 4.0. Cleaned and merged by Italian tax tools; changes: ANPR active set as the base, names title-cased, fields renamed.

Cite this page

Free to quote with a link back. Pick a format and copy it.

Found a mistake or have a question? Contact us · How we check our numbers