Currency Converter.

Live exchange rates for 30+ currencies with a 30-day trend sparkline.

RUN
—

 

Rates from Frankfurter (ECB). Converted locally — fetch again on currency change.

status IDLE

how it works

  1. Pick an amount and two currencies — THB and USD stay at the top for Thailand.
  2. The converter fetches live rates from api.frankfurter.app (ECB) and recomputes as you type.
  3. Swap direction with the button or copy the result.
  4. The sparkline pulls the last 30 days (YYYY-MM-DD..YYYY-MM-DD?from=X&to=Y) and draws a 280×64 accent polyline.

resilient by design

Currency names are cached in localStorage with the fetch date, and the last good rate stays on screen if you go offline — you'll see an inline rates unavailable — check connection instead of a blank. Conversions are plain arithmetic in the tab: THB-first ordering is enforced client-side so the Thai audience never hunts for baht.

The trend is deliberately tiny and unobtrusive: a single SVG polyline with stroke="var(--accent)"and vector-effect="non-scaling-stroke", no chart library. If the history fetch fails, the sparkline stays hidden but your last conversion keeps working.

Where do the rates come from?
The Frankfurter API, which mirrors the European Central Bank reference rates and is free for client-side use.