SuperDevTools

Online ruler (actual size)

A B

Drag the ruler to move it and drag the red markers A and B to measure. Keyboard: arrow keys on a marker (Shift for 1 cm or 1/2 inch).

Calibrate the ruler

A screen doesn't know its physical size: the browser only reports pixels. Without calibration the ruler assumes 96 pixels per inch, which is often off by 10 to 50%. Calibrate once and the setting is kept on this device.

Calibration method

Take an ID-1 size card (85.60 × 53.98 mm, the size of bank cards and many ID cards and driver's licenses). Hold it against the screen, corner on the top left corner of the rectangle, then move the slider until the rectangle is exactly as wide as the card.

Everything happens in your browser: nothing is sent.

An on-screen ruler that shows real inches and centimeters

No tape measure nearby? This online ruler draws inches down to 1/16, centimeters and millimeters, or both scales on one ruler. Drag it anywhere, switch it to Vertical, tilt it with the Rotation slider and open it in Full screen. Two red markers, A and B, move with a mouse, a finger or the arrow keys, and the line From A to B shows the length in mm, cm and inches, plus the nearest 1/16 inch.

One thing to know first: a screen doesn't know its own physical size. The browser only reports pixels. Without calibration the ruler assumes 96 pixels per inch, a theoretical value that is often off by 10 to 50%. So you calibrate it once.

How to calibrate the ruler

  1. Under Calibrate the ruler, pick a method.
  2. ID-1 size card: the standard size of bank cards, many ID cards and US driver's licenses (85.60 × 53.98 mm, about 3 3/8 × 2 1/8 in). Hold the card against the screen, corner on the top left corner of the blue rectangle, and move the Size on screen slider until the rectangle is exactly as wide as the card. The − and + buttons fine-tune by half a pixel.
  3. Coin: enter its diameter (quarter: 24.26 mm; nickel: 21.21 mm; penny: 19.05 mm) and match the circle.
  4. Letter or A4 sheet: on a large screen, line up both marks with the short side of a Letter sheet (8.5 in).
  5. Screen diagonal: type the diagonal in inches and the native resolution, then press Apply.

The calibration is saved in this browser, on this device. Clear calibration returns to the theoretical scale.

The math, with two examples

The ruler needs a single number: how many pixels make one millimeter. With the card, if the rectangle spans 400 px for 85.6 mm, that is 400 ÷ 85.6 = 4.673 px per mm, or 118.7 px per inch. The 10 cm mark then sits 467.3 px from zero.

With the diagonal, a 27-inch monitor at 2560 × 1440 has a diagonal of √(2560² + 1440²) = 2,937 pixels, so 2,937 ÷ 27 = 108.8 pixels per inch. System display scaling (125%, 150%) is taken into account.

Carefully calibrated, the ruler is accurate to about 1 mm (roughly 1/25 in) over 4 inches. The card method is the most reliable because you compare two edges directly; advertised diagonals are often rounded.

What people use it for

  • Checking a screw or bolt: a #8 wood screw is about 4.2 mm (0.164 in) across.
  • Finding a ring size: a ring with a 17.3 mm inner diameter is a US size 7.
  • Checking a 2 × 2 inch passport photo, a battery or a drill bit.

Watch the browser zoom: it changes the size of a pixel. If you zoom in or out, or drag the window to another monitor, the tool shows a warning. Reset zoom to 100% (Ctrl+0 or Cmd+0) or calibrate again.

FAQ

Why isn't the ruler accurate before calibration?

The browser doesn't tell web pages how big the screen is. Only an object of known size, or the diagonal you enter, links pixels to millimeters.

Do I need to calibrate every time?

No, the setting is remembered in this browser. Calibrate again on another device or another monitor.

How accurate is it?

About 1 mm over 10 cm with a careful card calibration. Look at the screen straight on: from an angle, an object held against the glass looks shifted.

Does it work on a phone?

Yes, the ruler and markers move with your finger. Use the card method: a Letter sheet is too wide for a phone screen.