Mexican Peso (MXN)
The Mexican Peso is the official currency of Mexico.
Currency Details
| Currency Code | MXN |
| Symbol | $ |
| Minor Unit | Centavo (1/100) |
| Country | Mexico |
| Central Bank | Banco de Mexico |
Official MXN 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 Banco de México instead. AllRatesToday serves Banco de México published rates as JSON, with history and a free latest-rates tier.
MXN Exchange Rates at Commercial Banks
The buying and selling rates that these 5 banks post on their own websites, quoted in MXN. Bank rates include the bank's spread, so they differ from the mid-market rate above and from the central bank's rate.
Popular MXN Conversions
Live MXN Exchange Rates
Coins & Banknotes
🪙 Coins
💵 Banknotes
Frequently Asked Questions
MXN Exchange Rate API
Get live Mexican Peso (MXN) exchange rates in your app, spreadsheet or backend with one HTTPS request. The AllRatesToday API returns MXN mid-market rates against 160+ currencies as JSON, converts amounts, serves past dates and date ranges, and also returns the official rate published by Banco de México.
Endpoints for MXN
| What you need | Request |
|---|---|
| Latest MXN/USD rate | GET /api/v1/rates?source=MXN&target=USD |
| MXN against several currencies | GET /api/v1/rates?source=MXN&target=USD,EUR,GBP |
| Convert an amount from MXN | GET /api/v1/rates?source=MXN&target=USD&amount=1000 |
| MXN rate on a past date | GET /api/v1/rates?source=MXN&target=USD&time=2026-06-30 |
| MXN rate history for a date range | GET /api/v1/rates?source=MXN&target=USD&from=2026-01-01&to=2026-06-30 |
| MXN rates as CSV, XML or Excel | GET /api/v1/rates?source=MXN&target=USD,EUR,GBP&format=csv |
| Official Banco de México rate | GET /api/v1/central-bank/banxico/latest |
Send your key as Authorization: Bearer YOUR_API_KEY.
Example request
cURL
curl "https://allratestoday.com/api/v1/rates?source=MXN&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('MXN', 'USD');
console.log(rate);Python (pip install allratestoday)
from allratestoday import AllRatesToday
client = AllRatesToday(api_key="YOUR_API_KEY")
rate = client.get_rate("MXN", "USD")
print(rate)Example response
[
{
"rate": 0.0000,
"source": "MXN",
"target": "USD",
"time": "2026-11-01T12:00:00Z"
}
]The rate value above is filled in from the live MXN/USD rate when the page loads.
What developers build with MXN rates
- Prices in MXN: show product prices, subscriptions or quotes in Mexican Peso for visitors in Mexico.
- Checkout and invoicing: convert order totals to or from MXN at the current rate and store the rate used.
- Accounting and reporting: pull daily MXN rates for month-end revaluation, using the official Banco de México rate where the rules require it.
- Dashboards and spreadsheets: download MXN history as CSV or Excel, or sync rates into an ERP with the accounting integrations.
- AI agents: give an assistant live MXN rates through the hosted MCP server.
Browse Other Currencies
Packages and open data
- JavaScript: @allratestoday/sdk on npm — live MXN rates, conversion and official central-bank tables.
- Python: allratestoday on PyPI · PHP: allratestoday/sdk on Packagist · Go: allratestoday-go · Rust: allratestoday on crates.io.
- Banco de México rates for MXN: banxico-exchange-rate on npm · source on GitHub · docs.
- Mexico DOF tax equivalence table (Banxico) rates for MXN: on npm · source on GitHub · docs.
- Open dataset of official central-bank rates, refreshed daily: Hugging Face · Kaggle · GitHub (JSON and CSV).
- AI agents: hosted MCP server, @allratestoday/mcp-server on npm and the OpenClaw skill.
- WordPress: currency converter plugin on WordPress.org.
- All code: AllRates-Today on GitHub · SDK docs.