You need to measure something small — a ring, a screw, a cable connector — and there's no ruler in sight. Your phone or laptop screen can act as one, as long as you know one important catch.

The catch: screens don't know their own size

A phone or laptop screen is made of pixels, but the physical size of those pixels varies by device. A browser has no reliable way to ask "how many physical millimetres is one pixel on this exact screen?" — that information simply isn't exposed by the web platform. So any on-screen ruler is only as accurate as its guess about your specific screen.

Two ways to get an accurate reading

1. Auto-detect (quick, usually close). Good ruler tools try to recognise your device from its screen resolution and pixel density, and match it against a list of common phones and laptops. This works well for popular, recent devices — but if your device isn't recognised, or the page is zoomed, the reading can be off.

2. Calibrate with a card (accurate on any screen). Every credit, debit and ID card in the world is the same standard size — 85.6mm wide. Hold one up to your screen and adjust a slider until an on-screen bar matches the card exactly. This tells the tool precisely how many pixels equal one real-world unit on your screen, regardless of what device you're using.

How to use it

  1. Open the Screen Ruler.
  2. Check the status line — if it says "auto-detected," you're good to go. If it says "estimate," tap Calibrate and match a card to the bar.
  3. Choose cm, inch or px, and turn on a ruler edge (Left, Right, Top or Bottom).
  4. Hold your object against the edge, or move your mouse over the area to read exact coordinates.

What it's good for

It won't replace a real ruler for precision work, but for everyday "how big is this, roughly" moments, a calibrated screen is surprisingly reliable — and it's always in your pocket.

Try it free: Screen Ruler. Everything runs in your browser — nothing is uploaded.