Developer Guide

How to Measure on Screen in Pixels, CM and Inches (Free Online Ruler)

How wide is that button? Is this logo really 5 cm when printed? The ToolTiny Screen Ruler answers both kinds of question: a ruler in pixels, centimetres, millimetres or inches that you can calibrate to real-world size, and a measuring tool for screenshots that gives lengths, angles and CSS pixels. This guide follows a short screen recording; every number below is the one we saw on screen.

Screen Ruler or Measure an Image?

Screen rulerMeasure an image
What you measureAnything visible on your screen, against an on-screen rulerDistances, boxes and angles inside a screenshot or image
UnitsPX, CM, MM, INImage pixels or CSS pixels (1× to 3×)
Real-world sizeYes, after calibrating with a card or your screen sizeNot needed; it works in pixels
Use it forChecking a printed or physical size, quick on-screen checksUI and web design: element sizes, spacing, alignment

Watch the Whole Process

The 35-second recording opens the tool from the menu, switches between PX, CM, MM and IN, turns the ruler vertical, opens the card calibration and moves its slider, then switches to Measure an image, draws a line on a photo and changes the screenshot scale.

How to Measure on Screen, Step by Step

  1. Open the Screen Ruler

    Open the Developer menu in the top bar and choose Screen Ruler, or go straight to tooltiny.com/screen-ruler.html.

    Developer menu with Screen Ruler highlighted
    Developer → Screen Ruler
  2. Start with the pixel ruler

    The page opens on the Screen ruler tab. With PX selected the ruler is marked every 100 pixels (100, 200 … 1000). Pixels need no calibration: they are always exact, which makes this the unit to use for web and UI work.

    Screen ruler in PX with marks at 100, 200 up to 1000 pixels
    PX: exact, no calibration needed
  3. Switch to CM, MM or IN

    Click CM, MM or IN and the ruler redraws in that unit. Note the yellow bar: “Not calibrated: CM, MM and IN use the web standard of 96 px per inch, which is rarely the real size on your screen.” Until you calibrate, a centimetre on the ruler is probably not a real centimetre.

    Ruler in centimetres with the Not calibrated warning above it
    CM, MM or IN: calibrate for real size
  4. Turn the ruler vertical

    Under Direction, click Vertical to measure heights. We did this with inches selected, so the vertical ruler is marked 1, 2, 3, 4 inches.

    Vertical ruler marked in inches
    Direction: Vertical
  5. Open the calibration panel

    Click Calibrate (or Calibrate now in the yellow bar). The panel offers three methods: Bank or ID card, Screen size and Enter a value. Before calibrating, the page uses the default: 1 inch = 96.00 px, 1 cm = 37.80 px.

    Calibrate for real-world size panel with Bank or ID card, Screen size and Enter a value, card outline 85.60 x 53.98 mm
    Three ways to calibrate
  6. Match the card outline

    Hold any bank card, ID card or driving licence (all 85.60 × 53.98 mm) flat against the screen and move the slider, or use − and +, until the outline matches the card’s edges. The 1 cm and 1 inch squares grow with it. In the recording we dragged the slider to 1 inch = 150.90 px just to show how it moves; on a real screen you stop where the outline fits your card, then click Save calibration.

    Card outline enlarged with the slider, 1 inch = 150.90 px, Save calibration button
    Move the slider until the outline fits the card
  7. Measure an image instead

    Click the Measure an image tab. You can paste a screenshot with Ctrl+V, drop an image on the box, or click Open image. The image stays in your browser.

    Measure an image tab with Open image, Line, Box and the drop area
    Paste, drop or open an image
  8. Load your screenshot

    We opened a landscape photo with Open image. The bar under it confirms the size: Image 563 × 449 px. Drag on it to measure. A magnifier follows the pointer so you can start exactly on the pixel you want.

    Photo loaded, magnifier on the pointer, Image 563 x 449 px
    Image 563 × 449 px
  9. Drag a line to measure

    With Line selected, drag from one point to another. The label on the line and the bar below update live: Length 282 px · ΔX 282 · ΔY 2 · Angle 0.4°. Choose Box instead to measure width and height. Hold Shift to keep a line horizontal, vertical or at 45°.

    Red measuring line labelled 282 px with the magnifier, Length 282 px, Angle 0.4 degrees
    Length 282 px, Angle 0.4°
  10. Set the screenshot scale

    Screenshots from high-DPI screens contain more pixels than the page had CSS pixels. Open Screenshot taken at and choose 1× (pixels as is), 1.25×, 1.5×, 2× (Retina) or 3× (phone). After we adjusted an end, our line was 284 px at 1×.

    Screenshot taken at list open with 1x, 1.25x, 1.5x, 2x Retina and 3x phone; line 284 px
    Screenshot taken at: 1× to 3×
  11. Read sizes in CSS pixels

    At 1.25× the same line reads 227.2 CSS px (284 ÷ 1.25), and at 1.5× it reads 189.3 CSS px, with (image pixels ÷ 1.5) shown at the end. These are the sizes a web designer would put in CSS.

    Line labelled 189.3 px with the scale set to 1.5x and the result in CSS px
    1.5×: 189.3 CSS px
  12. Copy the measurement

    Click Copy next to the result to paste it into a ticket, chat or design note: Length 189.3 CSS px · ΔX 189.3 · ΔY 1.3 · Angle 0.4° (image pixels ÷ 1.5).

    Result bar with Length 189.3 CSS px and the Copy button
    Copy the result

