Online Ruler

How to Calibrate an Online Ruler

The bank card method, step by step: turn a screen ruler into a ruler you can trust, and check that it is right.

Why an online ruler needs calibrating

A ruler on a screen is drawn in pixels, and a pixel has no fixed physical size. The same page can be shown on a phone where pixels are tiny and on a monitor where they are three times larger. Browsers settle on a convention, 96 pixels to the inch, and use it when nothing better is available. That convention is right often enough to look plausible and wrong often enough to matter: on many laptops and phones it puts a “centimetre” a few millimetres off.

Calibration replaces the convention with a measurement. You show the page an object whose real size is known, and it works out how many pixels your screen needs for a millimetre. From then on the graduations are drawn at that scale.

The bank card method

Bank cards, loyalty cards and many identity cards share a standard size, the ID-1 format: 85.60 mm by 53.98 mm. Because every card of that format is identical, a card is a ruler you already carry.

  1. Set browser zoom to 100%. On a laptop this is usually Ctrl+0 or Cmd+0. Zoom changes the size of a CSS pixel, so calibrating while zoomed gives a value that is wrong everywhere else.
  2. Open the online ruler and press Calibrate.
  3. Choose Bank card in the calibration panel.
  4. Hold the card flat against the screen, over the outline, with the long edge aligned.
  5. Move the slider until the outline and the card are the same width, edge to edge. Work slowly near the end: one step should be barely visible.
  6. Press Save calibration. The ruler redraws at the new scale and the reading is kept in this browser.

The coin method

If a card is not at hand, the panel also offers a US quarter, 24.26 mm across, and a 1 euro coin, 23.25 mm across. Line up the circle with the round outline and slide until the two match. Coins are harder to judge than cards because there is no straight edge to align and because the rim is raised on many coins, so use them as a fallback rather than a first choice.

Checking the result

Once calibrated, place a bank card on the ruler. The long edge should read 85.6 mm, or 8.56 cm. A US quarter should read 24.26 mm across. If both are off in the same direction, the slider was set a step or two away from the true value; open Calibrate and adjust it again. If only one object is off, the object itself is probably not the size you assumed, which is worth knowing before you trust it as a reference.

Calibrating more than one device

The calibration belongs to the screen, not to the site, so each device needs its own. Your phone, your tablet and your desktop will each hold a different value. A browser on the same machine also keeps its own copy; switching from one browser to another means calibrating again there.

If the scale seems to have reset, the usual cause is cleared site data. Browsers offer to clear cookies and site data regularly, and that clears the stored calibration too. Calibrating again takes under a minute.

Frequently made mistakes

  • Calibrating at the wrong zoom. The most common cause of a ruler that is consistently a few per cent off.
  • Matching the card to the outer border of the outline instead of to its edges, which adds a millimetre or two on each side.
  • Holding the card above the screen. Even a couple of millimetres of gap shifts what the eye sees; keep the card flat on the glass.
  • Assuming one device's value suits another. High-density laptop panels and phone screens need very different pixel counts per millimetre.

Once you have a calibrated device, the actual size page explains how far the accuracy holds and what to watch when measuring thicker objects, and the cm ruler and inch ruler pages open straight into the scale you need.

Frequently asked questions

How long does calibration take?

Under a minute. Most of the time goes on matching the outline to a real card precisely, not on the settings.

What object should I use to calibrate?

A bank card in the ID-1 format, which is 85.60 mm by 53.98 mm. Loyalty cards and many identity cards are the same size. A US quarter (24.26 mm) or a 1 euro coin (23.25 mm) works if no card is available.

The ruler is still wrong after calibrating. Why?

Set browser zoom back to 100%, then calibrate. Zoom changes the physical size of a pixel, so the stored value only holds for the zoom level it was set at.

Do I need to calibrate on every visit?

No. The value is stored in this browser for that device and reused whenever you come back to any ruler page here.

Do I need to calibrate on my phone too?

Yes, once per device and per browser. A phone screen and a laptop screen need very different numbers of pixels for one millimetre.