Calculator · Measure

Online Ruler

A real-size ruler right in your browser. It auto calibrates to your screen by detecting your device, so you can measure in centimeters or inches straight away. Prefer to set it by hand? Switch to manual card calibration. The ruler sits along the right edge so you can hold an object against it.

Calibrate your screen

Auto mode reads your screen resolution and device details, then sets the ruler to real size on its own. No card needed. Switch to manual if you want to fine-tune it.

Detected device Detecting…
Screen resolution
Pixel ratio
Pixels per inch

Detecting your screen…

Tip: the ruler on the right shows your real screen size. Hold a small object against the right edge of the screen to measure it.

What is an online ruler?

An online ruler turns part of your screen into a measuring tool. When it is calibrated to your display, the centimeter and inch markings line up with real size, so you can measure a small object by holding it against the screen. It is handy when a tape measure is not nearby.

How does the auto calibration work?

The tool starts in auto mode. As soon as the page loads, it reads your screen resolution and device pixel ratio, then checks them against a list of common phones, tablets, laptops, and monitors. When it spots a match, it already knows the real pixel density of that screen and sets the ruler to true size for you. No card and no dragging needed.

If your device is not in the list, the tool estimates a close value from the pixel ratio and labels the result as an estimate. You can re-detect at any time, or switch to manual mode for a perfect match.

Why does a ruler need calibration at all?

Screens do not all pack the same number of pixels into an inch. A phone might have over 400 pixels per inch, while an older monitor has around 90. A ruler drawn with a single fixed assumption would be wrong on most screens. Detecting your device first, or matching it to a card, is what keeps the markings honest.

How do you use manual calibration?

Manual mode is there for full control or for screens the tool cannot identify. Switch to it with the Manual button, then follow these steps.

  1. Find a card. Any bank card or ID card is exactly 85.6 mm wide.
  2. Match the box. Drag the slider until the outline equals your card.
  3. Save it. The tool stores the correct scale for your screen.
  4. Measure. Use the ruler on the right in centimeters or inches.

How do you measure with the ruler?

Once the ruler is set, hold the object you want to measure against the right edge of the screen, lined up with the zero mark at the top of the ruler. Read the value where the object ends. Switch between centimeters and inches with the unit buttons depending on what you need.

Tips for the best accuracy

  • Set your browser zoom to 100 percent. Zoom changes the scale in both modes.
  • Use manual mode if the estimate looks off. A bank card gives an exact match.
  • Re-detect after moving to a new screen. A phone and a laptop differ a lot.
  • Use a rigid card for manual mode. A bank card holds its shape better than paper.
  • Keep the object flat. Tilting it makes the reading longer than it is.

Frequently asked questions

How does the online ruler auto calibrate?

Auto mode reads your screen resolution and device pixel ratio, then matches them against a list of common phones, tablets, laptops, and monitors. When it finds a match, it knows the exact pixels per inch for that screen and sets the ruler to real size on its own. If your device is not on the list, it estimates a close value from the pixel ratio, and you can switch to manual to fine-tune it.

How accurate is the auto calibration?

For known devices the match is exact, because the pixel density of those screens is fixed and published. For other screens the tool makes a close estimate, which is usually good enough for everyday measuring. If you need it spot on, switch to manual mode and line up a bank card. Keeping browser zoom at 100 percent also helps accuracy in both modes.

How do I switch to manual calibration?

Use the Auto and Manual buttons at the top of the calibration box. In manual mode you hold a standard bank or ID card against the screen, then drag the slider until the on-screen outline matches the width of your card. Because every ID-1 card is exactly 85.6 mm wide, the tool works out the real size of one pixel and applies it to the ruler.

Why does the ruler look different on each device?

Screens pack different numbers of pixels into an inch. A phone might have over 400 pixels per inch, while an older monitor has around 90. The ruler adjusts to each screen so the markings stay true to real size. That is why auto calibration detects your device first instead of assuming a fixed scale.

Can I switch between centimeters and inches?

Yes. Use the unit buttons to switch the ruler between centimeters and inches. The centimeter scale is divided into millimeters, and the inch scale is divided into sixteenths, the same as a physical tape measure, so you can read fine measurements either way.

Does my calibration stay saved?

Auto mode detects your screen fresh on every visit, so there is nothing to save. If you calibrate manually, the pixels per inch value is stored in your browser so the ruler stays correct next time on the same device. Your chosen mode is remembered too. Switch devices or clear your browser data and the tool simply detects again.

Is the online ruler free?

Yes, it is completely free with no sign-up. Everything runs in your browser, and your settings are stored only on your device. It is a quick way to measure small objects when you do not have a tape measure or ruler handy.