Online Ruler
Measure real-world distances on your screen. Because screens vary in pixel density, the ruler must be calibrated first: hold a bank card against the outline below and adjust the slider until they match, then the rulers are accurate to within a millimetre.
The measurements it takes are used with the DPI Checker and the Screen Resolution Checker to establish an accurate scale. For the unit conversions that follow, the Length / Distance Converter is the next step.
How to use the Online Ruler
- 1 Calibrate the ruler once by matching a physical object of known size to the on-screen scale.
- 2 Measure horizontally, vertically or diagonally by dragging.
- 3 Switch units as needed.
- 4 Note the measurement, remembering that it is only as accurate as the calibration.
Where this is genuinely useful
An on-screen ruler is a quick way to size something when no physical ruler is to hand — checking that a gap looks plausible, judging whether a replacement part will fit, or estimating a dimension from a photo taken against a known reference.
It is most valuable in the cases where an approximate answer is enough and the alternative is not measuring at all. Treat the result as an estimate and avoid it where a small error matters.
- Calibrate against a card or a sheet of paper for a fixed reference.
- Accuracy depends entirely on the calibration step.
- Use it for estimates, not for precision work.
- Diagonal measurements are less reliable than horizontal or vertical.
How to Calibrate
Every card of the type used for banking and ID follows the same standard, so the outline below is exactly 85.60 mm wide. Place a real card against your screen and move the slider until the outline matches it. That single measurement sets the scale for both rulers.
- Calibrate against a standard bank card
- Centimetre and inch rulers to true scale
- Tick marks at 1 mm, 5 mm and 10 mm
- Shows the resulting pixels per inch
- Calibration is remembered for the session
Why calibration is needed
A CSS pixel is not a fixed physical size. On a high-density display a CSS pixel may be a third of a millimetre, while on an older monitor it could be more than a third of a millimetre again. The browser does not reliably report the physical size of your display, so a known reference object is the only dependable way to establish the true scale.
Frequently asked questions
Why do I need to calibrate?
Because a CSS pixel has no fixed physical size. Screens vary in physical pixel density, so the same number of pixels occupies different physical lengths on different displays. Without calibration, a measurement in centimetres is a guess based on an assumed density.
How accurate can an on-screen measurement be?
Accurate enough for approximate work and not accurate enough for precision. Even after calibrating against a reference object, the screen's own geometry and the measurement of your reference introduce error. For anything where millimetres matter, use a physical instrument.
What is a good object to calibrate against?
A bank card is the standard choice, because its dimensions are fixed by an international standard and everyone has one. A sheet of paper is equally reliable if you have the right size. Being able to place the object directly against the screen is what makes the calibration accurate.
Related Developer Tools
You might also need
Tools from other categories that people pair with the Online Ruler: