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