Online Ruler

Ruler on Full Screen

Choose a screen edge or place an object to measure.

·
Precise Online Measurements on Screen

Online Ruler — Actual Size on Screen

Welcome to onlinelineyka.com — a precision online ruler that instantly turns any phone, laptop, tablet, or desktop monitor into a 1:1 scale measuring tool. No need to search for a physical ruler, tape measure, or caliper for quick measurements of small objects. Our virtual ruler online works for free directly in your browser — nothing to download or install.

Whether you're at home, school, a workshop, or on the go, a reliable ruler online is always at hand. Simply open the site on your device's screen, place the object you need to measure against it, and get an accurate result in millimeters or centimeters.

How the 1:1 actual-size ruler works

Every screen is made up of millions of LEDs or liquid crystals grouped into pixels. The key characteristic of any display is its pixel density — PPI (pixels per inch). Standard office monitors run at roughly 96–109 PPI, modern laptop screens range from 140–220 PPI, and smartphone screens can exceed 400–460+ PPI.

If a ruler image is displayed without accounting for the display's characteristics, one centimeter on a phone will appear 3–4× smaller than real life, and several times larger on a big TV screen. Our virtual ruler solves this programmatically: the algorithm reads the DPR (Device Pixel Ratio) scale factor, the actual viewport resolution, and hardware screen parameters.

For uncompromising 1:1 physical accuracy, two quick calibration methods are available:

  • Credit card calibration: Any debit or credit card, driver's license, or loyalty card follows the ISO/IEC 7810 ID-1 standard and measures exactly 85.60 × 53.98 mm. Place the card against the on-screen outline, adjust the slider, and you get perfect 1:1 metrological accuracy.
  • Screen diagonal calibration: Select your monitor's exact diagonal in inches (e.g., 13.3″, 15.6″, 24″, or 27″) and the system instantly calculates the correct scale for your screen.

cm and mm ruler: measurement precision

The metric scale — centimeters (cm) and millimeters (mm) — is the worldwide standard for precise measurements. Our online ruler is rendered at the native pixel resolution of the canvas element, then mathematically scaled to match the physical PPI of your specific screen. This approach guarantees consistent, physically correct dimensions regardless of your operating system, browser, or zoom level.

Each centimeter is divided into 10 clearly visible millimeter divisions, with a prominent 5 mm midpoint mark. The ruler supports both horizontal and vertical orientations, and can be attached to any of the four screen edges — top, bottom, left, or right.

Features of the online ruler

Three unit modes

Switch between centimeters, millimeters, and inches (up to 1/16") in one tap.

Four edge positions

Attach the ruler to the top, bottom, left, or right side of your screen.

Calibration wizard

Set exact PPI using a credit card or your screen diagonal.

Crosshair guides

Interactive guide lines for precision placement and measurement.

Dark & light themes

Automatic theme detection; also manually switchable.

Works offline

Once loaded, the ruler works without an internet connection.

Frequently asked questions

How accurate is the online ruler?

After calibration (via credit card or screen diagonal), the ruler achieves ±0.1–0.3 mm accuracy, which is sufficient for everyday measurements.

Does the ruler work on iPhone and Android?

Yes. The ruler works in the browser on any modern smartphone — iPhone (Safari), Android (Chrome, Firefox), or tablet.

Why do I need to calibrate?

Browsers don't provide the exact physical PPI of a display. Calibration bridges this gap: the algorithm computes the correct pixels-per-cm ratio for your specific screen.

Can I measure in inches?

Yes. Press "in" in the toolbar or press keyboard shortcut "2" to switch to inches. Each inch is subdivided into 1/16 fractions.