Currency converter
Convert an amount between supported currencies and see the reference exchange rate and its date. Choose the From and To currencies by their three-letter codes, then swap them to reverse the conversion.
How the converted amount is calculated
Multiply the source amount by the rate for the selected pair. For an illustrative rate of 0.90 EUR per USD, 100 USD would become 90 EUR. This example explains the arithmetic, not today's rate.
The reverse pair has different units: USD-to-EUR is EUR per USD, while EUR-to-USD is USD per EUR. Currency symbols can also be shared. USD, CAD, and AUD identify different dollars.
Why the rate date matters
The converter uses daily reference rates. Weekends and nonpublication days can leave the previous available date in place. A bank, card issuer, or exchange service may apply another rate and fees, so its final charge can differ from this reference conversion.
Build a currency converter
Request the rate for the selected direction, multiply the entered amount, and display the rate date. Reuse the same rate while only the amount changes.
- Choose three-letter From and To currency codes.
- Use 1 for the same currency, otherwise fetch the pair.
- Multiply by the unrounded rate and round only for display.
Installation steps are included in each example. Set PARSEAPI_KEY on your server. Swift and Kotlin use an app key restricted to your app ID.
// npm install @parseapi/sdk@1.14.0
import { parseAPI } from '@parseapi/sdk';
// Set PARSEAPI_KEY on your server.
const parse = parseAPI();
const amount = 100, base = 'USD', quote = 'EUR';
if (!Number.isFinite(amount)) throw new Error('Enter a finite amount.');
const row = base === quote ? { base, quote, rate: 1, date: null }
: await parse.currency.rate(base, quote);
if (!Number.isFinite(row.rate) || row.rate <= 0) throw new Error('Rate unavailable.');
console.log({ amount, base, quote, rate: row.rate, date: row.date,
converted: amount * row.rate,
display: new Intl.NumberFormat('en-US', { style: 'currency', currency: quote })
.format(amount * row.rate) });
// Reference rates do not include a bank's spread or transaction fees.
How do I convert one currency into another?
Choose the From and To currency codes and enter the amount. The result multiplies that amount by the reference rate for the selected direction.
Why is the exchange rate dated yesterday or earlier?
Reference rates are published on a schedule. Weekends and nonpublication days can leave the latest available rate dated earlier than today.
Will my bank use this exact conversion?
A bank, card issuer, or exchange service can add a spread or fees and use a different pricing time. This page displays a reference conversion, not a guaranteed transaction quote.
Does rounding the rate change the total?
It can. Calculate with the full returned rate and round the final displayed amount. The short rate shown for reading may have fewer digits than the calculation uses.
What happens when both currencies are the same?
The rate is 1, so the amount stays unchanged and no exchange-rate lookup is needed.
Why is a currency missing?
The selectors contain supported reference-rate currencies. Unsupported pairs are not assigned an estimated rate.