Not calibratedEstimated · calibrate for best results
X: 0.0 cm | Y: 0.0 cm
Click anywhere to place guide lines
Place an object against marked edges or click to drop precision reference lines.
Scale is an estimate until calibrated
0SCREEN SPACE
Measurements depend on display settings and calibration.
ACCURACY
True size, even when you zoom
Most online rulers quietly change size the moment you zoom your browser in or out — the centimetres you see are no longer real centimetres. OnlineRuler.info compensates for zoom automatically: it tracks your screen's pixel ratio and re-scales, so 10 cm on screen stays 10 cm at 50%, 100% or 200% zoom. Calibrate once, then measure with confidence.
✓Zoom-proof: physical size stays invariant at any browser zoom level
✓Calibrated to your screen: PPI detection + manual calibration flow
✓No install, no sign-up: real-size cm, mm and inches in your browser
HOW IT WORKS
How an on-screen ruler knows what a centimetre is
A screen has no fixed physical size — the same page renders on a 13-inch laptop and a 32-inch monitor. What every screen does have is pixels, packed at a fixed density. This ruler estimates your display's density in pixels per inch (PPI), then draws each centimetre, millimetre and inch using exactly that many pixels, so the scale on glass matches the scale on a physical ruler.
It starts with pixels per inch
Every display packs a set number of pixels into each inch — around 90 to 110 on typical desktop monitors, over 400 on a modern phone. The ruler reads your screen's resolution and pixel ratio, matches them against known display data, and uses the result as its yardstick: at 110 PPI, one true inch of scale is drawn 110 pixels wide. Wrong density in, wrong size out — which is why calibration exists.
Why two screens show two sizes
Operating-system scaling is the usual culprit. At 125% or 150% display scaling, your system stretches every CSS pixel, so a ruler drawn from raw pixel counts would come out oversized. This ruler tracks the device pixel ratio — the number that scaling and browser zoom both change — and redraws the scale whenever that number moves, keeping the physical size steady.
What you can measure with it
Anything you can hold against the screen: a screw or bolt whose size you need, a bank card, jewellery, a phone case, craft pieces, a watch strap, a printout held to the glass to check its scale. The centimetre and millimetre scales suit small parts; the inch scale serves longer objects. For anything bigger than your screen, the printable ruler takes over.
How accurate is it, honestly?
Accuracy is exactly as good as the density estimate behind it. On a common display the automatic estimate is usually within a few percent; after a one-time card calibration it is typically within a fraction of a millimetre across the width of a phone or laptop screen. Plenty for everyday measuring — but for machining tolerances or medical measurements, use a dedicated physical instrument.
CALIBRATION
Calibrate once, measure with confidence
Calibration replaces the estimated density with a measured one, using an object whose size is already known exactly. It takes under a minute, is stored on this device, and offers four ways in:
Bank card — the most reliable
Every bank and ID card follows the ISO/IEC 7810 ID-1 standard: 85.60 × 53.98 mm. Hold one against the on-screen outline and adjust until the edges match. Because the reference is a worldwide standard rather than a guess, this method gives the most trustworthy result.
Screen diagonal
Know your display's size — 13.3, 15.6, 24, 27 inches? Enter the diagonal and the ruler works the density out from your resolution. Best when the screen is a standard model running at its native resolution.
Device presets
Common phones, tablets and laptops are built in with their factory densities. Picking your model skips the maths entirely and lands within a whisker of a manual calibration.
Auto detection
The default. The browser reports what it knows and the ruler estimates the rest — fine for a quick check of a parcel or a photo print. Switch to a card calibration when the measurement actually matters, and re-check after changing displays or scaling settings.
HOW TO USE
How to use the online ruler
1. Open the page
The ruler at the top of this page is live as soon as it loads. Choose your unit — cm, mm, inches or pixels — and the screen edge you want to measure against.
2. Calibrate once with a bank card
Open Calibrate and hold a standard bank card against the on-screen outline, adjusting until they match. It takes under a minute, and the setting is saved in your browser.
3. Place the object against the screen edge
Hold the object flat against the screen with one end lined up on the scale's zero mark — a key, a photo print, a screw or the bank card itself.
4. Read cm, mm or inches
Read off where the object's far edge lands on the scale. Browser zoom does not change the size, so the reading stays true at 50%, 100% or 200%.
REFERENCE SIZES
Everyday objects at exact size
ObjectExact size
Credit card (ISO/IEC 7810 ID-1)85.60 × 53.98 mm
A4 sheet210 × 297 mm
US quarter, diameter24.26 mm
FAQ
Online ruler questions
Is this online ruler actual size?
Yes — once calibrated, the centimetres and inches on screen are true physical size on your display. Without calibration it uses an automatic estimate that is close on most common screens; the card check takes a minute and settles it.
How accurate is an online ruler?
After a one-time calibration with a bank card, it is accurate to the millimetre for everyday measuring. Without calibration it runs on an automatic estimate that is close on most screens, so calibrate first when the measurement matters.
Does an online ruler stay accurate when I zoom?
This one does. Browser zoom changes the pixel ratio the page is drawn with; this ruler watches that ratio and re-scales on every change, so the measurement stays true at 50%, 100% or 200% zoom — rulers drawn once from raw pixels grow and shrink instead.
Can I measure in cm and inches?
Yes. The ruler draws centimetre/millimetre and inch scales from the same calibrated base — switch units above and the scale redraws at the identical physical size.
How do I calibrate the online ruler?
Open the calibration panel, hold a standard bank card (85.60 mm wide) against the on-screen card outline, and adjust the scale until the outline matches the card. The setting is saved in your browser for next time.
RELATED TOOLS
Related tools
Printable Ruler
Print a true-size paper ruler in centimeters or inches with adjustable scale and paper size.
An online screen ruler displays length markings in centimeters, millimeters, inches, or pixels. Calibrate against a known physical reference before measuring an object on your screen.
How does screen ruler work?
The ruler maps browser pixels to length using a saved calibration factor. A standard ID-1 card is 85.60 mm wide. Display presets and diagonal calculations provide estimates that need physical verification.
Set browser zoom to 100% and open Calibrate.
Match a known reference to the displayed scale and save the calibration.
Align the object with zero, read its length, and verify important measurements with a physical ruler.
What should I check before relying on it?
Zoom, operating-system scaling, display changes, card alignment, and viewing angle affect the result. Recheck calibration after changing displays or zoom. This is a reference tool, not a certified measuring instrument.
References and responsibility
ISO/IEC 7810 — The identification-card standard defines the physical characteristics used for card-based calibration.
W3C CSS units — CSS defines 96 px per inch; this relationship does not guarantee a physical inch on every display.
NIST unit conversions — Length and angular unit conversion factors, including inches, meters, degrees, and radians.