Need to measure something small and have no ruler nearby? Calibrate this ruler once with a credit card or a coin, then hold your object against the screen and read its size in centimeters, millimeters or inches. Two draggable markers show the distance between them, including the nearest fraction of an inch. Everything runs in your browser, and nothing you enter is sent to a server.

A screen cannot know its own size. A quick calibration with an object of a known size is what turns a row of pixels into real centimeters.

How to use the online ruler

  • Calibrate first: pick a reference object such as a credit card, hold it in front of the screen and move the calibration slider until the shape matches it.
  • Choose the scale: show centimeters, millimeters, inches, or centimeters on top and inches below.
  • Place the markers: drag the blue and orange markers, tap the ruler to move the nearest one, or type their positions in millimeters.
  • Measure your object: hold it against the screen with one edge at the blue marker and move the orange marker to the other edge.
  • Read the result: the distance shows in millimeters, centimeters, inches and the nearest sixteenth of an inch.
  • Copy the value: click a row to copy one value, or press Copy measurement for all of them.

Why calibration is needed

A web page measures in CSS pixels, and a CSS inch is defined as 96 pixels. That is a fixed rule, not the real size of your screen. Your phone, laptop and monitor all pack a different number of pixels into an inch, so an uncalibrated ruler is usually wrong. When you match the shape on the page to a real object, the tool learns how many pixels fit in one millimeter on your screen and draws every mark from that number.

Objects you can use to calibrate

Use any object with a known, standard size. These are good choices.

ObjectSizeGood to know
Credit or ID card85.60 × 53.98 mmStandard for bank cards and most ID cards. Best on a computer screen.
US quarter24.26 mm wideSmall enough to fit on a phone screen.
1 euro coin23.25 mm wideA good small reference outside the US.
US dollar bill155.96 × 66.29 mmLarge, so it suits wide screens. Every US bill is the same size.

Handy conversions

UnitEqualsNote
1 inch25.4 mm = 2.54 cmExact by definition.
1 centimeter10 mm = 0.3937 inEach small mark on the cm scale is 1 mm.
1/16 inch1.5875 mmThe smallest mark on the inch scale.

What this tool does and does not do

The ruler is a good way to measure small items such as a screw, a coin, a button or a piece of jewelry, to within about a millimeter if you calibrate carefully. It is not a precision instrument. Its length is limited by the width of your screen, and it is only as accurate as your calibration. If you zoom the page, change the screen resolution or move the window to another display, the calibration no longer holds, so check it again. For work that must be exact, use a real ruler or calipers.

Tips for better results

  • Calibrate with the biggest object that fits: a larger reference makes small slider errors matter less.
  • Look straight at the screen: viewing at an angle makes the object seem shifted against the ruler.
  • Hold the object close: keep it just in front of the glass, so the gap between them is small.
  • Do not press on the screen: pressing can scratch the glass or trigger touches.
  • Keep your zoom the same: use the same browser zoom for calibration and measuring, and recalibrate if it changes.
  • Check with a second object: after calibrating with a card, measure a coin and see if the size is right.
Calibrate, place the markers, read the size. Two minutes of setup gives you a ruler that fits in any browser tab.

Common ruler problems

  • My card does not fit the shape: move the calibration slider until the card matches the shape on screen. On a small phone, switch to a coin.
  • The measurements are off after I zoomed: zoom changes the size of everything on the page. Reset the zoom, or calibrate again at the new zoom.
  • The ruler is too short for my object: the ruler is as long as your screen is wide. Use a wider window, or measure the object in parts.
  • I cannot drag the markers on my phone: touch the ruler near the marker and slide sideways, or type the position in the marker fields.
  • My calibration disappeared: the last settings are saved in your browser. Clearing site data or using a private window removes them.

Frequently asked questions

Is this online ruler free?

Yes. There is no sign-up and no limit on how many things you measure.

How accurate is an online ruler?

With a careful calibration it is usually good to about a millimeter. The result depends on how well you match the reference object and on how straight you look at the screen.

Why do I have to calibrate?

A web page does not know the real size of your screen. Calibrating with an object of a known size tells the tool how many pixels fit in a millimeter.

Can I use it on my phone?

Yes. Use a coin for calibration, because a card can be larger than a phone screen. Hold the phone steady and measure small items.

Does it measure in inches and centimeters?

Yes. Choose centimeters, millimeters, inches or both. The result shows all of them, plus the nearest sixteenth of an inch.

Why did my measurements change?

You probably changed the browser zoom, the screen resolution or the display. Calibrate again and the ruler is right once more.

Are my settings sent anywhere?

No. Everything runs in your browser, and your calibration is saved only on this device.

Share this article