WidgetsTool

Currency converter widget

A free converter you can embed in your site

24 Oct 2026 · 1 min read

Paste one iframe into your site to add a free currency converter. Visitors can change the amount and currencies inside the widget, and you need no API key.

Try the widget

Add the converter to your page

Paste the code below into a page that allows iframes, such as a custom HTML or embed block in a page builder. The frame has 100% width, a height of 380 pixels, no border and a maximum width of 420 pixels.

HTML
<iframe src="https://exchangerate.dev/embed/converter?from=USD&to=EUR&amount=100" title="Currency converter" width="100%" height="380" style="border:0;max-width:420px" loading="lazy"></iframe>

Choose the starting settings

Set from and to to three-letter currency codes, and amount to a number. The defaults are USD, EUR and 100. An unlisted currency code falls back to the default; an amount outside the allowed range falls back to 100.

Choose auto, light or dark for theme. The default, auto, follows the visitor's system setting. For lang, use en, ar, es, id, ja, ko, pl, th, tr or zh; the default is en.

parametermeaningdefault
fromSource currency as a three-letter codeUSD
toTarget currency as a three-letter codeEUR
amountStarting amount to convert100
themeTheme, with auto based on the visitor's system settingauto
langLanguage used by the widgeten

Rates and visitor controls

The frame loads a rate once, 15 minutes behind the market, and prints its timestamp in UTC. Reload it for a newer rate. It does not refresh by itself.

Currency lists show codes such as USD and EUR. Visitors can change the amount, select either currency or swap them. These actions run in the browser and make no request.

When to call the API

Use the API for your own interface, live rates on paid plans, history or conversions inside your code. The Free plan has 5,000 requests a month and 10 requests a minute.

Questions

Does the widget need an API key?

No API key is required. The widget does not use or count against your own API key or quota, and any page that allows iframes can embed it.

Can I change the widget's design?

The theme setting supports `auto`, `light` and `dark`. Color changes beyond the theme are not available. Use the API if you need to build your own interface.

What does the attribution link do?

The "Powered by exchangerate.dev" link opens the full converter in a new tab with the same currencies. The widget also displays "Indicative rates, not for settlement." Rates are indicative and are not for settlement or trading.

Can I embed a page for one currency?

A per-currency embed page is not available. Set the starting pair with `from` and `to`; visitors can change either currency or swap them inside the widget.

Keep reading

Get a free API key

The Free plan has 5,000 requests a month and needs no credit card.

Get a free key