Official exchange rates in Excel and CSV
A lot of finance work still happens in spreadsheets. Copying rates from a central bank's website by hand is slow and error-prone, especially when the bank publishes a PDF or an awkward HTML table.
Download a table as a file
Every rate endpoint accepts format=csv or format=xlsx. The CSV is UTF-8 with a byte-order mark so Excel opens accents and currency symbols correctly; the XLSX has typed dates and numbers.
curl -H "Authorization: Bearer $ALLRATES_KEY" -o ecb.xlsx "https://allratestoday.com/api/v1/central-bank/ecb/latest?format=xlsx"
Refreshable query in Excel
- Data → Get Data → From Web.
- Choose Advanced, paste the CSV URL, and add a header
Authorizationwith the valueBearerfollowed by your key. - Load the table, then set Refresh every N minutes or Refresh on open.
Google Sheets
Sheets cannot send headers from IMPORTDATA, so use a short Apps Script with UrlFetchApp, or the open-source Google Sheets functions.
Step-by-step guides: download central bank rates to Excel or CSV and JSON and CSV output.