tangentbits

Online Ruler – Actual Size in inches, cm & mm (To Scale)

A free online ruler that shows inches, centimeters, and millimeters at true actual size. Calibrate it to your screen once, then hold an object against the display to measure its length on any phone, tablet, laptop, or monitor.

Calibration:Detecting...

How to use the online ruler

1

Calibrate your screen.

First, make sure your browser zoom is set to 100% (Ctrl+0 or Cmd+0). Then open Calibrate and pick a method: choose your device preset, enter your screen diagonal size, or align a bank card with the on-screen card guide. Calibrating once matches the on-screen ruler to real-world physical units on your display.

2

Turn on the edges you need.

Switch on Top, Bottom, Left, or Right rulers. Several can run at once for a full-frame measuring setup.

3

Choose your unit.

Pick centimeters, inches, or pixels from the toolbar, or switch on the fly using keyboard shortcuts (1, 2, or 3).

4

Place your object.

Rest it flat against the screen edge with one end at the zero mark, and look straight at the screen. Keep sharp or hard objects from scraping the glass.

5

Read or mark the measurement.

Read the mark where the object ends. Click a ruler track to drop a guide line, or turn on Crosshair for a live readout that follows your pointer.

How this online ruler stays accurate

Browsers can't read the physical size of your screen. Web pages measure in CSS pixels, and CSS defines one inch as 96 of them, but that is a layout convention, not a fact about your hardware. Real screens vary widely: a 24-inch 1080p monitor has about 92 physical pixels per inch, a 13.3-inch laptop with a 2560 × 1600 display about 227, and many phones more than 400. A ruler that simply trusts the 96-per-inch convention is only close on some screens, and noticeably too short or too long on many others.

This online ruler tool asks for one piece of real-world information and turns it into an exact pixels-per-inch value:

  • Device presets. Pick your model from the list and the ruler uses its known screen size and resolution.
  • Screen diagonal. Enter the corner-to-corner size of your screen. Pixel density is the diagonal in pixels, √(width² + height²), divided by the diagonal in inches. A 1920 × 1080 screen measuring 24 inches works out to about 92 PPI.
  • Bank card. Standard bank cards follow the ISO/IEC 7810 ID-1 size: 85.60 × 53.98 mm (3.370 × 2.125 in). Match a card to the on-screen outline and the ruler scales to it. This is usually the most reliable method, because it is checked against your actual screen rather than a spec sheet.

Auto-detect makes an educated guess from your screen's resolution and pixel density, so treat it as a starting point and confirm it against a card or a known object. Keep your browser zoom at 100%: zooming changes the scale, so recalibrate if you change it.

Screen ruler vs. AR camera measuring: AR camera apps (such as Apple Measure or Google’s AR measuring tools) estimate distances using augmented reality. They are handy for larger objects like furniture and rooms, but readings are often off by a centimeter or more. For small objects you can hold against the screen, a calibrated screen ruler is far more precise because it aligns directly with your display's physical pixel grid.

Read the longer write-up: Why your on-screen ruler is probably the wrong size

What you can measure with an online ruler

Small objects around the house

Screws, batteries, keys, coins and jewelry when there's no ruler or tape to hand.

Documents and photos

Check the size of a printed photo, ID card, SIM card or memory card.

Crafts, sewing and DIY

Measure fabric swatches, beads, buttons, paper and miniature models.

Design and print checks

Compare a printed label, sticker or packaging sample against its intended size in millimeters or inches.

Online ruler FAQ

Is there a ruler online?+
Yes. Tangentbits Online Ruler is a free browser-based ruler that displays inches, centimeters, and millimeters at true actual size once calibrated to your screen, without requiring downloads or app installation.
How to use an online ruler?+
Set your browser zoom to 100%, calibrate your screen once using a standard bank card or screen diagonal, select your edge (Top, Bottom, Left, or Right), choose your unit (cm, in, or px), and align your object against the screen edge with one end at the zero mark to read the length.
How to read a ruler online?+
Look straight at the screen to avoid viewing angle offset. In inches, the ruler marks halves, quarters, eighths, and sixteenths. In centimeters, the numbered ticks represent centimeters and the smaller tick subdivisions indicate individual millimeters.
How to measure cm online?+
Select the 'cm' toggle in the toolbar (or press 1 on your keyboard). Place your object against the ruler edge starting at zero; each numbered mark represents one centimeter and each minor tick represents one millimeter.
How to identify 1 inch?+
On this calibrated ruler, select inches (press 2) and check the distance between 0 and 1. As a physical reference, standard debit or credit cards measure 3.37 inches wide by 2.125 inches tall, and a US quarter is roughly 0.95 inches in diameter.
Can I use my phone or a smartphone as a ruler?+
Yes. Open this page in your mobile browser, select an edge, and rest your object along the flat bezel with one end at zero. Pinch-zoom is automatically disabled across the ruler area so the physical scale cannot accidentally change.
Can I use my camera as a ruler?+
AR camera apps (like Apple Measure or Google AR tools) estimate dimensions using augmented reality, which works well for large spaces or furniture but can drift by a centimeter or more. For small, handheld objects, this on-screen ruler is significantly more accurate because it measures against your display's calibrated physical pixel grid.
Is this online ruler accurate and true to scale?+
Yes, once calibrated. Browsers default to a standard 96 CSS pixels-per-inch assumption which is inaccurate on most modern displays. Calibrating with a standard bank card or screen size computes your exact hardware pixel density for true-to-scale readings.
Can I use this as a 12 inch online ruler?+
Yes, on desktop monitors and larger laptops (15.6 inches or wider), the horizontal ruler easily displays a full 12-inch (or 30 cm) scale. On compact laptops (such as 13-inch displays, which have a physical width of about 11.5 inches) and smartphones, the visible ruler length is bounded by the screen's physical dimensions.
How can I measure an object longer than my screen?+
If your item is longer than your display (such as measuring an 8-inch object on a phone), measure it in segments: lay the item against the ruler, make a light pencil mark or place a small piece of tape on the item where the screen edge ends, slide that mark back to the zero point, and add the measurements together.
How do I calibrate with a bank card?+
First check that your browser zoom is at 100%. Then open Calibrate and choose Bank Card. Rest a standard debit or credit card flat against the screen and drag the slider until the on-screen outline matches the card's width, which is 85.60 mm (3.370 in). Select Save & apply and the ruler is scaled to your screen.
My measurement doesn't match a real ruler. What's wrong?+
Check the usual causes: browser zoom isn't at 100%, the calibration was done on a different screen (such as an external monitor), or you're reading from an angle, since the glass and display layers create a small offset when viewed from the side. Recalibrate with a bank card and look straight at the screen.
Does the ruler require installation or an account?+
No. The ruler runs entirely on your device in your web browser. Your screen calibration is stored locally in your browser's local storage so your settings are remembered when you return.

More measurement tools

View Cluster →