Device test · Measurement
Screen Ruler
Measure small objects straight off your display, in centimeters or inches. Calibrate once with any bank card so the scale matches the real world. The calibration is one number stored on your device — nothing is uploaded.
Calibrate with a bank card
Hold any standard bank card flat against the outline below — every debit, credit, and ID card is exactly 85.60 mm wide (ISO/IEC 7810 ID-1). Drag the slider until the outline is precisely as wide as the card, then apply.
How this test works
The ruler on this page is driven by a single number: pixels per millimeter. Out of the box it uses the web's standard assumption — 96 CSS pixels per inch, about 3.78 pixels per millimeter — and the readout strip reports that figure as assumed rather than measured. Every tick mark on the canvas is positioned by multiplying that number: one tick per millimeter in centimeter mode, one per sixteenth of an inch in inch mode, with longer marks and printed numerals at the majors.
Calibration replaces the assumption with a measurement of your actual screen. A bank card is a precision reference most people already carry: the ISO/IEC 7810 ID-1 standard fixes it at exactly 85.60 mm wide, whichever bank issued it. When you drag the slider until the on-screen outline matches your card, the page divides the outline's width in pixels by 85.6 to get your display's true pixels-per-millimeter, redraws the ruler at that scale (accounting for devicePixelRatio so ticks stay sharp), and saves the one resulting number in your browser's local storage — nothing else, and nowhere else.
The method has real limits. Browser zoom and operating-system display scaling both change how many physical pixels a CSS pixel occupies, so a calibration is only valid at the zoom level where it was made — recalibrate after changing either. Physical resolution caps precision: a typical desktop pixel is a quarter to a third of a millimeter, so expect accuracy within about a millimeter over the card's width, not micrometer readings. And the ruler measures along the flat plane of the screen — TVs and projectors that overscan or stretch the image, and strongly curved displays, will disagree with a tape measure no matter how carefully you calibrate.