Online Ruler
Hold a credit card (85.60 × 53.98 mm) to the screen and adjust the scale until the card shape matches it; the ruler then shows true centimeters and inches. Uncalibrated, 1 inch is just 96 CSS pixels, which is rarely the real size.
How to use
- Hold a credit card flat against the screen. Pick the long or short edge, then use the slider or the plus and minus buttons until the on-screen card matches the real one.
- Place the object next to the ruler on the screen. Drag the marker, or use the left and right arrow keys, to the end of the object.
- Read the length in centimeters, millimeters, decimal inches and the nearest 1/16 inch fraction. Your calibration is saved in this browser.
How it works
A bank card follows ISO/IEC 7810 ID-1: 85.60 mm by 53.98 mm. When the on-screen card has the same edge length as the real one, the page knows how many CSS pixels make one millimeter.
The marks are then drawn at 1 mm steps for centimeters and 1/16 inch (25.4 mm ÷ 16) steps for inches. The measured length is the marker distance in pixels divided by pixels per millimeter.
Browsers cannot read the true screen size, and zoom changes the pixel size, so recalibrate after zooming. Accuracy is about one millimeter on a careful match.
FAQ
How accurate is an on-screen ruler?
After calibrating with a card it is typically within about 1 mm over 10 cm. Match the edge of the card exactly, and keep the browser zoom at the same level you used for calibration.
I do not have a credit card. What else can I use?
Any bank, ID or transit card of the standard size works, since they share the 85.60 × 53.98 mm format. A ruler you already own also works: slide the scale until the on-screen 10 cm mark matches it.
Why is the ruler too small or too big at first?
Screens differ in pixel density and browsers assume 96 pixels per inch. Calibration replaces that assumption with the real size of your screen.
Does it work on a phone?
Yes. Start with the short edge so the card fits the screen. The ruler is as long as your screen is wide, so use it for small objects.