Online ruler
A ruler in centimetres, millimetres and inches drawn on your screen. Calibrate it once with a standard bank or ID card and the markings match real size on that screen, so you can measure small objects held against the display.
Not calibrated: the scale is a guess (96 CSS pixels per inch). Calibrate with a card below before measuring.
- Pointer position
- —
- Screen pixels per inch
- —
- Screen diagonal (estimate)
- —
- Device pixel ratio
- —
Calibrate with a bank or ID card
Hold a standard card (bank, ID, loyalty or driving licence card: 85.60 × 53.98 mm) flat against the screen and adjust the outline until its width matches the card exactly, then save.
Calibrate with the screen size
Enter the diagonal of the display in inches and its native resolution. The resolution is prefilled from what the browser reports, which may differ from the native one; check your display settings.
Browsers do not know the physical size of your screen. Without calibration the ruler uses the CSS standard of 96 pixels per inch, which is rarely exact. Browser zoom and moving the window to another monitor change the scale; the calibration is stored only in this browser.
How to use the ruler
- Open Calibrate with a bank or ID card and hold a card flat against the screen, with its left edge on the left edge of the dashed outline.
- Move the slider, or press − and + for single-pixel steps, until the outline is exactly as wide as the card. Then press Save card calibration.
- Choose cm / mm or inches (1/16), and Horizontal or Vertical.
- Place the object against the screen with one end on the zero mark. Move the pointer, or tap, over the ruler to read the exact position under Pointer position.
Why a card is used for calibration
Bank cards, ID cards, driving licences and most loyalty cards share the ID-1 size from the ISO/IEC 7810 standard: 85.60 × 53.98 mm (3.370 × 2.125 in). Almost everyone has one at hand, and it is long enough to set the scale to within a fraction of a millimetre.
If you have no card, open Calibrate with the screen size and enter the diagonal of your display in inches and its native resolution. This works well when you know the exact figures, but a rounded diagonal (15.6 in that is really 15.5 in) or a scaled resolution shifts the result, so check it against a real ruler when you can.
Why an uncalibrated ruler is not real size
A web page cannot read the physical size of your screen. Browsers measure in CSS pixels, defined as 96 per inch, and each device maps them to its panel differently: a phone, a laptop and a 27-inch monitor all show “1 cm” at different real lengths. That is why the ruler starts in a clearly marked uncalibrated state.
- Browser zoom and the operating system display scaling change the size of a CSS pixel. The ruler notices a change in the device pixel ratio and adjusts, but recalibrating is more reliable.
- Another monitor: the calibration belongs to the screen it was made on. Moving the window to a different display needs a new calibration.
- The calibration is saved only in this browser on this device.
Readouts
- Pointer position: the distance from zero to the pointer, in cm and mm, or in inches with the nearest 1/16 fraction and the decimal value.
- Screen pixels per inch: the physical pixel density implied by your calibration.
- Screen diagonal (estimate): the diagonal that follows from the calibration and the screen size the browser reports. A large mismatch with the real diagonal points to a calibration error.
- Device pixel ratio: physical pixels per CSS pixel. It changes with browser zoom and display scaling.
Accuracy and limits
- With a careful card calibration, expect accuracy of about half a millimetre over the length of the card, and proportionally less over longer distances.
- The ruler is as long as your screen. For longer objects, measure in steps or use a physical tape measure.
- It is not a certified measuring instrument: do not rely on it for engineering, medical or legal measurements.
- To print a ruler on paper, a printed page depends on the printer's scaling; print at 100% (Actual size) and check it with the printer alignment test page.
For other screen checks, see the dead pixel test and the lightbox for tracing.
Questions
Is this ruler actual size?
Only after calibration. Without it, the ruler uses the CSS standard of 96 pixels per inch, which rarely matches the real size of a screen. Calibrate with a bank card and it shows actual size on that screen.
What size is a bank card?
Bank, ID and most loyalty cards use the ID-1 format: 85.60 × 53.98 mm, about 3 3/8 × 2 1/8 inches.
Does it work on a phone?
Yes. Calibrate on the phone itself, since its pixel density is different from your computer's. Turn the phone sideways or switch to the vertical ruler for longer objects.
Why did the scale change?
Browser zoom, the operating system display scaling or moving the window to another monitor change the size of a CSS pixel. The ruler adjusts for zoom, but recalibrate if the readings look off.
Related tests
- Dead pixel testFull-screen colours to find dead, stuck and hot pixels on any screen.
- Lightbox for tracingTurn a tablet or laptop into a bright, even light box that ignores your pencil while you trace.
- Alignment test pageRulers, margin frames, circles and fine vertical lines to check scale, skew and print-head alignment.
- Uniformity testFull-screen greys to spot clouding, vignetting, banding and dirty screen effect.
- Backlight bleed testDark full-screen fields to tell backlight bleed, IPS glow and clouding apart.
- Black & white level testNear-black (1–20) and near-white (235–254) patches to spot black crush and white clipping.
- Gradient testGrey, red, green and blue ramps from 0 to 255 to spot colour banding, with 16–256 step references.
- Screen colour testFull-screen solid colours: red, green, blue, yellow, purple, pink and any custom colour.
- Touch screen testDraw over the whole screen to find dead zones and check multi-touch.
- Ghosting testMoving objects at three labelled speeds on four backgrounds to compare ghosting, smearing and overshoot.
- Refresh rate testMeasures how many frames per second this browser tab draws, with late frames and jitter.
- Frame skipping testA grid that lights one cell per frame; a long-exposure photo shows skipped frames as gaps.
- White screenA plain white full-screen page for checking, cleaning or lighting.
- Black screenA pure black full-screen page to find bright pixels and backlight bleed.
- Red screenA full-screen red light in four brightness levels, from pure red to very dim.
- Pink screenA full-screen pink light in soft shades, for selfies, video calls and backgrounds.
- Screen lightUse your screen as a soft light for video calls and selfies, in warm, neutral or cool white.
- Screen tearing testFast vertical bars that break into a visible tear line when a frame is shown mid-refresh.