Online ruler by photo

Or drop a photo on the image area, or paste one with Ctrl+V (Cmd+V on a Mac). JPEG, PNG or WebP, up to 40 MB.

No image yet

Take a photo, upload one or load the demo image. Put a card, coin or sheet of paper beside the object, in the same plane.

Add an image to start.

No scale

No scale yet.

Measurements
NameTypeValuesActions

No measurements yet. Set the scale, then pick Line, Path, Rectangle, Circle or Angle.

The image stays on this device: nothing is uploaded or stored by the site.

How the photo ruler works

The photo ruler measures an object in a photo or other image by comparing it with a reference of known size in the same image.

  1. Lay a credit card, coin or sheet of paper flat beside the object, then take the photo from straight above.
  2. Upload the photo, drop it on the image area or paste it; it stays on your device.
  3. Choose the reference in the list and draw a line along its known edge.
  4. Press Straighten and tap the 4 corners of the card or sheet if the photo was taken at an angle.
  5. Measure with Line, Path, Rectangle, Circle or Angle, then check the scale on a second object.
  6. Copy the values, download a CSV or save a PNG with the measurements drawn on it.
card object
The card's known edge sets the scale for the object beside it.

Photo ruler formula

Real length equals the object's length in photo pixels times the reference length divided by the reference's length in photo pixels. The ratio in brackets is the photo's scale in millimetres per pixel. The scale holds only for objects in the same flat plane as the reference, facing the camera.

real = object_px × (reference_mm ÷ reference_px)
object_px
length of the measure line in photo pixels
reference_px
length of the reference line in photo pixels
reference_mm
real length of the reference

Worked example, live

1150 px × (85.6 mm ÷ 428 px) = 230.0 mm (23.00 cm, 9.06 in). Scale: 0.2000 mm per photo pixel.

Photo ruler conversion chart

A reference in the photo needs a published size, such as a credit card at 85.6 mm (3.370 in). Pick a reference about as long as the object, and lay it flat beside the object.

Reference objects to place in a photo, with their published sizes
ObjectmmcmInchesSource
Credit card (ID-1), long edge85.68.563.370ISO/IEC 7810
Credit card (ID-1), short edge53.985.3982.125ISO/IEC 7810
A4 sheet, short edge21021.08.268ISO 216
A4 sheet, long edge29729.711.693ISO 216
US Letter, short edge215.921.598.500ANSI
United States Quarter (25¢), diameter24.262.4260.955Issuing mint
United States Penny (1¢), diameter19.051.9050.750Issuing mint
United States Nickel (5¢), diameter21.212.1210.835Issuing mint
United States Dime (10¢), diameter17.911.7910.705Issuing mint

Photo ruler FAQ

Can you measure an object in a photo with a credit card?

Yes, place a credit card (85.6 mm, 3.37 in long) beside the object, flat and at the same distance from the camera. Choose Credit card, long edge as the reference and draw a line along that edge. The tool divides the line's length in pixels by 85.6 mm to get the scale, then converts every measurement with it. Check the scale on a second object, such as a coin.

Is my photo uploaded?

No, the photo is drawn into a canvas in your browser and never leaves the device. The page has no upload code and stores nothing, so closing or reloading the tab discards the photo. Download PNG, Copy image and Share make a copy only when you press them, and the copy goes where you choose.

Why is my photo measurement wrong?

The usual cause is perspective: the object and the reference were at different distances from the camera, or the camera was tilted. An object 10% closer to the lens than the card looks about 11% larger. Shoot straight down from at least 30 cm (12 in), use Straighten when the photo is at an angle, and check the scale on a coin: above a 1.5% difference, mark the reference again.

What does Straighten do to a photo taken at an angle?

Straighten turns the photo into a top-down view, using the 4 corners of a card, an A4 sheet or a US Letter sheet. You tap the corners, and the tool computes the perspective transform that makes them a true 85.60 × 53.98 mm (3.370 × 2.125 in) rectangle for a card. The same transform applies to the whole photo, so lengths in that plane come out right. Undo straighten returns to the original.

Can I use the photo ruler on a computer?

Yes, choose any photo file on a computer, for example one copied from your phone. You can also measure an image from a scan or a screenshot, if it shows a reference of known size. A mouse places points more precisely than a finger, and the wheel zooms in. Screen calibration does not matter here, because the scale comes from a reference such as a 24.26 mm (0.955 in) US quarter.

Which units does the photo ruler show?

Every measurement shows millimetres, centimetres and inches together, for example 230 mm · 23.00 cm · 9.06 in. The list below the image switches between mm, cm and in, and Download CSV uses the unit you pick. For a custom reference, enter its known length in mm, cm or in, such as 6 in (152.4 mm).

Calibrate

Not calibrated
  1. Most reliable method. Hold any bank card or driving licence flat on the screen (85.6 × 53.98 mm), top-left corner in the outline's corner.
  2. Drag the orange handle until the right edges line up. Arrow keys: 1 px, Shift 10 px.