Embed the ruler on your website
Copy the code below and paste it into your page's HTML: your visitors get the same calibrated on-screen ruler in inches, cm and mm, inside an iframe. It is free, needs no account and loads nothing from other companies.
Embed code
Choose a size, the unit the ruler opens in and a theme. The code and the preview update as you choose.
How to embed it
- Pick the options above and press Copy code.
- Paste the code where the ruler should appear: an HTML block in WordPress, an embed or custom-code element in most site builders, or straight into your template.
- Publish the page and open it on a phone and a computer to check the size.
Full screen works when the iframe keeps allow="fullscreen". If your site sends a Content Security Policy, allow https://calibratedruler.com in its frame-src.
What the widget includes
The widget runs the same ruler as this site: inches, cm, mm and CSS pixels, calipers, chain and box measuring, guides, the crosshair, keyboard shortcuts, full screen and the reading history. It shows a visible Calibrated Ruler link at the top that opens this site in a new tab. That link must stay visible and unchanged.
Calibration inside the widget
Each visitor calibrates once per device, and the widget remembers it. They match an outline to a credit card, a coin, a sheet of paper or another object of known length, exactly as on this site. Browsers store an embedded page's data separately for each site that embeds it, so a calibration made here or on another site does not carry over. Until a visitor calibrates, readings are marked as an estimate.
Privacy and rules
- No ads, no analytics and no third-party scripts in the widget. Its own security policy blocks them.
- Settings, calibration and saved readings stay in the visitor's browser. Nothing measured is sent to us or to your site.
- Keep the Calibrated Ruler link visible, do not cover or crop the widget's controls, and do not claim it as your own tool. The Terms of Use apply.
- For a fit that matters, such as a ring, a part or a medical device, tell visitors to confirm with a physical ruler or calipers.
Embed questions
Is the ruler widget free to embed?
Yes. Any website may embed it with the code on this page, at no cost. Keep the visible Calibrated Ruler link in the widget, and do not change the widget or present it as your own tool.
Does the widget track my visitors or show ads?
No. The widget loads no ads, no analytics and no third-party scripts. It stores its settings and calibration in the visitor's own browser, and nothing it measures is sent anywhere.
Why do visitors calibrate the widget separately?
Browsers keep the storage of an embedded page apart for each site that embeds it. A visitor calibrates once per device on each site, with a card, coin or other reference, and the widget remembers it there. A calibration made on calibratedruler.com itself does not carry over.
Can I change the size, unit or colours?
Yes: pick a size, a first unit and a light, dark or automatic theme above, then copy the code. You can also edit the width and height in the code. Below about 340 px wide the controls get cramped.