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