How to use a ruler on screen at actual size (mm, cm and inches)
Why most online rulers are not to scale, how to calibrate one with a bank card in a minute, and how to measure an object against your screen or phone in millimetres, centimetres or inches.
By Swapnil Gupta · · 5 min read
No ruler to hand? Your screen can be one. A ruler on screen draws millimetres, centimetres or inches so you can hold a small object against it and read its length. The catch is that most online rulers are not to scale, and the reason is simple once you know it.
Why most online rulers are the wrong size#
A web page cannot ask how big your screen really is. Browsers work in CSS pixels and define an inch as 96 of them, whatever the screen. A phone, a laptop and a large monitor pack their pixels very differently, so 96 CSS pixels might be 2 cm wide on one screen and 3 cm on another. A ruler drawn from that guess is right only by luck.
The fix is to measure once against something whose size you know, and scale the ruler to match. That is calibration, and it takes about a minute.
Calibrate with a bank card#
Bank cards, most ID cards and many loyalty cards are made to one standard size, ISO/IEC 7810 ID-1: 85.60 × 53.98 mm. That makes them a reference almost everyone carries.
- Open the online ruler and press Calibrate.
- Hold the card flat against the screen, its corner in the top-left corner of the dashed outline.
- Drag the slider, or press − and +, until the outline matches the card's edges exactly.
- Press Save. The ruler now says it is calibrated.
No card? Enter your screen's diagonal in inches instead, as its maker states it (13.3, 15.6, 27). It is less exact than a card, and right only when the screen runs at its own resolution.
Measure an object#
- Choose millimetres, centimetres or inches.
- Choose Across or Down, and lay the object flat against the screen, one end on the ruler's left or top edge.
- Drag the red mark to the other end, or move it with the arrow keys: one millimetre or one sixteenth of an inch a press, ten with Shift.
- Read the length beside the ruler.
The ruler is as long as the screen allows. For something longer, measure it in parts, or turn the ruler to the screen's longer side.
A ruler on an iPhone or Android phone#
The same page works as a phone ruler. Open it on the phone itself and calibrate it there with a card: every phone's screen is different, so a scale saved on your laptop does not carry over. Held upright, the ruler runs down the screen, the phone's longer side, so it suits small things: a screw, a ring, a coin, a label. Keep the phone flat on a table and lay the object on the glass.
It works the same on Windows and Mac, in any modern browser, with nothing to install.
Reading inches#
In inches the ruler reads to the nearest sixteenth, the way a tape measure does, and shows the decimal beside it. The common fractions:
| Fraction | Decimal inches | Millimetres |
|---|---|---|
| 1/16 in | 0.0625 | 1.59 |
| 1/8 in | 0.125 | 3.18 |
| 1/4 in | 0.25 | 6.35 |
| 3/8 in | 0.375 | 9.53 |
| 1/2 in | 0.5 | 12.7 |
| 3/4 in | 0.75 | 19.05 |
| 1 in | 1 | 25.4 |
Millimetres, centimetres and inches#
There are 10 millimetres in a centimetre and 25.4 millimetres in an inch. To turn centimetres into millimetres, multiply by 10; to turn inches into centimetres, multiply by 2.54.
| Millimetres | Centimetres | Inches |
|---|---|---|
| 1 mm | 0.1 cm | 0.039 in |
| 5 mm | 0.5 cm | 0.197 in |
| 10 mm | 1 cm | 0.394 in |
| 25.4 mm | 2.54 cm | 1 in |
| 50 mm | 5 cm | 1.969 in |
| 100 mm | 10 cm | 3.937 in |
| 304.8 mm | 30.48 cm | 12 in |
Getting an accurate reading#
- Look straight on. The screen's glass sits a little above the pixels, so reading from an angle shifts the mark. Put your eye directly over the end you are reading.
- Match the card carefully. The ruler can only be as exact as that match: take your time with the edges.
- Calibrate each screen. The scale is saved on the device you calibrated, for that browser, and differs from one screen to the next.
- Keep it for small things. For anything that matters to the millimetre, building work or fitting parts, use a real rule.
Measuring a web page instead?#
An online ruler measures real objects. To measure things on a web page (an element's width, the gap between two buttons, the padding inside a card), you want CSS pixels, not centimetres. That is what Nitpique's page ruler extension does, in px, rem, em or %.