Skip to Content

🇲🇦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)

CodeNameType
MA-01Tanger-Tétouan-Al HoceïmaRegion
MA-02L'OrientalRegion
MA-03Fès-MeknèsRegion
MA-04Rabat-Salé-KénitraRegion
MA-05Béni Mellal-KhénifraRegion

...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.

Related Countries

Use Morocco data in your project

Get ISO codes, subdivisions, currency, and more with a single npm package.

npm install @koshmoney/countries