Free Embeddable Currency Converter Widget
Add a free currency converter to any website with one line of code. No API key required — official ECB reference rates keyless, or real-time mid-market rates across 150+ currencies with a free key.
Drop a clean currency converter onto your site in seconds, powered by the AllRatesToday API.
Try it live
Embed it (JavaScript, recommended)
Paste this where you want the converter to appear. It renders directly into your page and adapts to your layout.
<!-- AllRatesToday currency converter (no API key needed) -->
<div class="art-currency-widget" data-base="USD" data-target="EUR"></div>
<a href="https://allratestoday.com">Powered by AllRatesToday</a>
<script async src="https://allratestoday.com/widget.js"></script> Or embed via iframe
No JavaScript needed — works on any CMS, including ones that strip scripts.
<iframe
src="https://allratestoday.com/embed/converter?base=USD&target=EUR&theme=light"
width="400" height="320" frameborder="0" loading="lazy"
title="Currency converter by AllRatesToday"></iframe> Customization
Set these data- attributes on the widget <div> (or as query params on the iframe URL):
| Attribute | Default | Description |
|---|---|---|
data-api-key | — | Optional. Free API key for real-time mid-market rates, 150+ currencies, dedicated quota + dashboard stats (key= on the iframe URL) |
data-base | USD | Starting "from" currency (ISO 4217) |
data-target | EUR | Starting "to" currency (ISO 4217) |
data-amount | 1 | Starting amount |
data-theme | light | light or dark |
License & attribution
The widget is free under the MIT license. The "Powered by AllRatesToday" link must remain visible on keyless embeds — it is how we keep the rate data free for everyone. Building something custom? Use the open central-bank endpoint, read the API docs, or grab a free API key.