Embed the converter

Put the ingredient-aware cups to grams converter on your own recipe site or blog with one line of HTML. All 48 ingredients, no cookies, no tracking, no account, and no cost. Pick what it should start on below and copy the snippet.

Your snippet

Live preview

The one condition

Keep the credit link visible. It sits under the converter, it reads “Cups to grams converter by CupsToGrams”, and it has to stay a real, followable link. That is the whole licence.

It is worth saying why, because “keep our backlink” usually comes with a worse motive. This site carries no advertising, sells nothing and has no subscription. Being credited where the tool is useful is the only return on building it, and it is also how your readers can check the figures for themselves and see when each one was last verified. Stripping the link does not break the widget and we have no way to detect it; we are asking, not enforcing.

Whether to embed or build your own

The widget is the right answer if you want a working converter on the page in two minutes and do not want to maintain it. If you want the numbers in your own markup, matching your own typography, or you are building an app, take the data instead: the free API gives you every density as JSON or CSV under CC BY 4.0, with no key and no rate limit. Same licence, same attribution, much more control.

Technical notes

  • The widget page sets frame-ancestors *, so it can be framed from any domain.
  • Configuration is by query string: ?ing=honey&amt=1.5&from=cup&to=g. Anything unrecognised falls back to a sensible default rather than erroring.
  • A height of about 460 pixels fits the converter without an inner scrollbar. Give it more if you expect visitors at large text sizes.
  • Always set a title on the iframe. Ours does it for you in the generated snippet, and screen reader users depend on it.
  • The widget page is indexable and is not blocked in robots.txt, so crawlers can see and follow the credit link.

Frequently asked questions

Is the widget really free?

Yes, with no catch and no account. The single condition is that the credit link under the converter stays visible and stays a real link. That link is the only thing we get out of it.

Will it slow my page down?

Barely. The iframe is marked loading="lazy", so nothing is fetched until it is close to the viewport, and the widget itself is a static page with no advertising, no analytics and no third-party scripts. It cannot block your own page from rendering.

Does it track my visitors?

No. There are no cookies, no analytics and no third-party requests, and the conversion happens entirely in the visitor's browser. Nothing anyone types is sent anywhere, which also means embedding it does not add anything to your cookie banner.

Can I restyle it to match my site?

Not from the outside, and that is deliberate: a widget with a full theming API is a widget that ships far more CSS than it needs. You can size the iframe however you like and give it your own border and radius. If you need it to match closely, use the free API instead and render the numbers in your own markup.

Need a custom converter, dataset or tool for your own site? This one is built by FusionStudios.

Related