🇲🇦Morocco (MA)
ISO 3166 country code - Africa / Northern Africa
Alpha-2MA
Alpha-3MAR
Numeric504
Currency
د.م. MAD - Moroccan Dirham
Code Example
import { country } from '@koshmoney/countries';
// Look up Morocco by alpha-2 code
const ma = country.getCountry('MA');
// => { name: 'Morocco', alpha2: 'MA', alpha3: 'MAR', numeric: '504' }
// Look up by alpha-3 code
country.getCountryByAlpha3('MAR');
// Look up by numeric code
country.getCountryByNumeric('504');Subdivisions (75)
| Code | Name | Type |
|---|---|---|
| MA-01 | Tanger-Tétouan-Al Hoceïma | Region |
| MA-02 | L'Oriental | Region |
| MA-03 | Fès-Meknès | Region |
| MA-04 | Rabat-Salé-Kénitra | Region |
| MA-05 | Béni Mellal-Khénifra | Region |
...and 70 more. View all 75 subdivisions →
FAQ
- What is the ISO code for Morocco?
- Morocco has three ISO 3166-1 codes: Alpha-2 "MA", Alpha-3 "MAR", and Numeric "504".
- How many subdivisions does Morocco have?
- Morocco has 75 subdivisions defined in ISO 3166-2, including Tanger-Tétouan-Al Hoceïma, L'Oriental, Fès-Meknès, and more.
- How to look up Morocco in JavaScript?
- Install @koshmoney/countries via npm, then use country.getCountry('MA') to get all ISO codes, or subdivision.getByCountry('MA') for subdivisions.
Use Morocco data in your project
Get ISO codes, subdivisions, currency, and more with a single npm package.
npm install @koshmoney/countries