Embed the converter on your site
Recipe blog, fitness site, chemistry class handout, if your readers keep asking how many liters that is, give them the answer where they already are. One iframe, no script tag, no account, no tracking.
Live preview
This is the real widget, running right here. It adapts to your page width and follows the reader's light or dark mode.
Get the code
- Copy the snippet below.
- Paste it into your page wherever the converter should appear, in a WordPress Custom HTML block, a Ghost HTML card, or straight into your template.
- That is it. The widget sizes itself to its container; adjust the height only if you change the unit list.
<iframe
src="https://www.oztoliters.com/widget.html?lang=en"
title="Oz to liter converter by Oz To Liter"
width="100%"
height="330"
loading="lazy"
style="border:0;max-width:520px"
></iframe>Options
Add query parameters to the iframe URL to preset the widget. All of them are optional.
| Parameter | Values | What it does |
|---|---|---|
| from | usFlOz · ukFlOz · liter · ml · usCup · usGallon | Which unit the widget starts converting from. |
| to | usFlOz · ukFlOz · liter · ml · usCup · usGallon | Which unit it converts to. |
| value | any number | The amount shown when the widget first loads. |
| lang | en · es · fr · de · ja · ar · … | Formats the numbers for that locale, decimal comma, digit grouping, and so on. |
Terms of use
The widget is free for any site, commercial or not, with no attribution requirement beyond the small Oz To Liter credit already built into it, please leave that link in place. We may update the conversion logic or styling, but the embed URL and its parameters will keep working. If you need a version without the credit line, or with your own colours, write to us.
Frequently asked questions
Barely. It is a single self-contained HTML file of about 4 KB with no external fonts, no framework and no third-party requests, and the snippet loads it lazily, so it costs nothing until a reader scrolls it into view.
No. The widget sets no cookies, sends no analytics, and makes no network requests after it loads. We cannot see who uses it or on which pages.
Not through parameters yet. The widget follows the reader's system light or dark preference, which suits most sites. If you need it to match a specific palette, email us and we will send you a themed URL.