FreeMyTools

Online Ruler

An accurate on-screen ruler in centimetres, inches, and pixels.

96 PPI

Hold a bank card against the outline below and drag the slider until the widths match. Standard cards are 85.6 mm wide.

Keyboard Shortcuts ?
  • Switch to cm, inches, or pixels 1 / 2 / 3
  • Toggle Guide Line G
  • Toggle Fullscreen F
  • Toggle This Guide ?
  • Toggle Dark Mode D
  • Focus Primary Input /
  • Clear or Close Esc

What Is an Online Ruler?

An online ruler — also called a virtual ruler or screen ruler — turns your display into a measuring tool. Instead of hunting for a physical ruler, you open this page and measure directly against your screen in centimetres, millimetres, inches, or pixels. It is useful for the small measurements that come up constantly — checking whether a part fits, sizing a photo, measuring a screw, or working out whether something will slot into a gap.

Once calibrated it behaves as an actual size ruler: a centimetre on screen is a real centimetre against the object you are holding. You can use it as an online ruler in inches or switch to ruler online cm mode at any time, depending on which units the job needs.

The catch with every screen ruler is that browsers measure in CSS pixels, not millimetres, and the relationship between the two changes from device to device. That is why calibration matters, and why a ruler that skips it will quietly give you the wrong answer.

How to Use This Ruler

  1. Calibrate once. Hold a bank card against the dashed outline and drag the calibration slider until the two widths match exactly. Every standard card is 85.6 mm wide, which makes it a reliable global reference.
  2. Pick your unit. Use the cm, in, or px buttons, or press 1, 2, or 3.
  3. Measure. Hold the object against the ruler along the edge of the strip and read off the value.
  4. Use the guide line (press G) to mark an exact position, and fullscreen (press F) when you need the maximum available length.

Your calibration and unit choice are saved in your browser, so you only need to do this once per device.

How Screen Calibration Works

Screens differ in pixel density — measured in PPI, or pixels per inch. A typical desktop monitor sits near 96 PPI, while a modern phone can exceed 400 PPI. Browsers deliberately hide this behind a normalised CSS pixel, so a page cannot simply ask the operating system how big the screen physically is.

Calibrating against a known-size object solves this directly. Once you tell the ruler how many pixels correspond to 85.6 mm, every other measurement follows from that single ratio. Without calibration the tool assumes 96 PPI, which is usually close on a laptop and noticeably wrong on a high-density phone.

The same calibration lets you measure screen size itself. If you know your display's pixel dimensions, dividing by the calibrated PPI gives you its physical width and height — handy when a spec sheet is nowhere to be found.

Showing the Ruler in Actual Size

"Actual size" means one centimetre on screen is a true centimetre against the object you are holding. That is not the default state of any web page — browsers have no idea how physically large your display is — so it only becomes true after you calibrate.

This is the single thing most online ruler actual size pages get wrong. They render a ruler at a fixed 96 PPI and call it life-size, which is roughly correct on an older desktop monitor and badly wrong on a modern phone, where densities often exceed 400 PPI. A ruler that is 30% short is worse than no ruler, because you will trust it.

Once you have calibrated here, the setting is saved for that device. Return next week and it is still true to size — no repeat setup.

Centimetres, Millimetres and Inches

The tool switches between three scales, and your choice is remembered:

  • Online ruler in cm — long numbered ticks at each centimetre, mid ticks at 5 mm, small ticks at 1 mm. The default for most of the world.
  • Online ruler in mm — the same scale read at millimetre precision, which is what you want for small parts, beads, and fasteners.
  • Online ruler in inches — divided into sixteenths, the standard fractional scale on a US tape measure. Long ticks mark whole inches, so it reads like a digital ruler in inches rather than a decimal approximation.

There is also a pixel mode, which is useful for design work where you need a digital ruler measuring CSS pixels rather than physical units. Press 1, 2, or 3 to switch instantly.

Using It on a Phone

A phone screen makes a perfectly good ruler for small objects, and it is the device you actually have on you. Two caveats worth knowing:

  • You get about 6 cm in portrait. Rotate to landscape and you roughly double the usable length.
  • Calibrate on the phone itself. Calibration is stored per device, so a setting made on your laptop does not carry across.

Because everything runs in the browser, there is nothing to install — no app, no permissions, no camera access. It also keeps working if you lose signal mid-measurement.

Accuracy and Limitations

