Moroccan Dirham (MAD)

The Moroccan Dirham is the official currency of Morocco.

Currency Details

Currency Code MAD
Symbol MAD
Minor Unit Centime (1/100)
Countries Morocco, Western Sahara
Central Bank Bank Al-Maghrib

Official MAD Central Bank Rates

Live rates on this page are mid-market rates. For tax filings, customs valuations, audits, and compliant invoicing you often need the official reference rate published by Bank Al-Maghrib instead. AllRatesToday serves Bank Al-Maghrib published rates as JSON, with history and a free latest-rates tier.

Bank Al-Maghrib official rates → All central banks →

Popular MAD Conversions

Live MAD Exchange Rates

Loading live rates...

Coins & Banknotes

🪙 Coins

5 centimes10 centimes20 centimes50 centimes1 MAD2 MAD5 MAD10 MAD

💵 Banknotes

20 MAD50 MAD100 MAD200 MAD

Frequently Asked Questions

The ISO 4217 currency code for the Moroccan Dirham is MAD. This three-letter code is used internationally in banking, finance, and commerce to identify the Moroccan Dirham.
The Moroccan Dirham (MAD) is the official currency of Morocco, Western Sahara. It is managed by the Bank Al-Maghrib.
The symbol for the Moroccan Dirham is MAD. The minor unit is the Centime (1/100).
The Moroccan Dirham (MAD) is managed by the Bank Al-Maghrib. The central bank is responsible for monetary policy, issuing banknotes and coins, and maintaining the stability of the currency.
Yes. The AllRatesToday API returns live MAD mid-market rates against 160+ currencies as JSON: call GET /api/v1/rates?source=MAD&target=USD with your API key. The same endpoint converts amounts, returns a past date or a date range, and can answer in CSV, XML or Excel. A free API key is available.
Yes. Add time=YYYY-MM-DD for a single past date, or from= and to= for a daily series, to the /api/v1/rates request for MAD. Charts for the last 7 days to 1 year are also available via /api/historical-rates with a period parameter.
Yes. GET /api/v1/central-bank/bam/latest returns the rates as published by Bank Al-Maghrib, with history for past dates. Use it when an invoice, tax return, customs declaration or audit requires the official rate rather than a market rate.

MAD Exchange Rate API

Get live Moroccan Dirham (MAD) exchange rates in your app, spreadsheet or backend with one HTTPS request. The AllRatesToday API returns MAD mid-market rates against 160+ currencies as JSON, converts amounts, serves past dates and date ranges, and also returns the official rate published by Bank Al-Maghrib.

Endpoints for MAD

What you needRequest
Latest MAD/USD rateGET /api/v1/rates?source=MAD&target=USD
MAD against several currenciesGET /api/v1/rates?source=MAD&target=USD,EUR,GBP
Convert an amount from MADGET /api/v1/rates?source=MAD&target=USD&amount=1000
MAD rate on a past dateGET /api/v1/rates?source=MAD&target=USD&time=2026-06-30
MAD rate history for a date rangeGET /api/v1/rates?source=MAD&target=USD&from=2026-01-01&to=2026-06-30
MAD rates as CSV, XML or ExcelGET /api/v1/rates?source=MAD&target=USD,EUR,GBP&format=csv
Official Bank Al-Maghrib rateGET /api/v1/central-bank/bam/latest

Send your key as Authorization: Bearer YOUR_API_KEY.

Example request

cURL

curl "https://allratestoday.com/api/v1/rates?source=MAD&target=USD" \
  -H "Authorization: Bearer YOUR_API_KEY"

JavaScript (npm install @allratestoday/sdk)

import AllRatesToday from '@allratestoday/sdk';

const client = new AllRatesToday('YOUR_API_KEY');
const rate = await client.getRate('MAD', 'USD');
console.log(rate);

Python (pip install allratestoday)

from allratestoday import AllRatesToday

client = AllRatesToday(api_key="YOUR_API_KEY")
rate = client.get_rate("MAD", "USD")
print(rate)

Example response

[
  {
    "rate": 0.0000,
    "source": "MAD",
    "target": "USD",
    "time": "2026-11-01T12:00:00Z"
  }
]

The rate value above is filled in from the live MAD/USD rate when the page loads.

What developers build with MAD rates

Browse Other Currencies

Packages and open data