Online ruler

Measure in cm, mm and inches at real size, on any screen.

Have a bank card or a coin ready.

First, set the ruler to your screen. You do this once.

You need a bank card, a coin, or your screen's size in inches.

Screens come in many sizes, so no website can know how long a centimetre is on yours.

Quick start

  1. Press Set up the ruler and lay a bank card on the screen.
  2. Make the drawing match your card, then press Use this size.
  3. Put your object at 0 and move the orange marker to its end.

How to read your results

The ruler has centimetres along one edge and inches along the other. Across, the centimetres are at the top. Up and down, they are on the left. Zero is always at the start edge.

Mark Centimetre side Inch side
Longest, with a number Each centimetre (10 mm) Each inch
Middle Each half centimetre (5 mm) Each half inch
Shorter Each millimetre Each quarter and eighth of an inch
Shortest Each sixteenth of an inch

The box under the ruler shows the length at the orange marker in both units. The big number is the unit you chose under Measure in. Inches are shown as a fraction, to the nearest sixteenth, like on a tape measure, and as a decimal, such as 3.38 in.

On a big screen with large pixels, such as a TV, the page leaves out the finest marks, and may number every second centimetre, so the marks never blur together.

To move the marker, tap or click the ruler where your object ends. You can also drag the orange handle, or press Back and Forward to move it one mark at a time. With a keyboard, select the handle and use the arrow keys: one press is 1 mm or 1/16 inch, and Page Up or Page Down is 1 cm or 1 inch.

Common things to check the ruler with:

Thing Size
Bank or credit card 85.60 × 53.98 mm (3 3/8 × 2 1/8 in)
US quarter 24.26 mm across
1 euro coin 23.25 mm across
A4 paper 210 × 297 mm
US Letter paper 8 1/2 × 11 in (215.9 × 279.4 mm)

Tip: Look straight down at the mark. Looking from the side makes the object seem to end at a different mark, because the glass sits above the picture.

Measuring a PC fan? See how to measure PC fan size: you measure along one side, not corner to corner.

If something’s wrong

These are the most common problems, most likely first.

The ruler is too long or too short

The setting doesn’t fit this screen any more. Press Set again and match your card once more. Check that the card sits right in the corner, and that you matched its long side.

The ruler was right, then changed size

Your browser zoom changed, or you moved the window to another screen. The page notices and asks again, or adjusts for the zoom. With a side panel open (such as vertical tabs), a browser can’t always tell its zoom, so the page may ask again. Set your zoom back to 100% (press Ctrl and 0, or Cmd and 0 on a Mac), or press Set again.

On my phone the ruler is far too big

The page is zoomed in with two fingers. Pinch out until the page is its normal size. If you changed the text or page size in your browser’s settings, set it back, or set the ruler again.

The marker won’t move when I drag

On a phone, drag the orange handle itself, or just tap the ruler where you want the marker. Dragging elsewhere scrolls the page.

My two screens give different lengths

Each screen has its own pixel size, so each needs its own setting. Set the ruler on each screen. Two screens with the same resolution and scaling share one setting, so check the second one with your card.

How this test works

A browser knows how many pixels your screen has, but not how big each pixel is. Web pages measure in “CSS pixels”, and CSS says 96 of them make an inch. Real screens differ a lot: an inch is about 100 CSS pixels on most computers and about 150 on most phones. That is why a ruler that doesn’t ask you first is often wrong.

So you set the ruler once:

  • A bank card: bank and credit cards are the same size worldwide (ISO/IEC 7810 ID-1, 85.60 × 53.98 mm). Many ID cards and driving licences are too, but not all. You make the drawing as long as your card, so the page knows how many pixels make 85.60 mm.
  • A coin: the same idea with a coin’s official diameter. A coin is small, so a small mismatch makes a bigger error.
  • Your screen’s size: the page divides the screen’s diagonal in pixels by the size you choose. Screen sizes on the box are rounded, so this can be about 1% off.

The page keeps the setting in your browser for this screen, by its size in pixels and its display scaling. It keeps it as if the browser zoom were 100%, so if you zoom in or out later, the ruler stays the right size in Chrome, Edge and Safari. Firefox asks you to set it again.

What the ruler can’t do:

  • Be more exact than your setting, which is as good as your match by eye.
  • Know about overscan on a TV, which crops the picture and makes the screen-size method wrong.
  • Replace a real ruler or calipers for precise work.

To see your screen’s resolution and pixel density, use What is my screen resolution. To check a printer prints at the right size, print a printer test page.

Questions and answers

Is this ruler really actual size?

Yes, once you set it to your screen. Without that, no online ruler can be right. A website knows how many pixels your screen has, but not how big they are.

After you match a bank card carefully, it measures as well as your eye can match the card's edge. It is only as exact as that setting, so check it with the card before you rely on it.

Why do I need a card? Other rulers work straight away.

They guess. Most assume a standard screen, so on a phone or a big monitor their centimetres can be 10% to 50% off. Matching a card takes about 20 seconds, and the page remembers it for this screen.

What if I don't have a card?

Use a common coin, such as a US quarter or a 1 euro coin. Or choose your screen's size in inches, which is on the box or the shop page. No box? See how to find your laptop's screen size. A card is the most exact, because it is the biggest.

Can I use it on my phone?

Yes. Set it once with a card on the phone itself. Choose Up and down to measure along the long side, and press Full screen for the longest ruler. For longer things, press Measure further.

The iPhone's Measure app only gives a rough size: see how accurate iPhone Measure is.

How do I measure something longer than my screen?

Press Measure further. A dashed orange line shows a mark near the end of the ruler. Mark your object at that line with a finger or a pencil, then press Move the ruler on. The ruler now counts on from that mark. Move your object, or slide your phone or tablet, until your mark is at 0, and go on measuring.

How many centimetres are in an inch?

One inch is exactly 2.54 cm, or 25.4 mm. So 10 cm is about 3.94 inches, and 1 foot (12 inches) is 30.48 cm.

Does the ruler send anything?

No. The setting is kept in your browser on this device, and nothing about your screen or your card is sent to us.

Guides for this test