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 guideEmbeddable Unit Converter
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.
Configure
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.
Search by category, unit, symbol or a phrase such as “inch to metre”.
Search by category, unit, symbol or a phrase such as “inch to metre”. Selecting a matching conversion updates both units at once.
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.
Desktop width sets the widget's maximum size on larger screens. On mobile, the widget remains fluid and uses the full available width.
Tollica attribution remains visible so visitors can identify the calculation source. The Open full converter link is optional and enabled by default.
Live preview
Installation code
<iframe src="https://tollica.com/embed/unit-converter/widget?scope=single&category=length&from=centimeter&to=inch&value=1&theme=auto&size=standard&copy=1&copyLink=1&share=1&openFull=1&swap=1&maxWidth=960&outerSpace=8&innerSpace=12&radius=24&textScale=100&textGap=4&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
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 guideAdd an Embed HTML element, choose Enter Code, paste the iframe and size the element for desktop and mobile.
Wix embed guideInsert a Code block on the page and paste the iframe. Iframe support depends on the Squarespace plan.
Squarespace custom-code guideUse Webflow’s Code Embed element, or paste the snippet directly into the HTML where the converter should appear.
Webflow Code Embed guideThe 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
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.
Use pounds to kilograms for bodyweight or equipment guides, or permit the complete mass category when readers use several weight units.
Offer selected length, area, volume, mass and temperature categories beside lessons so students can explore related units without unrelated choices.
Curate pressure, force, energy, power or electrical categories for technical documentation while keeping incompatible quantities separated.
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
Yes. You can configure and copy the iframe without creating an account or requesting an API key.
Yes. Fixed-pair mode hides category and unit selectors so visitors see one input and its live converted result. The swap control is optional.
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”.
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.
The deterministic conversion engine runs in the visitor’s browser. The widget does not need an external calculation API.