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 deviceDetecting…
Screen resolution
Pixel ratio
Pixels per inch

Screens are measured corner to corner. A MacBook Air is 13.3 inches, for example. Set yours for a real-size ruler.

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 draws a centimetre and inch scale on your screen for quick size checks. The scale becomes useful only after it matches the physical size of your display. Once calibrated, you can place a small flat object beside the ruler and read its approximate length in the browser.

Screen rulers are convenient for rough measurements, design checks, craft planning, and objects that fit beside a phone or monitor. They aren’t certified measuring instruments. Browser zoom, display scaling, device size, and the calibration method all affect the result.

Light-theme Online Ruler illustration with a transparent ruler, phone, and calibration card
A light-theme visual for calibrating a screen ruler and measuring objects.

How does the automatic screen calibration work?

The automatic mode reads the browser’s screen information and compares it with common device dimensions and pixel densities. A known match can set a useful starting scale without a physical object. The result depends on the information the browser exposes and on the screen you’re using.

If the device is unknown, the page uses an estimate and lets you adjust it. Automatic detection is convenient, but it can’t know every monitor’s physical size from pixels alone. Manual card calibration is the better choice when a measurement needs to be close to true scale.

Why does an online ruler need calibration?

A CSS pixel is a display unit, not a fixed physical length. Two screens can show the same pixel ruler at very different real sizes because their pixels per inch differ. A phone, tablet, laptop, and desktop monitor can all need different scale values.

Calibration connects the digital scale to a known physical size. The bank-card method uses a standard card width of 85.60 millimetres, while manual DPI or screen-size values use information you provide. Neither method removes the need to keep browser zoom at 100 percent.

How do you calibrate the online ruler manually?

Manual calibration gives you a physical reference when automatic detection looks wrong or the screen is not in the device list. Use a rigid card with a known width, keep the browser at normal zoom, and adjust the outline until it matches the real card.

  1. Choose manual mode. Open the manual calibration controls on the page.
  2. Place a reference card. Use the long edge of a bank or identification card.
  3. Adjust the outline. Move the control until the on-screen width matches the card.
  4. Save the scale. Use the calibrated ruler in centimetres or inches.

How do you measure an object with the ruler?

Place the object flat beside the zero mark and keep its edge parallel with the ruler. Read the scale where the far edge finishes, then switch between centimetres and inches if you need another unit. A tilted object can appear longer than it really is, especially on a shallow screen.

What affects online ruler accuracy?

  • Browser zoom. Keep the page at 100 percent because zoom changes the displayed scale.
  • Display scaling. Operating-system scaling can change how CSS pixels appear.
  • Reference size. A bent card or paper reference can create a poor calibration.
  • Screen changes. Recalibrate after moving from a phone to a laptop or monitor.
  • Object position. Keep the object flat and aligned with the ruler edge.

A note on accuracy. This tool is suitable for quick checks, but it isn’t a certified measuring instrument. Confirm important measurements with a physical ruler, tape, or caliper before cutting, ordering, fitting, or making a safety-related decision.

When should you use a physical ruler instead?

Use a physical ruler or caliper when a part must fit, a cut must be exact, or a measurement affects safety. An online ruler is a convenient reference for a small object, a rough design check, or a quick classroom activity. It’s less suitable for curved objects, flexible materials, long distances, or anything that can’t lie flat beside the screen. Recalibrate whenever you change devices, zoom, or display settings, and write down the method if another person needs to repeat the measurement.

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?

It is very close when your screen size is set correctly, but we do not guarantee it is exact. For known phones and tablets the match is precise because their pixel density is fixed and published. For laptops and monitors the ruler works from the screen diagonal you confirm, which gets it true to size on most displays. Screens, browsers, and zoom levels still vary, so treat the result as a close approximation. If you need it spot on, switch to manual mode and line up a bank card, keep browser zoom at 100 percent, and double check anything important against a physical ruler.

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.

Do you guarantee the measurements are accurate?

No. We try to make the ruler as accurate as we can, but we cannot promise a perfect, certified measurement. It depends on your screen, browser, zoom level, and the size you set, so the reading is a close approximation. Please use caution and confirm with a physical ruler or tape measure whenever an exact size really matters.

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.