Online Ruler — Measure On-Screen (CM & Inches)
No printer nearby? Calibrate a ruler to your exact screen once — it's remembered on this device — then measure small objects directly against the screen, in either centimeters or inches (e.g. checking if something is 12 inches).
Step 1: Calibrate to your screen
Every screen has a different pixel density, so a "1cm" box drawn in pixels is rarely actually 1cm. We auto-detect what we can; for anything else, enter your screen's diagonal size below for an exact match, or drag the slider to match a credit card (85.6mm wide) against your screen.
Step 2: Measure
Once calibrated, place an object against the bottom edge of your screen or hold it up to the ruler below to read its length. The ruler automatically fills your whole screen width — handy for quickly checking something like "is this 12 inches?" without a tape measure.
Why calibration is necessary
Unlike printing — where physical CSS units (cm, mm, in) map correctly to paper as long as your printer isn't scaling the page — a screen has no fixed relationship between pixels and physical size. A 1920×1080 laptop screen and a 1920×1080 external monitor can be completely different physical sizes, so a "1-inch" box drawn in code will look different on each. Calibrating against a real object fixes this for your specific screen.
Prefer a guaranteed-accurate result? Print a ruler instead — paper printing doesn't need calibration as long as your printer is set to 100% scale.
Frequently Asked Questions
How accurate is the on-screen ruler once calibrated?
Very close, but not lab-precise. Entering your screen's exact diagonal size gives the best result; matching the slider to a real credit card by eye is a bit more approximate since it depends on how carefully you line up the edges. For anything you need to cut, build, or submit as an exact measurement, a printed ruler is more reliable.
Do I need to recalibrate every time I visit?
No. Once you save a calibration, it's remembered on that specific device and browser, so you can come back and measure right away. You'll only need to redo it if you clear your browser data, switch browsers, or use a different device or monitor.
Why does the ruler look wrong if I zoom my browser in or out?
Browser zoom changes how many physical pixels represent each CSS pixel, which throws off the calibration that assumed 100% zoom. If your browser is zoomed, reset it to 100% (Ctrl/Cmd + 0) before calibrating or measuring for an accurate reading.
Can I use this on a phone or tablet instead of a laptop?
Yes — the calibration and ruler both work on touchscreens. Phone screens are small, so you're limited to measuring short lengths, but it's handy for a quick check like confirming a phone case or SD card size without a tape measure nearby.
Does switching between centimeters and inches affect my calibration?
No. Calibration is stored as a physical pixel density for your screen, independent of units — switching the toggle between Centimeters and Inches just changes how that same calibrated scale is displayed and read.
What's the most accurate way to measure something exactly 12 inches (or 30cm)?
The on-screen ruler is best for a fast estimate. For an exact 12in or 30cm measurement you plan to rely on, use the custom ruler builder to print one instead — as long as your printer's scale is set to 100%, the printed version removes the screen-calibration variable entirely.