Screen Ruler

Measure with an on-screen ruler in centimetres, inches or pixels, and calibrate it by matching a box to a standard bank card.

Use the tool

Why this tool exists

Sometimes you need a real measurement and have no ruler: the size of a small part, a gap on a shelf, a print layout. Screens vary in pixel density, so a ruler drawn at a fixed number of pixels per centimetre will be wrong on most displays.

This ruler fixes that with a calibration step. A blue box is drawn at the size of a bank card, 85.6 by 54 millimetres. Hold a real card against your screen and change the pixels-per-centimetre value until the box matches it, and the ruler then reads true on your display. You can click on the ruler to read a position in pixels, centimetres and inches. Results are only as good as your calibration, and zoom level changes the scale, so keep browser zoom at 100 percent.

How to use it

  1. Choose cm, in or px as the unit.
  2. Hold a bank card to the screen and adjust Pixels per cm until the blue box matches its size.
  3. Place the object against the screen and read the ruler.
  4. Click a point on the ruler to see its position in pixels, centimetres and inches.

Frequently asked questions

Why do I need to calibrate?

Browsers assume 96 CSS pixels per inch, but real screens differ by size and resolution. Matching the box to a bank card gives you the actual pixels per centimetre of your display.

Does browser zoom affect it?

Yes. Zooming changes the size of CSS pixels, so calibrate again at your usual zoom level, and keep it unchanged while measuring. A zoom of 100 percent is the easiest to trust.

How long is the ruler?

It shows about 30 cm, 12 inches or 1200 pixels, depending on the unit. On a small screen the ruler scrolls sideways so you can see the rest.

How accurate can it be?

After a careful calibration, within about a millimetre for small objects. Parallax from viewing the screen at an angle and glass thickness add error, so view straight on.