---
title: "Free Embeddable Currency Converter Widget"
description: "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."
canonical: https://allratestoday.com/widget/
source: AllRatesToday (https://allratestoday.com/) — Markdown mirror of the page above; index of all pages at https://allratestoday.com/llms.txt
generated: 2026-11-23T20:12:36.802Z
---

# 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.

By [Madhushan](https://allratestoday.com/authors/madhushan/), Founder & Lead Developer

Drop a clean currency converter onto your site in seconds, powered by the [AllRatesToday API](https://allratestoday.com/).

  **No API key, no signup.** Paste the snippet and it works — keyless embeds use our [open central-bank endpoint](https://allratestoday.com/official-rates-widget/) (official ECB reference rates, updated daily, 30+ major currencies). Just keep the "Exchange rates by AllRatesToday" attribution link visible. Want real-time mid-market rates across 150+ currencies, dedicated quota and usage stats? Add a [free API key](https://allratestoday.com/register).

## 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">Exchange rates 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>
```

## Using WordPress?

Install the free [AllRatesToday Currency Converter plugin](https://allratestoday.com/wordpress/) from [WordPress.org](https://wordpress.org/plugins/allratestoday-currency-converter/) and add the converter as a block or a shortcode, with no code to paste.

## 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 "Exchange rates 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](https://allratestoday.com/official-rates-widget/), [read the API docs](https://allratestoday.com/docs), or [grab a free API key](https://allratestoday.com/register).
