How to use the online ruler
Calibrate once, and the ruler opens at actual size from then on.
- Set browser zoom to 100% (Ctrl+0, or ⌘+0 on Mac).
- In Screen calibration below, hold a card against the screen, resize the blue box to match it and press Save calibration. No card? Choose Enter screen size.
- Line up one end of the object with the 0 mark, or drag markers A and B to both ends of it. The distance appears above the ruler in inches, cm and mm.
- For longer objects, switch to Vertical or press Full screen to use the whole screen as a ruler.
Why an on-screen ruler needs calibration
A web page cannot tell how big your screen physically is. The CSS standard simply defines one inch as 96 pixels, so the same "1 inch" is drawn close to an inch on many monitors and much smaller on a phone. Matching an object of known size once fixes that.
Before calibration the ruler uses a typical value for your type of device, which can be off by tens of percent. Not calibrated (estimate) at the top means you have not calibrated yet.
Calibrating with a credit card
Credit and debit cards, and the ID cards and driver’s licenses of many countries, use the ISO/IEC 7810 ID-1 size: 85.60 × 53.98 mm (about 3.37 × 2.125 in). Hold the card lightly against the screen, line up one corner with the corner of the blue box, then move the slider until the opposite edge lines up and fine-tune with the − and + buttons. On narrow phone screens the box stands upright.
Do not use business cards or store loyalty cards, since their sizes vary. Hold the card without pressing on the screen and look straight down at it for the best match.
Calibrating with your screen size
Enter the screen size (diagonal, in inches) from your laptop, monitor or phone specs. The ruler divides the diagonal of this screen’s CSS resolution by that number to get pixels per inch. It is a quick option when you have no card.
Enter the size of the screen the browser window is on. With several monitors, recalibrate when you move the window to another one. On phones, rounded corners and camera cutouts make the advertised size slightly different from the visible area, so matching a card is more accurate.
Tips for accurate measurements
After calibrating, keep these in mind so the scale stays true.
- Browser zoom at 100%: zooming changes the size of the scale. Chrome, Edge and Firefox show a warning when scaling changes. Safari does not report its zoom level to pages, so no warning appears there and you need to check it yourself.
- Look straight on: the thickness of the screen glass makes the marks and the edge of an object look misaligned when viewed at an angle.
- Check with a coin: a US quarter is 24.26 mm (0.955 in) across and a penny is 19.05 mm (0.75 in). Put the markers on both edges of a coin to confirm the calibration.
- Screens with fewer pixels per millimeter have larger errors. For precise dimensions, use a physical ruler or calipers.
Using the ruler on a phone
Switch to Vertical to measure longer objects on a phone. Full screen puts the 0 mark at the edge of the screen and fills the whole screen with the scale. In browsers that cannot make part of a page full screen, such as Safari on iPhone, the ruler covers the area below the address bar instead.
In that case 0 is at the edge of the visible area, not the edge of the glass. If it is hard to line an object up with 0, place markers A and B on both ends and read the distance between them.
FAQ
Can I use it without calibrating?
You can, but the scale may be far from real size. Matching a card takes about a minute, and this browser keeps the value afterwards.
What if I do not have a card?
Calibrate with your screen size instead. To check, measure the short side of a sheet of US Letter paper (8.5 in) or A4 paper (210 mm) with the markers.
What happens if I change the browser zoom?
The scale changes size too and no longer matches real lengths. Chrome, Edge and Firefox show a warning. Return to the zoom level you calibrated at (usually 100%) or calibrate again.
Does the calibration carry over to other devices or browsers?
No. It is saved only in this browser on this device. Pixel size differs between screens, so calibrate each device separately. Clearing browser data also removes it.
How are the inch marks divided?
Each inch is divided into sixteenths, with longer marks for halves, quarters and eighths. On small screens where the marks would be too dense, the ruler stops at eighths.
How accurate is it?
With a careful card calibration it is fine for everyday objects, but pixel size and viewing angle leave a small error. Check it against a coin, and use a physical ruler when precision matters.
Something not working, or a feature you want? Send feedback