Skip to main content
GARGLOO

Online Ruler

Two markers, one card, true size.

Runs on your device

At a glance

Input:
Your screen — drag, click, or type a DPI
Processing:
Runs entirely in your browser — the ruler draws on your own screen and nothing is uploaded or recorded.
Privacy:
Nothing is stored or sent, except your calibration, which is saved in this browser only (ff.online-ruler.v1) so you do not calibrate twice.

Last updated: 2026-11-13

Common use cases

  • A print that came back the wrong size — measure the photo on screen against the 10 cm it should be.
  • A sewing pattern piece — check a 5 cm seam allowance on screen before cutting fabric.
  • A screw or bolt held to the screen — measure its diameter in mm before ordering a replacement.
  • A web mockup — measure a button's real on-screen width in px and cm for a client spec.

About this tool

A free online ruler that measures anything on your screen in px, mm, cm, inches and fractions of an inch (1/16″). Two draggable markers measure width — drag them, click the ruler to move the nearer one, or nudge with the arrow keys — and the vertical pad measures height the same way. Calibration is required before cm and inch numbers mean anything: the browser's 96 px per inch is a guess, and a real display can be off by 30% or more, so the page says so plainly and keeps cm/inch as estimates until you calibrate. Calibrate by dragging the credit-card outline to a real card (85.60 × 53.98 mm, ISO/IEC 7810 ID-1), by typing your DPI, or by entering your screen diagonal. The facts are on the page: 1 inch = 25.4 mm exactly, 1 cm = 37.80 px at 96 PPI, 1 px at 96 PPI = 0.2646 mm, and accuracy after calibration is about ±0.5 mm — a screen ruler, not calipers. Nothing leaves your device: no camera, no upload, no account; only the calibration is saved in this browser.

How to use it

  1. Calibrate first: drag the dashed card outline until it matches a real credit card held against the screen, then save — or type your DPI, or enter your screen diagonal.
  2. Drag markers A and B to the edges of what you are measuring, or click the ruler to move the nearer marker; arrow keys nudge 1 px (Shift: 10 px).
  3. Read the distance in px, mm, cm, inches and the nearest 1/16″ — switch units with the ruler-units control.
  4. Measure height on the vertical pad: click to drop the line at an object's edge, then drag it — the vertical ruler on the left shows the same scale.

Worked examples

Input: Credit card held against the screen, outline dragged to 323 px wide

Output: 96 PPI — the ruler now reads true size

At 96 PPI a card is 323.5 px wide; dragging the outline to the card's real width sets the PPI, and the calibration is saved on this device.

Input: A photo print measured A→B = 500 px, calibrated at 110 PPI

Output: 4.545 in — 11.55 cm — 115.5 mm

500 ÷ 110 = 4.545 in. At the 96 px/in guess the same 500 px would read 5.208 in — the calibration is the whole difference.

Input: A screw head measured before calibration

Output: 38 px — cm and inches shown as estimates

Pixels are exact even uncalibrated; cm and inches stay estimates until you calibrate, and the page says so instead of printing a confident wrong number.

Practical tips

  • Calibrate on the screen you measure on — a laptop and an external monitor have different PPIs, and the saved calibration belongs to one display.
  • Zoom the browser to 100% before calibrating — a zoomed page changes CSS pixels and silently breaks the calibration.
  • Hold the card flat against the glass and line up the left edge first — a tilted card reads wider than it is.
  • Use the 1/16″ readout for woodwork and the mm readout for crafts — the same distance, the unit your material uses.

Common mistakes

  • Trusting the cm numbers before calibrating — the 96 px/in guess can be off by 30% or more, and the page marks uncalibrated readings as estimates for exactly that reason.
  • Calibrating with a loyalty card or a phone — only a standard ISO/IEC 7810 ID-1 credit card is 85.60 mm wide; anything else sets a wrong PPI.
  • Measuring with the browser zoomed — zoom changes CSS pixel size, so a calibration made at 125% is wrong at 100%.
  • Forgetting the calibration is per-device — it is saved in this browser only, so a new laptop or a cleared browser needs calibrating again.

How this compares

Dedicated ruler sites offer the same credit-card calibration, device lists and 1/16″ fractions — this one matches them and adds the vertical pad, the honest uncalibrated-estimate warning, and the same local-only promise. The tradeoff: it measures what is on your screen, so it cannot measure a physical object that is not held against the display.

Good to know

  • Uncalibrated cm, mm and inch numbers are estimates at the 96 px/in guess — they can be off by 30% or more, and the page says so instead of hiding it.
  • Accuracy after calibration is about ±0.5 mm — a screen ruler, not a substitute for calipers.
  • Calibration belongs to one display: a laptop and an external monitor have different PPIs, and the saved value does not follow you to another screen.
  • Browser zoom changes CSS pixel size — a calibration made at 125% zoom is wrong at 100%, so calibrate at 100%.
  • Only a standard ISO/IEC 7810 ID-1 credit card is 85.60 mm wide — loyalty cards and phones are not the same size and set a wrong PPI.
  • Nothing is stored or sent except the calibration in this browser (ff.online-ruler.v1) — clearing it resets the ruler to the uncalibrated guess.

Frequently asked questions

Why do I have to calibrate before the cm numbers mean anything?

A browser only knows CSS pixels — 96 px per inch is a guess, not a fact about your display. A laptop at 141 PPI shows the same 500 px as 3.5 inches, while the 96 guess would call it 5.2 inches — off by almost 50%. Calibrating with a credit card (85.60 mm wide, ISO/IEC 7810 ID-1) tells the page your screen's true PPI, and only then are cm, mm and inches true size. Pixels are exact even before calibration.

How does the credit-card calibration work?

Drag the right edge of the dashed card outline until it is exactly as wide as a real credit card held against the screen, then save. A card is 85.60 mm wide, so the outline's pixel width divided by 3.37 inches gives your screen's PPI — at 96 PPI the card is 323.5 px wide. You can also type your DPI directly, or enter your screen diagonal and let the page compute PPI from your screen's real pixel resolution.

How accurate is it after calibration?

About ±0.5 mm — the same claim the dedicated ruler sites make. Accuracy is limited by your calibration: if the card outline is 2 mm off the real card, every reading inherits that error. It is a screen ruler for crafts, sewing and print sizes, not a substitute for calipers.

What do the 1/16″ fractions mean?

Inches are shown to the nearest sixteenth, the way a physical ruler reads: 0.5625 in is 9/16″, 5.1875 in is 5 3/16″. Fractions reduce — 8/16 shows as 1/2″, 4/16 as 1/4″.

Can I measure vertically too?

Yes — the vertical ruler on the left of the pad shows the same scale, and the pad measures height: click to drop the line at an object's edge, then drag it. The readout gives px, mm, cm, inches and the nearest 1/16″, just like the horizontal markers.

Is anything uploaded or saved?

No. The ruler, the markers and the canvas never leave your browser, and there is no camera involved. The only thing stored is your calibration (PPI + method) in this browser's localStorage, so you do not calibrate twice — clearing it resets the ruler to the uncalibrated 96 px/in guess.

Online Ruler | GARGLOO