Italian comuni dataset (CSV, JSON)
Cleaned comuni, historic comuni and Z codes, free to reuse with credit.
Last updated 24 Nov 2026
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).
| Dataset | Rows | Version | Download |
|---|---|---|---|
| Current comuni | 7,894 | 2026-11-24 | CSV · JSON |
| Historic (ceased) comuni | 11,442 | 2026-11-24 | CSV · JSON |
| Foreign states (Z codes) | 209 | 2026-11-24 | CSV · JSON |
Columns
Current comuni
| Column | Meaning |
|---|---|
istat | 6-digit ISTAT code (province + progressive), text, keep leading zeros |
catastale | Codice catastale (Belfiore), 4 characters, used in the codice fiscale |
name | Official comune name |
province_code | 2-letter province code |
province_name | Province name |
region_code | 2-digit ISTAT region code |
region_name | Region name |
region_slug | Region slug used in our URLs |
capoluogo | true if provincial capital |
slug | Comune slug used in our URLs |
valid_from | Start date of the current record (YYYY-MM-DD) |
Historic (ceased) comuni
| Column | Meaning |
|---|---|
catastale | Codice catastale of the ceased comune |
istat | ISTAT code at the time |
name | Name at the time, title-cased |
province_code | Province code at the time |
valid_from | Start of validity (YYYY-MM-DD) |
valid_to | End of validity (YYYY-MM-DD) |
Foreign states (Z codes)
| Column | Meaning |
|---|---|
code | Z code used as the birthplace in the codice fiscale |
name_it | State name in Italian (ANPR) |
name_en | State name in English |
iso3 | ISO 3166-1 alpha-3 code |
valid_from | Start of validity (YYYY-MM-DD) |
valid_to | End 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 file | Publisher | Downloaded | SHA-256 |
|---|---|---|---|
| istat/Elenco-comuni-italiani.csv | ISTAT | 2026-11-24 | 57eaf945182fc64fa05f80f1a5fb2a84cff55ebde2af6e3947a731776e7809e0 |
| anpr/ANPR_archivio_comuni.csv | Ministero dell'Interno – ANPR | 2026-11-24 | 2a83f63414e43eae4ceba69b3c752d41fe8d091ff5a793fed3a5733041535530 |
| anpr/Legenda-ANPR-archivio-comuni.txt | Ministero dell'Interno – ANPR | 2026-11-24 | 108fe679a2a0be59aed4dbdfbd8b1bc7f8a2368deb2d9d65cce0a1993223657e |
| anpr/tabella_2_statiesteri.xlsx | Ministero dell'Interno – ANPR | 2026-11-24 | 9a1843f89ad6a0f6809bee93150c2c8f4a1d92130eddfdd03657b270614b4ed6 |
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