Online Ruler – Actual Size in cm, mm and Inches
Online ruler
A real-size ruler on your screen in centimetres, millimetres and inches. Calibrate it once with a bank card, your screen size or an A4 sheet – a browser does not know how big a pixel physically is.
Drag markers A and B, or tap the ruler to move the nearest one. Put the object at the 0 line.
←→move a marker 1 mm (Shift: 10 mm)Not calibrated: the browser’s nominal scale (96 CSS pixels = 1 inch) is used, which is rarely the real size. Calibrate once for accurate measurements.
The calibration is stored only in this browser on this device (localStorage). There is no print or full-screen mode: printers rescale pages, so a printed ruler would not be reliable.
How to measure accurately with an on-screen ruler
Web pages measure in CSS pixels. By definition 96 CSS pixels make one inch, but a real screen shows them at whatever size its pixel density and scaling setting produce – on a typical laptop a nominal centimetre can be noticeably shorter or longer than a real one. That is why this ruler asks for one calibration with an object of known size and then remembers it for this device.
How to use the ruler
- 1 Press Calibrate and choose a method: a bank card (the most accurate for most people), your screen diagonal, or the short edge of an A4 sheet.
- 2 Line up the frame with the real object and save. The ruler is redrawn in real millimetres and 1/16-inch steps.
- 3 Put the object at the 0 line and drag markers A and B (or use the arrow keys). The distance appears in cm, mm and inches.
Why the browser needs a calibration
A browser knows the screen resolution and the device pixel ratio (DPR), but not the physical size of the panel. CSS units such as cm and in follow the 96-pixels-per-inch convention, not the real screen. Phones and high-density screens usually show a CSS pixel smaller than 1/96 inch, large monitors often larger. Measuring one object of known size fixes the ratio for your screen.
Bank card, screen size or A4
Bank cards, credit cards and most ID cards follow ISO/IEC 7810 ID-1: 85.60 × 53.98 mm, so they are a precise reference that most people have at hand. The screen-size method computes pixels per inch from the diagonal and the physical resolution – the same calculation as on our screen resolution page – and is only as good as the diagonal you enter, which manufacturers often round. An A4 sheet (ISO 216: 210 × 297 mm) works on larger screens. Hold the object flat against the screen and look straight at it to avoid parallax.
Zoom, DPR and display scaling
Browser zoom changes the device pixel ratio: at 125 % one CSS pixel covers 1.25 times as many device pixels. The calibration is stored in device pixels per millimetre, so in Chrome, Edge and Firefox the ruler corrects itself when you zoom and shows a notice. Moving the window to another monitor or changing the system resolution means a different physical scale, and the page asks you to recalibrate. Pinch zoom on a phone magnifies the whole page – zoom back out before measuring. Some browsers (Safari, for example) do not report zoom in the DPR, so measure at 100 % there.
Why there is no print or full-screen mode
When a page is printed, the print dialog and the printer driver often scale it (“fit to page”, margins, paper format), so a printed ruler is rarely true to size – for paper work, use a real ruler or a template that prints its own check length. Full screen does not make the ruler any more accurate, and changing the window size while measuring only adds confusion, so it is not offered. For the best results, keep the zoom at the level you calibrated and recheck now and then with the card.