Skip to main content

Embeddable Unit Converter

Embed a unit converter widget on your website

Build a free, responsive measurement converter for a blog, article, classroom resource or business website. Choose one conversion pair, selected categories or all 75, then preview and copy the iframe code—no API key or account required.

75 categories641 unitsBrowser-local calculations

Configure

Build your widget

What your site will get

A Length & Distance converter with 30 units. Visitors can enter decimals or fractions and search units and conversion pairs without leaving the widget.

CoverageChoose one fixed pair, one category, several categories, or all.
Converter coverage

Search by category, unit, symbol or a phrase such as “inch to metre”.

Starting conversionChoose the first conversion visitors see.

Search by category, unit, symbol or a phrase such as “inch to metre”. Selecting a matching conversion updates both units at once.

Starting value and labelSet the initial value and optional context shown to visitors.

Visitors can enter a decimal with a point or comma, a fraction such as 5/8 or 1 1/2, or scientific notation. Tollica always shows the standard result and automatically adds a fractional-inch alternative when it is useful.

Appearance and layoutSet theme, density, spacing, type scale and corners.
Appearance
Density
Fine-tune width, spacing and text

Desktop width sets the widget's maximum size on larger screens. On mobile, the widget remains fluid and uses the full available width.

Buttons and Tollica linksChoose which result actions and outbound links appear.

Tollica attribution remains visible so visitors can identify the calculation source. The Open full converter link is optional and enabled by default.

Live preview

The exact widget visitors will use

A Length & Distance converter with 30 units. Visitors can enter decimals or fractions and search units and conversion pairs without leaving the widget.
Preview themeTheme
Preview viewportViewport
Live embed areaAuto-fitted height

Installation code

Copy and paste into your site

<iframe src="https://tollica.com/embed/unit-converter/widget?scope=single&amp;category=length&amp;from=centimeter&amp;to=inch&amp;value=1&amp;theme=auto&amp;size=standard&amp;copy=1&amp;copyLink=1&amp;share=1&amp;openFull=1&amp;swap=1&amp;maxWidth=960&amp;outerSpace=8&amp;innerSpace=12&amp;radius=24&amp;textScale=100&amp;textGap=4&amp;sectionGap=14" title="Tollica unit converter" loading="lazy" width="100%" height="690" style="display:block;width:100%;max-width:960px;margin:0 auto;border:0;border-radius:24px" allow="clipboard-write"></iframe>
<script async src="https://tollica.com/embed/unit-converter-resize.js"></script>

Installation guide

How to embed the unit converter

The generated iframe is a self-contained calculator widget. It keeps conversion calculations inside the visitor’s browser and can be installed anywhere your publishing platform accepts custom HTML or an iframe.
  1. 1Choose the scopeUse one fixed pair for a single task, one category for related units, a curated category set or the complete public catalog.
  2. 2Set the first conversionChoose the category, source unit and target unit visitors should see when the widget first loads.
  3. 3Adjust the interfaceSelect the theme, spacing, text scale, width and optional copy, share, swap and Tollica navigation controls.
  4. 4Preview every viewportCheck light, dark and automatic themes at phone, tablet and desktop widths before copying the code.
  5. 5Install and verifyPaste the iframe into your page, publish it and test the live page with your site’s own layout and security settings.

Add the converter to WordPress, Wix, Squarespace, Webflow or HTML

WordPress

Add a Custom HTML block and paste the complete generated snippet. It includes the iframe and its automatic height helper. WordPress.com requires a plan that permits custom embed code.

WordPress Custom HTML guide

Wix

Add an Embed HTML element, choose Enter Code, paste the iframe and size the element for desktop and mobile.

Wix embed guide

Webflow or HTML

Use Webflow’s Code Embed element, or paste the snippet directly into the HTML where the converter should appear.

Webflow Code Embed guide

What the embedded measurement converter includes

The copied snippet contains the working converter—not a static screenshot or a link disguised as a calculator. Its small height helper keeps the cross-origin iframe fitted as controls wrap or the result changes. Depending on the scope you choose, visitors can enter a value, select units, search the permitted catalog, reverse the conversion and copy or share the result without leaving your page.

Tollica’s deterministic engine performs the calculation in the visitor’s browser. The iframe is isolated from the host page, uses the available width up to your configured maximum and stacks its controls for smaller screens. You can review the available unit-conversion categories before deciding what your audience needs.

Practical examples

Where an embedded unit converter is useful

Place the converter beside the measurement problem it solves. A focused starting state helps visitors understand why the tool is there, while broader scopes are useful when the page is itself a reference or learning resource.

Woodworking and crafts

Start with inches to millimetres beside plans, cut lists or sewing patterns. A fixed pair keeps the task clear; a length category supports related dimensions.

Fitness and equipment

Use pounds to kilograms for bodyweight or equipment guides, or permit the complete mass category when readers use several weight units.

Teaching and reference

Offer selected length, area, volume, mass and temperature categories beside lessons so students can explore related units without unrelated choices.

Science and engineering

Curate pressure, force, energy, power or electrical categories for technical documentation while keeping incompatible quantities separated.

Know when a unit converter is not enough

Unit conversion changes the representation of the same physical quantity. It does not provide live currency or exchange rates, and it should not be used as a substitute for ingredient-density data, product-specific calculations or professional engineering judgment. For example, volume and mass are different quantities; converting cups to grams requires knowing the ingredient.

Frequently asked questions

Embeddable unit converter questions

Is the Tollica unit converter widget free to embed?

Yes. You can configure and copy the iframe without creating an account or requesting an API key.

Can I embed only one conversion pair?

Yes. Fixed-pair mode hides category and unit selectors so visitors see one input and its live converted result. The swap control is optional.

Can visitors search multiple unit categories?

Yes. Choose selected categories or include all 75 public categories. Visitors can search by category, unit, symbol or a phrase such as “inch to metre”.

Is the iframe responsive on mobile?

Yes. The generated code uses the available content width up to your chosen maximum. Always preview the final published page because site builders can add their own iframe sizing rules.

Where are conversion values calculated?

The deterministic conversion engine runs in the visitor’s browser. The widget does not need an external calculation API.