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.
- Lay a credit card, coin or sheet of paper flat beside the object, then take the photo from straight above.
- Upload the photo, drop it on the image area or paste it; it stays on your device.
- Choose the reference in the list and draw a line along its known edge.
- Press Straighten and tap the 4 corners of the card or sheet if the photo was taken at an angle.
- Measure with Line, Path, Rectangle, Circle or Angle, then check the scale on a second object.
- Copy the values, download a CSV or save a PNG with the measurements drawn on 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
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.
| Object | mm | cm | Inches | Source |
|---|---|---|---|---|
| Credit card (ID-1), long edge | 85.6 | 8.56 | 3.370 | ISO/IEC 7810 |
| Credit card (ID-1), short edge | 53.98 | 5.398 | 2.125 | ISO/IEC 7810 |
| A4 sheet, short edge | 210 | 21.0 | 8.268 | ISO 216 |
| A4 sheet, long edge | 297 | 29.7 | 11.693 | ISO 216 |
| US Letter, short edge | 215.9 | 21.59 | 8.500 | ANSI |
| United States Quarter (25¢), diameter | 24.26 | 2.426 | 0.955 | Issuing mint |
| United States Penny (1¢), diameter | 19.05 | 1.905 | 0.750 | Issuing mint |
| United States Nickel (5¢), diameter | 21.21 | 2.121 | 0.835 | Issuing mint |
| United States Dime (10¢), diameter | 17.91 | 1.791 | 0.705 | Issuing 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).