Calibrated carefully, this ruler is generally accurate to within about a millimetre — good enough for everyday measuring, DIY, crafts, and checking part sizes. It is not suitable for anything where a precise tolerance matters: machining, medical measurement, or engineering work all need a physical instrument.

Two things reduce accuracy in practice:

  • Browser zoom. If your page zoom is not at 100%, recalibrate — zoom changes the pixel-to-millimetre ratio.
  • Screen length. You can only measure as far as your display reaches. Phones cap out around 6 cm in portrait; rotate to landscape for more.

Common Uses

  • Measuring small parts, screws, and fasteners
  • Checking a photo or print size before ordering
  • Sizing beads and craft materials
  • Confirming a cable or connector width
  • Checking whether something will fit a gap or a shelf
  • Quick comparisons when no physical ruler is nearby

One thing this tool is not built for: ring sizing. That needs a purpose-made gauge with its own sizing chart, and measuring a ring against a flat screen ruler gives unreliable results. A dedicated tool for that is a better answer than stretching this one.

Tips for Better Measurements

  • Calibrate at 100% browser zoom, and recalibrate if you change it.
  • Look straight at the screen — viewing at an angle introduces parallax error.
  • Line the object up with the zero mark, not the physical screen edge.
  • Use the guide line to mark the end point before reading the value.
  • Measure twice. It costs two seconds and catches most mistakes.

Frequently Asked Questions

Are online rulers accurate?

Yes, once calibrated. An uncalibrated online ruler assumes a standard 96 PPI screen and can be off by 20% or more on a modern phone. Calibrate this one against a bank card and it is typically accurate to within a millimetre — good enough for everyday measuring, though not for machining or medical use.

Do online rulers actually work?

They work well for objects that fit against your screen, provided you calibrate first. The physics is simple: once the page knows how many pixels equal a known real-world width, every other measurement follows. What they cannot do is measure anything longer than your display, or work reliably if you skip calibration.

How accurate is an online ruler in cm?

After calibration, readings in centimetres and millimetres are typically within 1 mm of a physical ruler. The main sources of error are browser zoom not being at 100%, viewing the screen at an angle, and imprecise calibration. Recalibrate if you change your zoom level.

How do I calibrate the ruler to my screen?

Hold a standard credit card, ID card, or any bank card against the on-screen guide and drag the slider until the widths match exactly. Every card issued to the ISO/IEC 7810 ID-1 standard is 85.6 mm wide, which makes it a reliable reference. Your calibration is saved in your browser for next time.

Can I use this ruler on my phone?

Yes. The ruler adapts to your screen size and works on phones and tablets as well as laptops. On a phone you have less physical length available, so it is best for measuring objects up to roughly 6 cm. Rotating to landscape gives you more measuring length.

Why does the ruler need my screen size?

Browsers report measurements in CSS pixels, not physical millimetres, and the relationship between the two varies by device. Knowing your screen's physical size lets the tool convert pixels into real-world units accurately. If you skip this, the ruler uses a standard 96 PPI assumption instead.

Does this ruler work without an internet connection?

Once the page has loaded, yes. The entire ruler runs in your browser with no server involved, so it keeps working if you go offline. Reloading the page while offline may not work unless your browser has cached it.

What units does the online ruler support?

Centimetres, millimetres, inches, and pixels. You can switch between them at any time with the unit buttons or by pressing 1, 2, or 3 on your keyboard. Your last-used unit is remembered for your next visit.

Is my data sent anywhere when I use this tool?

No. The ruler runs entirely in your browser and there is no server processing anything. Your calibration setting is stored locally on your own device and never transmitted. See our privacy policy for full details.

Can I measure something larger than my screen?

Not in one go, but you can measure in steps: mark the end point of the first measurement, move the object along, and add the measurements together. For anything much longer than your screen, a physical tape measure will be faster and more accurate.

Is this online ruler free?

Completely, with no sign-up, no download, and no trial. There is no paid tier and no feature held back. The site is supported by advertising placed below the tool, never on top of it.

How do I show the ruler in actual size?

Calibration is what makes it actual size. Until you calibrate, the ruler uses a generic 96 PPI assumption and the markings will not match a real ruler. Drag the slider until the on-screen outline matches a bank card and the scale becomes true to life on your specific display.

How do I read a ruler in mm?

In millimetre mode each small tick is 1 mm and each numbered long tick is 10 mm, or one centimetre. To read a measurement, line the object's left edge up with zero and read the last tick its right edge reaches. The mid-length ticks mark 5 mm, which makes counting faster.