PT
Portugal
ISO 3166 Country Code
Europe
Country Codes
Alpha-2 Code (ISO 3166-1 alpha-2)
PT
Alpha-3 Code (ISO 3166-1 alpha-3)
PRT
Numeric Code (ISO 3166-1 numeric)
620
Common Usage
HTML lang attribute
<html lang="pt">
URL locale parameter
https://example.com/pt/
JavaScript/TypeScript
const country = "PT"; const countryName = "Portugal";
API Response (JSON)
{
"country": "PT",
"countryName": "Portugal",
"alpha3": "PRT",
"numeric": "620"
}ISO 3166 Standard
ISO 3166 is the international standard for country codes. The alpha-2 code (PT) is the most commonly used format for domain names, language tags, and internationalization. The alpha-3 code (PRT) is used in shipping, banking, and official documents. The numeric code (620) is language-independent and useful for systems with character encoding limitations.