Skip to main content

Online Ruler (Actual Size)

A ruler drawn at true size on your screen, calibrated by matching a bar to a credit card.

Shows inches in sixteenths or centimeters in millimeters, for measuring small objects without a physical ruler.

Last updatedHow we build & check our tools
Results will appear here once you enter your values.

How the ruler gets to true size

A web page cannot read how large your screen really is, so it cannot know how many pixels make an inch. The browser reports a nominal size, and that rarely matches the glass, especially on phones, laptops with display scaling and external monitors. The fix is to measure something of known size on your own screen. A bank card fits: its width is set by the ISO/IEC 7810 ID-1 standard at 85.60 mm.

You adjust a bar until it matches the card's width, which tells the tool how many pixels equal 85.60 mm. From there, the arithmetic is a pair of divisions and a multiplication.

  • Pixels per millimeter: card width in pixels divided by 85.60.
  • Pixels per inch: pixels per millimeter times 25.4, since the international inch is defined as exactly 25.4 mm.
  • Pixels per centimeter: pixels per millimeter times 10.
  • Marks: 192 sixteenth-inch divisions for the 12 inch ruler, or 300 millimeter divisions for the 30 centimeter ruler, each placed at its exact fractional position.

Worked example and tips for measuring

Say the card matches a bar 340 pixels wide on your monitor. Pixels per millimeter is 340 / 85.60 = 3.972. Pixels per inch is 3.972 x 25.4 = 100.89, and pixels per centimeter is 39.72. A 1 inch mark therefore sits 100.89 pixels from the zero end, and a 1/16 inch mark is 6.31 pixels apart from its neighbor. The page shows this working under the ruler, so you can check the numbers.

  • Line up the zero: place the object's edge at the left end of the ruler, where the zero mark is, and read the mark at the other end.
  • Keep it flat: measure objects that lie flat on the screen glass, such as a coin, a ring or a printed photo, and look straight on to avoid parallax.
  • Match carefully: a small error in matching the bar to the card grows in proportion to the length you measure.
  • Mind the scroll: a 12 inch ruler is wider than most phone screens. It scrolls sideways, so measure small objects against the visible start.

A quick check: after calibrating, hold a coin of known diameter against the ruler. A U.S. quarter is 24.26 mm, a little under an inch (0.955 in). If it reads clearly off, redo the calibration.

Limits and safe use

This is a convenience, not a measuring instrument. Do not use it for anything where a wrong size has a cost, such as ordering made-to-measure parts, fitting medical devices, or legal and engineering documents. Use a physical rule or caliper for those. The ruler runs horizontally only, so turn the object to line it up.

Anything you place on the screen should be clean, dry and soft-edged, so it does not scratch the glass. Readings are only valid at the zoom level and window on which you calibrated. The ruler is drawn in CSS pixels, so changing zoom resizes it while the card stays the same, which is why the tool tells you to recalibrate.

Sources: card width of 85.60 mm from ISO/IEC 7810, Identification cards: Physical characteristics (ID-1 format). The inch is defined as exactly 25.4 millimeters by the international yard and pound agreement of 1959. The quarter's diameter of 24.26 mm is from the U.S. Mint coin specifications.

Frequently Asked Questions

Common questions about the Online Ruler (Actual Size)

Hold a standard credit or debit card flat against the screen, with its short edge pointing sideways. Then change the Credit card width number, or drag the slider, until the blue bar on the page is exactly as wide as the card. Every mark on the ruler is scaled from that width, so the ruler is only as accurate as this match. The starting value is 324 pixels, which works out to about 96 pixels per inch.