Countries API - CountriesDB

Portugal

ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Portugal. Use them in forms, validation, and CountriesDB integrations.

About Portugal codes

Need Portugal (PT) for a checkout form, shipping zone, or backend validation? This page summarizes the ISO 3166-1 country codes and official subdivisions developers use with CountriesDB.

This guide lists 20 official ISO 3166-2 subdivisions for Portugal. These are the same codes CountriesDB serves through widgets and the Backend Data API.

For production, use the CountriesDB country/subdivision widget or fetch Portugal from the Data API and validate codes server-side instead of copying values from this page.

ISO codes

  • Alpha-2PT
  • Alpha-3PRT
  • Numeric620
  • Independenttrue
  • StatusOfficially assigned

Official subdivisions (20)

Official ISO 3166-2 codes for Portugal. Use these values in region/state selects and server-side validation, not informal or marketing region names.

CodeNameType
PT-01Aveirodistrict
PT-02Bejadistrict
PT-03Bragadistrict
PT-04Bragançadistrict
PT-05Castelo Brancodistrict
PT-06Coimbradistrict
PT-07Évoradistrict
PT-08Farodistrict
PT-09Guardadistrict
PT-10Leiriadistrict
PT-11Lisboadistrict
PT-12Portalegredistrict
PT-13Portodistrict
PT-30Região Autónoma da Madeiraautonomous region
PT-20Região Autónoma dos Açoresautonomous region
PT-14Santarémdistrict
PT-15Setúbaldistrict
PT-16Viana do Castelodistrict
PT-17Vila Realdistrict
PT-18Viseudistrict

Frequently asked questions

What is the ISO 3166-1 code for Portugal?
Portugal uses ISO 3166-1 alpha-2 PT, alpha-3 PRT, and numeric 620. These codes show up in forms, shipping, banking, and APIs.
How many official ISO 3166-2 subdivisions does Portugal have?
CountriesDB lists 20 official ISO 3166-2 subdivisions for Portugal (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
How do I use Portugal country and subdivision data in a form?
Use the CountriesDB widget or Data API to fill country and subdivision selects for Portugal, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.

Use Portugal in your app

Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Portugal (PT) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.