---
title: "Online Ruler – Actual Size in cm, mm and Inches | DeviceTests"
description: "A free on-screen ruler at real size, in cm, mm and inches. Set it once with a bank card, coin or screen size, then measure on a computer, phone or tablet."
url: https://devicetests.com/online-ruler
language: en
---

# Online ruler

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

> **Interactive test.** This test runs in the browser on the user's own device and uses that device's hardware, so an AI agent can't run it for the user. To use it, the user opens <https://devicetests.com/online-ruler> in a browser.
>
> **What it needs:** The screen the user wants to measure on (computer, phone or tablet), with this page open there, plus a bank or credit card, a common coin, or the screen’s diagonal size. A browser can’t know how big its pixels are, so the user first matches the card or coin on screen (or picks the diagonal); the page keeps that setting for this screen. Then it shows a ruler in cm, mm and inches with a marker that reads lengths in both units, across or up and down, and in full screen. It is only as exact as that setting, so it suits everyday sizes (a screw, a ring, a phone), not precision work.
>
> **Cost:** Free. Nothing to install and no account.

This ruler needs JavaScript to fit your screen. Turn on JavaScript, or open this page in a current Chrome, Edge, Firefox or Safari. Without it, a bank card is a handy measure on its own. It is 85.6 mm (3 3/8 inches) long and 54 mm (2 1/8 inches) high.

## 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](https://devicetests.com/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](https://devicetests.com/screen-resolution). To check a printer prints at the right size, print a [printer test page](https://devicetests.com/printer-test-page).

[How we test our tools](https://devicetests.com/how-we-test)

## 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](https://devicetests.com/how-to-find-out-your-laptop-screen-size-without-measuring). 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](https://devicetests.com/how-accurate-is-iphone-measure).

**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.

## Related tests

- [Screen resolution](https://devicetests.com/screen-resolution): See your screen's real resolution, scaling and pixel density.
- [Printer test page](https://devicetests.com/printer-test-page): Print a colour, black and white, grey or alignment page, or save it as a PDF, and read what it shows.
- [My device](https://devicetests.com/my-device): See your system, browser, screen, graphics and memory in plain words, and copy them as one report.
- [Dead pixel test](https://devicetests.com/dead-pixel-test): Find dead or stuck pixels on your screen.
- [Stuck pixel fixer](https://devicetests.com/stuck-pixel-fixer): Try to unstick a pixel that shows the wrong colour.

## Guides for this test

- [Print a Photo at the Right Size: Pixels, 4×6, A4 and Frames](https://devicetests.com/print-photo-size): Will your photo print sharp, and what gets cut off? Work out pixels per inch for 4×6, 5×7, 8×10 or A4, then crop or add white edges before you print.
