Online Ruler – Actual Size in cm, mm and Inches

Online ruler

A real-size ruler on your screen in centimetres, millimetres and inches. Calibrate it once with a bank card, your screen size or an A4 sheet – a browser does not know how big a pixel physically is.

Not calibrated 3,78 px/mm DPR —
Distance A–B
5,00cm
50,0 mm

Drag markers A and B, or tap the ruler to move the nearest one. Put the object at the 0 line.

←→move a marker 1 mm (Shift: 10 mm)

Not calibrated: the browser’s nominal scale (96 CSS pixels = 1 inch) is used, which is rarely the real size. Calibrate once for accurate measurements.

The calibration is stored only in this browser on this device (localStorage). There is no print or full-screen mode: printers rescale pages, so a printed ruler would not be reliable.

How to measure accurately with an on-screen ruler

Web pages measure in CSS pixels. By definition 96 CSS pixels make one inch, but a real screen shows them at whatever size its pixel density and scaling setting produce – on a typical laptop a nominal centimetre can be noticeably shorter or longer than a real one. That is why this ruler asks for one calibration with an object of known size and then remembers it for this device.

How to use the ruler

  1. 1 Press Calibrate and choose a method: a bank card (the most accurate for most people), your screen diagonal, or the short edge of an A4 sheet.
  2. 2 Line up the frame with the real object and save. The ruler is redrawn in real millimetres and 1/16-inch steps.
  3. 3 Put the object at the 0 line and drag markers A and B (or use the arrow keys). The distance appears in cm, mm and inches.

Why the browser needs a calibration

A browser knows the screen resolution and the device pixel ratio (DPR), but not the physical size of the panel. CSS units such as cm and in follow the 96-pixels-per-inch convention, not the real screen. Phones and high-density screens usually show a CSS pixel smaller than 1/96 inch, large monitors often larger. Measuring one object of known size fixes the ratio for your screen.

Bank card, screen size or A4

Bank cards, credit cards and most ID cards follow ISO/IEC 7810 ID-1: 85.60 × 53.98 mm, so they are a precise reference that most people have at hand. The screen-size method computes pixels per inch from the diagonal and the physical resolution – the same calculation as on our screen resolution page – and is only as good as the diagonal you enter, which manufacturers often round. An A4 sheet (ISO 216: 210 × 297 mm) works on larger screens. Hold the object flat against the screen and look straight at it to avoid parallax.

Zoom, DPR and display scaling

Browser zoom changes the device pixel ratio: at 125 % one CSS pixel covers 1.25 times as many device pixels. The calibration is stored in device pixels per millimetre, so in Chrome, Edge and Firefox the ruler corrects itself when you zoom and shows a notice. Moving the window to another monitor or changing the system resolution means a different physical scale, and the page asks you to recalibrate. Pinch zoom on a phone magnifies the whole page – zoom back out before measuring. Some browsers (Safari, for example) do not report zoom in the DPR, so measure at 100 % there.

Why there is no print or full-screen mode

When a page is printed, the print dialog and the printer driver often scale it (“fit to page”, margins, paper format), so a printed ruler is rarely true to size – for paper work, use a real ruler or a template that prints its own check length. Full screen does not make the ruler any more accurate, and changing the window size while measuring only adds confusion, so it is not offered. For the best results, keep the zoom at the level you calibrated and recheck now and then with the card.

Online ruler – frequently asked questions

Only after calibration. Without it the page uses the CSS convention of 96 pixels per inch, which is rarely the real size of your screen. After calibrating with a bank card, the remaining error mainly comes from how precisely you lined up the edge: one pixel of misalignment over the 85.6 mm card is about 0.3 % on a typical laptop screen.
New
Screen Resolution See your screen resolution in CSS and physical pixels, live viewport size, device pixel ratio, color depth, HDR and color gamut. Copy it all, or work out your PPI.
Popular Today
Keyboard Tester Free online keyboard tester: press keys and see each one light up on an ANSI or ISO layout. Check dead keys, key rollover (ghosting) and chatter.

Other device tests

Keyboard Tester Free online keyboard tester: press keys and see each one light up on an ANSI or ISO layout. Check dead keys, key rollover (ghosting) and chatter.
Mouse Test Free online mouse test: check left, middle, right, back and forward buttons, catch unwanted double clicks, count scroll wheel steps and estimate polling rate.
Mic Test Free online mic test: live level in dBFS, waveform and spectrum, clipping warning, device and sample rate, 5-second playback. Nothing is recorded or uploaded.
Webcam Test Free online webcam test: live preview, real resolution and measured frame rate, requested vs delivered 720p/1080p/4K, mirror view. Nothing is recorded or uploaded.
Speaker Test Free speaker and headphone test: play sound on the left, right or both channels, check phase (polarity) and run a 20 Hz-20 kHz sweep. Starts at a low volume.

More tests and quizzes

Typing Speed Test Free typing test in 14 languages with random words or real text that never runs out: 30 seconds, 1 or 2 minutes. Get WPM, raw WPM, accuracy, errors and CPM.
Reaction Time Test Free reaction time test: wait for green, click and see your time in milliseconds. Average of 5 tries, best and worst, history and personal best.
Click Speed Test Free CPS test: click as fast as you can for 1, 5, 10, 30 or 60 seconds. See clicks per second, fastest second, gaps between clicks and your personal best.
Number Memory Test Free number memory test: remember a number that grows by one digit each round and find your digit span. Classic or 3-lives mode, history kept in your browser.
Color Blindness Test Free online color blindness test: 14 dot plates for red-green and blue-yellow color vision, number or shape mode, instant result. Not a medical diagnosis.