ToolsPixel LogoToolsPixel
Typing TestCase ConverterScreen RecorderGuides
ToolsPixel LogoToolsPixel

A comprehensive library of free, client-side online utility tools. Processed entirely on your local device for ultimate privacy and speed.

By ForITus Solutions

Device & Screen

  • Network Speed Test
  • Keyboard Checker
  • Dead Pixel Checker
  • Touchscreen Test
  • Online Compass
  • Screen Recorder

Location & Time

  • IP Address Finder
  • Lat & Long Finder
  • Compare Time
  • Stopwatch & Timer
  • Online Measuring Tape
  • Online Protractor

Text & Media

  • Word Counter
  • Text Converter
  • Typing Speed Test
  • Voice Recorder
  • Age Calculator

Guides & Blog

  • All Guides
  • Typing Speed WPM Guide
  • Dead Pixel Test Guide
  • Mbps vs. Megabytes Explained
  • Compass North Guide

About & Legal

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms & Conditions

© 2026 ToolsPixel. A project of ForITus Solutions Pvt. Ltd. — 100% private, client-side web tools.

All Systems Operational

Online Ruler & Measuring Tape

Calibrated virtual ruler for measuring small objects on your screen. Supports centimeters, millimeters, and inches — calibrate once with a credit card, measure anything.

Measurement Unit
Calibrate Screen PPI (96 DPI)
Credit Card Calibration

Place a real credit card against your screen and adjust slider until the box below matches your card size:

Credit Card (85.6mm / 3.37in)
0"
1"
2"
3"
4"
5"
6"
7"
8"
9"
10"
11"

What This Online Ruler Does

This tool renders a calibrated ruler directly on your screen, converting your display's physical pixel dimensions into real-world measurements. It uses a DPI calibration system— you set your screen's true pixel-per-inch density by placing a physical object of known size (like a standard credit card) on screen and adjusting a slider until it matches. Once calibrated, every ruler marking accurately represents millimeters or inches in physical space. The calibration is saved in your browser, so you only do it once per device.

Who Uses a Screen Ruler and Why

Craftspeople and DIY makersuse it to quickly check whether a small hardware part — a bolt, hinge, bracket, or connector — matches a required size when a physical ruler isn't at hand. Placing the part directly on the screen next to the ruler gives an immediate size reference.

Online shoppers use it to verify product dimensions shown in listing photos. Placing a phone next to the screen and comparing listed dimensions against the ruler helps avoid returns from size surprises on jewelry, accessories, or small electronics.

Graphic designers and print professionals use it to verify that a design element at a specific print size (e.g., a business card at 85mm × 55mm) actually renders correctly on their design software canvas before sending to print.

Educators and students use it to measure diagrams, scale drawings, and images in textbooks or PDFs displayed on screen — especially when physical measurements of map scales or technical drawings are needed for calculation.

Jewelers and watchmakers use the high-resolution display of a modern phone as an improvised magnification and measurement aid for small components — ring sizes, watch strap widths, gemstone dimensions.

How to Calibrate and Use the Ruler

  1. Get a credit card. Any standard bank, loyalty, or ID card (ISO 7810 ID-1: 85.6mm × 53.98mm) works as your calibration reference.
  2. Click "Calibrate". Place the credit card flat against your screen and use the slider to resize the on-screen card until it perfectly matches your physical card.
  3. Your PPI is now set. The ruler scale updates to accurately represent real millimeters and inches for your specific display.
  4. Place your object. Lay any small object along the ruler edge and read its measurement directly off the scale.
  5. Toggle units. Switch between cm/mm and inches using the unit buttons above the ruler.

How the Ruler Calibration Works Technically

Web browsers expose the screen resolution (screen.width, screen.height) and the device pixel ratio (window.devicePixelRatio), but not the physical dimensions of the screen itself. Without knowing the actual screen width in inches, you cannot derive true PPI from the browser alone.

The calibration step bridges this gap. By asking you to match an on-screen element to a physical object of known real-world size, the tool back-calculates your display's actual PPI: PPI = rendered_width_in_pixels / known_physical_width_in_inches. Once PPI is known, every pixel measurement can be converted to physical inches or millimeters with standard arithmetic.

The calculated PPI is stored in localStorage and retrieved on subsequent visits. No server communication occurs — all computation runs entirely in the browser.

Limitations & Accuracy Notes

