Online Ruler

Screen ruler

Online Ruler for iPhone

Use a ruler on your iPhone screen in Safari, in centimetres, millimetres or inches. Calibrate it once with a bank card, keep the page at its default zoom, and the graduations match a real ruler.

Drag on the ruler

Press and drag anywhere on the ruler: the reading shows how far that point is from the zero mark.

A ruler on the screen you already have

An iPhone does not need a ruler app to measure something small. Safari can draw a scale on the screen, and once that scale is calibrated against a bank card it matches a physical ruler closely enough for everyday jobs: checking a screw, a photo, a coin, a watch strap or a piece of trim. This page opens the ruler already rotated, so it runs down the long edge of the phone, which is where most of the measuring room is.

Nothing is installed and nothing is uploaded. The page is drawn by Safari, and your calibration is kept in Safari's local storage on that phone.

Before you measure: three facts about iPhone screens

  • The page does not know how big its pixels are. Safari assumes 96 pixels per inch, which is a desktop convention. On a phone the real figure is several times higher, so an uncalibrated centimetre comes out much shorter than a real one.
  • Pinch zoom breaks the match. Pinch-zooming enlarges everything on the screen without changing the layout, so a calibrated ruler drawn underneath no longer lines up with the object you are holding against the glass. Measure at the page's default zoom.
  • The screen is small. A 6.1-inch phone gives you roughly 7 cm across the short edge and about 15 cm along the long edge. That is enough for most small objects and not enough for a sheet of paper.

How to use the ruler on an iPhone

  1. Open the page in Safari and wait for the ruler to appear. It opens rotated, so the scale runs down the long edge.
  2. Turn the phone to landscape and calibrate. An ID-1 card is 85.60 mm wide, which is wider than a portrait phone screen; in landscape the outline fits. Press Calibrate, choose Bank card, lay the card flat on the glass and slide until the outline matches it exactly. Save.
  3. Check the calibration by measuring the card's short edge, which should read 53.98 mm, or a US quarter, which should read 24.26 mm across.
  4. Put the object on zero. Hold the edge of what you are measuring against the zero mark at the end of the scale, flat on the glass.
  5. Drag to the far edge and read the number. Switch between cm, mm and inch at the top if you need a different scale.

Calibrating without a bank card

Any card in the ID-1 format works, because the format fixes the size at 85.60 mm by 53.98 mm: a bank card, a loyalty card, a gift card, a library card, and many driving licences and identity cards. If you have no card at all, the calibration panel also offers a US quarter at 24.26 mm and a 1 euro coin at 23.25 mm. Coins are harder to match because the rim is raised and there is no straight edge to align, so treat them as a fallback.

A card is the better reference for a second reason: after calibrating, you can put the same card on the ruler and read its width. If it reads 85.6 mm, the scale is right. That check takes a second and catches a mis-calibration before it spoils a measurement.

What changes the scale on an iPhone

  • Pinch zoom, as above. Keep the page at its default zoom.
  • Site data cleared. Clearing Safari's website data removes the stored calibration, and the page goes back to the uncalibrated convention.
  • A raised screen protector or a case lip. If the card rests on the edge of a protector instead of the glass, the match is a fraction of a millimetre off over the card's width.
  • A different device. An iPad or a laptop has a different pixel density and needs its own calibration.

Rotating the phone, switching units and scrolling the page do not change the scale, so none of those need a new calibration.

Fitting more ruler onto a small screen

Two things help on a phone. Rotating the ruler uses the long edge of the screen rather than the short one, which roughly doubles the length you can measure in one go. Fullscreen, where Safari allows it, hides the browser bars and gives a little more room; on iPhone Safari a web page cannot take over the screen, so rotating is the more reliable option there.

For anything longer than the screen, measure it in parts: note where the first part ends, move the object so that point sits on zero, measure again, and add the readings. Each part adds its own matching error, so for a long object a tape measure is still the better tool.

What the readings are good for

On a calibrated phone, the ruler is good for everyday checks where a millimetre or two does not matter: whether a screw is M4 or M5, whether a photo fits a frame, how wide a coin is, how long a strap needs to be. It is not a caliper, and it is not suitable for anything where a wrong measurement has consequences, such as legal, medical, engineering or safety-critical work. The accuracy page works through the error sources in detail, and the calibration guide covers the card and coin methods step by step.

Android and other phones

The same page runs in Chrome and other Android browsers, and fullscreen normally works there. The steps are the same: calibrate on the phone itself, keep the browser at 100% zoom, and hold the object flat against the glass. If you are measuring on a laptop instead, start from the online ruler, where the ruler opens horizontally.

Frequently asked questions

Can I use this online ruler in Safari on my iPhone?

Yes. The page runs in Safari on iOS and accepts touch dragging. No app, account or download is needed; open the page and the ruler is there.

How do I calibrate the ruler on an iPhone?

Turn the phone to landscape first. An ID-1 bank card is 85.60 mm wide and a portrait phone is only about 71 mm across, so the card outline does not fit that way. In landscape the screen is long enough to show the outline at full size. If a card is not at hand, calibrate against a 1 euro coin (23.25 mm) or a US quarter (24.26 mm) instead.

Why does the ruler not match a real ruler on my iPhone?

Three usual causes: the page was never calibrated, Safari zoom is not at its default, or you pinch-zoomed the page. Pinch zoom enlarges everything on screen without changing the layout, so a calibrated ruler no longer matches the object. Pinch back to the default size and calibrate again if the reading is still off.

How long an object can I measure on an iPhone?

A 6.1-inch phone shows roughly 7 cm across the short edge and about 15 cm along the long edge. For anything longer, measure it in parts and add the readings up, or use the vertical ruler and work down the screen.

Does fullscreen work in Safari on iPhone?

Web pages cannot take over the whole screen in Safari on iPhone, so the fullscreen button may do nothing there. Rotating to landscape gives the same longer measuring edge without it.

Does it send anything from my phone?

No. Nothing is uploaded and there is no file picker. The only thing stored is your calibration value, in Safari's local storage on that phone, and it is removed when you clear the site's data.

Does it work on Android too?

Yes. Android browsers run the same page, and fullscreen normally works there. Calibrate on the phone itself rather than reusing a value from a computer, because the pixel density is different.

Can I reuse the calibration from my computer?

No. The calibration belongs to one screen at one zoom level. A tablet or laptop has a different pixel density, so it needs its own calibration.