What the Screenshot Scale Did to Our 284 px Line

Screenshot taken atResult shownTypical screen
1× (pixels as is)284 pxStandard monitor at 100%
1.25×227.2 CSS pxWindows laptop at 125%
1.5×189.3 CSS pxWindows laptop at 150%
2× (Retina)284 ÷ 2 = 142 CSS pxMacBook and other Retina screens
3× (phone)284 ÷ 3 ≈ 94.7 CSS pxMany modern phones

The first three rows are what the tool showed in the recording; the last two are the same division for the other options. If you are not sure which scale your screenshot has, check your display scaling setting, or measure something whose CSS size you know.

Good to Know

Follow ToolTiny for short tutorials

One-minute clips on converting, repairing and editing documents, images and text.

Tips

Measure on your screen now

Pixels, centimetres, millimetres and inches. Free, private, no sign-up.

Open Screen Ruler

Related ToolTiny Tools

Frequently Asked Questions

Why is a centimetre on my screen not a real centimetre?
Browsers do not know the physical size of your screen. Without calibration they assume 96 px per inch (37.80 px per cm), and most real screens have more or fewer pixels per inch. That is why the ruler shows a Not calibrated warning until you calibrate it.
How do I calibrate the ruler?
Click Calibrate, choose Bank or ID card, hold a card against the screen and move the slider until the outline matches it, then click Save calibration. Any bank card, ID card or driving licence works because they all share the ID-1 size of 85.60 × 53.98 mm. You can also enter your screen size or a pixels-per-inch value.
Do I need to calibrate for pixels?
No. Pixel measurements are exact without calibration. Calibration only matters for centimetres, millimetres and inches.
Is the calibration saved?
Yes, after you click Save calibration it is kept in your browser on that device, so you only do it once. Reset to default returns to 96 px per inch.
What does Screenshot taken at mean?
Screens with scaling (Windows at 125% or 150%, Retina Macs at 2×, phones at about 3×) save screenshots with more image pixels than the page had CSS pixels. Choose the matching scale and the tool divides by it. In our example a 284 px line became 227.2 CSS px at 1.25× and 189.3 CSS px at 1.5×.
Can I measure an area, not just a line?
Yes. Switch the Tool from Line to Box and drag a rectangle to get its width and height.
How do I measure exactly from one pixel to another?
Use the magnifier that follows the pointer to start and end on the right pixel, drag an end to adjust it afterwards, and hold Shift to keep the line straight or at 45 degrees.
Is my screenshot uploaded?
No. The page says the image stays in your browser; it is not sent to a server.
Can I measure something on a web page directly?
Yes, with the Screen ruler tab: drag on the ruler to measure, or use Full screen for a longer ruler. For an exact element size, take a screenshot and use Measure an image, which gives the length, the X and Y difference and the angle.
Is the Screen Ruler free?
Yes. It is free, needs no account and works in any modern browser on desktop or mobile.