Curved monitors: PPI varies across a curved screen — the center calibration may not perfectly match the edges. Accuracy degrades toward the screen edges.

High-DPI / Retina displays: These displays report a devicePixelRatio of 2× or 3×. The calibration accounts for this, but ensure your browser zoom is at 100% before calibrating.

Operating system scaling: Windows display scale settings (125%, 150%) affect pixel reporting. Calibrate with the credit card method rather than entering PPI manually, as this bypasses scaling issues.

Maximum measurement range: The ruler length is limited to your screen width. For objects larger than your screen, this tool is not appropriate.

Frequently Asked Questions

How does screen scale calibration work?
Every monitor, phone, and tablet has a different physical pixel density (PPI). Browsers know the screen resolution in pixels but not the physical display size. By placing a physical object of known size — like a credit card (exactly 85.6 mm × 53.98 mm, ISO 7810 ID-1 standard) — on your screen and dragging the calibration slider until the on-screen card matches the physical card, you set the actual PPI. The ruler then converts pixels to real-world millimeters or inches accurately.
What is PPI and why does it matter for accuracy?
PPI (Pixels Per Inch) is the number of physical pixels packed into one inch of screen space. A 27-inch monitor at 1920×1080 has about 82 PPI, while a phone display might be 400+ PPI. The same measurement in pixels corresponds to very different physical distances depending on the screen. Without knowing your screen's exact PPI, an online ruler cannot accurately represent real-world dimensions.
Can I switch between inches and centimeters?
Yes. The ruler displays both a centimeter/millimeter scale and an inch scale simultaneously, or you can toggle to show only one. The PPI calibration is shared — you only calibrate once and both scales update automatically.
Will my calibration save between sessions?
Yes. Your calibrated PPI value is saved in your browser's localStorage. The next time you open the page on the same browser and device, your calibration is automatically restored. If you clear your browser cache or switch to a different device, you will need to recalibrate.
How accurate is this virtual ruler once calibrated?
On flat, non-curved screens, accuracy is typically within ±1mm of a physical ruler for measurements under 30cm. Accuracy degrades for curved monitors (like ultrawide gaming monitors) because the pixel density varies across the curve. For precise engineering measurements, always use a physical tool. For everyday tasks — checking a bolt size, verifying a photo print dimension, or measuring a card slot — this is more than sufficient.
What objects can I use to calibrate if I don't have a credit card?
Any object with a known standard size works: a US dollar bill is exactly 156mm (6.14 inches) wide, an A4 paper sheet is 210mm wide, a standard keyboard key cap is approximately 15mm wide. Place the object on screen and adjust the calibration slider until the on-screen representation matches.
Does this work on mobile phones?
Yes. Mobile phones work well for measuring small objects. The high PPI of most phone displays means the ruler is especially accurate on modern smartphones. Use a credit card to calibrate — hold it flat against your screen and drag the calibration slider until the on-screen card matches exactly.
Can I measure objects longer than my screen?
The on-screen ruler is limited to your physical screen width. For objects wider than the ruler, measure in sections: note where one end aligns, mark that point, then reposition and measure the remaining length. For objects significantly larger than 30cm, a physical tape measure will be more practical.
Why do different browsers show slightly different calibrations?
Some browsers apply display scaling or DPI scaling that can offset pixel-to-inch calculations. Windows, for example, lets users set display scale to 125% or 150%. If your operating system display scale is not 100%, account for this in your PPI calibration — or use the physical credit card method, which corrects for scaling automatically.
Is this ruler useful for shipping — measuring packages?
For small packages (under 30cm), yes — particularly for checking whether something fits within specific mail size limits (like a padded envelope or small parcel). For larger boxes, measure physically. The ruler is also excellent for verifying whether a screen protector, phone case, or small accessory matches a specific device size.

Related Guide

Learn how to measure objects using your phone screen in practical everyday scenarios.

How to Measure Objects with Your Phone Screen →

Related Tools

📐

Online Protractor

Measure angles online with an interactive virtual protractor.

🖥️

Dead Pixel Checker

Test your monitor or smartphone display for stuck or dead pixels.

👆

Touchscreen Test

Test your mobile or tablet touchscreen multi-touch points.

🧭

Online Compass

Find your direction online using your mobile device's compass sensor.

📖

Related Guide

How to Measure Objects with Your Phone Screen (Accurately)
Read →