Pretty sure most everyone, especially Canadians, are aware that ISO country codes express in ISO 3166 oftentimes conflict with standard US State (and Canadian Province) codes.

Lo! Those conflicts and the Alpha-3 codes to avoid this.

(Psst, ISO… can you please asign UK either to Ukraine or the United Kingdom of Great Britain and Northern Ireland? Thanks! UA and GB respecively does no one any favors.)

2021-09-21 Update

The below is a markdown table, the original was in XML (for ’twas the fasion back then… TEN YEARS ago!) converted using the really-quite-handy https://tableconvert.com

At some point, since we’re Hugo-ifying all the things, I should look at use of the /data/ directory and include the data programmatically.

Err. Maybe not. Seems like the dir is supposed to be used for site specific stuffs, and not content per se.




CodeState/ProvinceAbbrev.USPS Alpha codeISO 3166-1 alpha-2 ConflictFlagISO 3166-1 alpha-3
USA-1AlabamaAla.ALAlbania🇦🇱ALB
USA-2AlaskaAK
USA-3ArizonaAriz.AZAzerbaijan🇦🇿AZE
USA-4ArkansasArk.ARArgentina🇦🇷ARG
USA-5CaliforniaCalif.CACanada🇨🇦CAN
USA-6ColoradoColo.COColombia🇨🇴COL
USA-7ConnecticutConn.CT
USA-8DelawareDel.DEGermany🇩🇪DEU
USA-9District of ColumbiaD.C.DC
USA-10FloridaFla.FL
USA-11GeorgiaGa.GAGabon🇬🇦GAB
USA-12HawaiiHI
USA-13IdahoIDIndonesia🇮🇩IDN
USA-14IllinoisIll.ILIsrael🇮🇱ISR
USA-15IndianaInd.INIndia🇮🇳IND
USA-16IowaIA
USA-17KansasKans.KS
USA-18KentuckyKy.KYCayman Islands🇰🇾CYM
USA-19LouisianaLALao PDR (Laos)🇱🇦LAO
USA-20MaineMe.MEMontenegro🇲🇪MNE
USA-21MarylandMd.MDMoldova🇲🇩MDA
USA-22MassachusettsMass.MAMorocco🇲🇦MAR
USA-23MichiganMich.MI
USA-24MinnesotaMinn.MNMongolia🇲🇳MNG
USA-25MississippiMiss.MSMontserrat🇲🇸MSR
USA-26MissouriMo.MOMacau, SAR China🇲🇴MAC
USA-27MontanaMont.MTMalta🇲🇹MLT
USA-28NebraskaNebr.NENiger🇳🇪NER
USA-29NevadaNev.NV
USA-30New HampshireN.H.NH
USA-31New JerseyN.J.NJ
USA-32New MexicoN.Mex.NM
USA-33New YorkN.Y.NY
USA-34North CarolinaN.C.NCNew Caledonia🇫🇷NCL
USA-35North DakotaND
USA-36OhioOH
USA-37OklahomaOkla.OK
USA-38OregonOre.OR
USA-39PennsylvaniaPenn.PAPanama🇵🇦PAN
USA-40Rhode IslandR.I.RI
USA-41South CarolinaS.C.SCSeychelles🇸🇨SYC
USA-42South DakotaSDSudan🇸🇩SDN
USA-43TennesseeTenn.TNTunisia🇹🇳TUN
USA-44TexasTex.TX
USA-45UtahUT
USA-46VermontVt.VT
USA-47VirginiaVa.VAVatican City🇻🇦VAT
USA-48WashingtonWash.WA
USA-49West VirginiaW.Va.WV
USA-50WisconsinWis.WI
USA-51WyomingWyo.WY
CAN-1AlbertaAB
CAN-2British ColumbiaBC
CAN-3ManitobaMB
CAN-4New BrunswickNB
CAN-5Newfoundland and LabradorNLNetherlands🇳🇱NLD
CAN-6Northwest TerritoriesNT
CAN-7Nova ScotiaNS
CAN-8NunavitNUNiue🇳🇺NIU
CAN-9OntarioON
CAN-10Prince Edward IslandPEPeru🇵🇪PER
CAN-11QuebécQC
CAN-12SaskatchewanSKSlovakia🇸🇰SVK
CAN-13YukonYTMayotte🇫🇷MYT