Skip to content
Market closed (holiday) · Fri, Nov 20 · 12:57 Brasília

US dollar widget for your website

Mesa do Dólar’s live USD/BRL spot rate, in a card that fits on any page. Copy the code and paste it into your site’s HTML.

Preview

The price updates on its own every 2 seconds while the page is visible, just like the top of the site. While the market is open it is a real-time estimate; it is not the PTAX.

Light theme

<iframe src="https://mesadodolar.com.br/en/widget" title="US dollar exchange rate, Mesa do Dólar" width="320" height="190" style="border:0;max-width:100%" loading="lazy"></iframe>

Dark theme

<iframe src="https://mesadodolar.com.br/en/widget?tema=escuro" title="US dollar exchange rate, Mesa do Dólar" width="320" height="190" style="border:0;max-width:100%" loading="lazy"></iframe>

Visitor’s theme

Follows the light or dark preference of your visitor’s system.

<iframe src="https://mesadodolar.com.br/en/widget?tema=auto" title="US dollar exchange rate, Mesa do Dólar" width="320" height="190" style="border:0;max-width:100%" loading="lazy"></iframe>

Daily PTAX variant

For blogs and accounting sites: shows the PTAX sell and buy rates of the last business day, with the date and the source (Central Bank of Brazil). It does not move during the day; it changes when the Central Bank publishes the new PTAX, shortly after 1 p.m. Brasília time.

Code for the daily PTAX variant (light theme; for dark, add &tema=escuro)

<iframe src="https://mesadodolar.com.br/en/widget?tipo=ptax" title="USD/BRL PTAX, Mesa do Dólar" width="320" height="190" style="border:0;max-width:100%" loading="lazy"></iframe>

Language

The card’s language comes from the address: /widget in Portuguese, /en/widget in English and /es/widget in Spanish. The theme works with any of them.

Rules

Width can range from 220 to 600 px: set the width to fit your site and keep the height at 190 px. Free, no sign-up; keep the card’s “Mesa do Dólar” link, which is the source attribution.

Prefer to build your own card? Use the public API (endpoint /api/v1/cotacao). Public data, no warranty; not investment advice.