Skip to content
PrintablePaperKit

Online Ruler

Calibrate the ruler to your screen with a bank card or your screen size, then measure small objects on screen in centimetres, millimetres or inches.

  • Card calibration
  • cm, mm and inches
  • Saved per screen
Units
0 cm2 cm4 cm6 cm8 cm10 cm12 cm14 cm16 cm18 cm20 cm

Calibrate

Saved per screen. Current display: init

Method 1: Match this rectangle to your credit/debit card’s width, then press Save.

Target width: 85.60 mm • Current: 300px

The rectangle’s left and top edges are anchored. It never leaves the area.

Method 2: Enter your screen diagonal in inches. Fine-tune with nudges afterward.

Current scale: 3.780 px/mm

How to use an online ruler accurately

  1. Set zoom to 100%. Reset your browser zoom so a page pixel is the size the calibration expects.
  2. Match a card. In Method 1, hold a bank card in the top left of the grey area and move Adjust size until the rectangle matches its width.
  3. Save it. Press Save; the ruler above updates straight away and the Current scale shows pixels per millimetre.
  4. Measure. Choose Centimeters, Millimeters or Inches under Units and hold the object flat against the screen at the 0 mark.

How the calibration works

Everything comes down to one number: how many screen pixels make a millimetre on your display. The Current scale line at the bottom of the panel shows it. Before you calibrate it is 3.78, the web’s nominal 96 pixels per inch divided by 25.4 mm.

With a card, the sum is simple. If the rectangle matches the card’s 85.6 mm width at 324 pixels, the scale is 324 ÷ 85.6 = 3.785 pixels per millimetre. A 10 cm mark is then drawn 100 × 3.785 = 378.5 pixels from zero, rounded to the nearest pixel. Matching the longer side gives a more precise result than matching the 53.98 mm height, because any error of a pixel is spread over a greater length.

Each nudge button changes the scale by 0.1%, about 0.1 mm over 10 cm. If a 20 cm ruler held against the screen reads 19.8 cm, the on-screen marks are 1% too far apart, so press −0.1% about ten times.

Calibrating from the screen size

Method 2 estimates the scale from your screen’s diagonal. It takes the width of the browser window in pixels, works out the diagonal assuming a 16:9 shape, and divides by the inches you entered. That is why it only works with the window maximised. Many laptops have 16:10 or 3:2 screens, and on those the estimate is about 3% to 5% out, a few millimetres over 10 cm, so treat it as a starting point and check it against something you know the size of.

Getting an accurate reading

  • Keep browser zoom at 100% while calibrating and measuring.
  • Look straight at the screen. Viewing at an angle shifts where an edge seems to fall against the marks.
  • Hold the object flat and still, with its end on the 0 mark, not the edge of the screen.
  • Calibrate each screen once. The setting is stored per display, so moving the window to another monitor uses that monitor’s calibration.
  • Do not press on the screen. Rest the object lightly against it; pressing can damage some displays.

Reading the scales

UnitsSmallest markLabels
Centimeters1 mm, longer every 5 mm and 1 cmEvery centimetre
Millimeters1 mm, longer every 5 mm and 10 mmEvery 10 mm, marked in cm
Inches1/16 inch, longer at 1/8, 1/4, 1/2 and 1 inchEvery inch

On a small screen the labels may skip some numbers so they do not overlap, but every mark is still drawn. The ruler runs across the full width of the window, so a wide monitor measures much longer objects than a phone.

When to use something else

For sizes in screenshots and designs, the pixel ruler measures in image pixels instead. For angles, use the online protractor, and to turn a measurement into another unit, the unit converter has direct pages such as cm to inches.

Frequently asked questions

Why does an on-screen ruler need calibrating?

A web page can count pixels but cannot find out how big your screen physically is. Until it is calibrated, the ruler assumes the web’s reference size of 96 pixels to the inch (3.78 pixels per millimetre), which is only right on some screens. Calibrating tells it how many of your screen’s pixels make a real millimetre.

How do I calibrate with a bank card?

Bank cards and many ID cards and photocard driving licences are made to the ISO/IEC 7810 ID-1 size: 85.60 × 53.98 mm. In Method 1, set Match side to Width, hold the card in the top left corner of the grey area, move the Adjust size slider until the rectangle is exactly as wide as the card, and press Save.

What if I do not have a card to hand?

Use Method 2. Maximise your browser window, type your screen size in inches into Screen diagonal (inches) and press Estimate from diagonal. It assumes a 16:9 screen filling the window width, so it is less exact than a card, but you can then check it against any object of known size and fine-tune with the −0.1% and +0.1% buttons.

How accurate is it?

After a careful card calibration, close enough to measure a button, a photo border or a small part to the nearest millimetre or so. The ruler draws each mark on the nearest whole screen pixel, so a single mark can be a fraction of a millimetre out on a low-resolution screen. For precision work, use callipers.

Is the calibration remembered?

Yes. It is saved in your browser for each screen, recognised by its resolution and pixel ratio, so a laptop and an external monitor keep separate settings. Changing the browser zoom can make the page look like a different screen, so keep it at 100%.

Why does it start a little way in from the edge?

The 0 mark sits just inside the left edge of the ruler strip, so it is never hidden by the edge of the screen. Line the end of the object up with the 0 mark, not with the edge of the screen.

More online tools

All 15 online tools