How the camera ruler works
The camera ruler freezes a frame from your camera and measures the object against a reference in the same frame.
- Press Start camera and allow camera access; the back camera is used when there is one.
- Hold the phone parallel to the table, above the object and a credit card beside it.
- Press Take photo to freeze the frame; the camera turns off.
- Draw a line along the card's long edge as the reference, or press Straighten and tap its 4 corners.
- Measure with Line, Path, Rectangle, Circle or Angle, then check the scale on a coin.
- Save a PNG with the measurements, or copy the values as text or CSV.
Camera 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
Camera 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 |
Camera ruler FAQ
How do you measure an object with your phone camera?
Freeze a camera frame with a credit card beside the object, then mark the card and the object on the photo. The card's 85.6 mm (3.37 in) edge sets the scale. Hold the phone parallel to the table at 30 cm (12 in) or more. On phones that report tilt, the level in the corner of the camera view turns green when the phone is flat.
Does the camera ruler record or save video?
No, the camera feed is shown only in the page, and the frozen photo stays in your browser's memory. Nothing is uploaded, and the camera turns off as soon as you take the photo. Reloading or closing the tab discards the frame. The browser asks for camera permission before the page can use a camera at all. A file is saved only when you press Download PNG or Download CSV.
How accurate is measuring with the camera?
The tool does not promise a figure: it measures the error when you check the scale on a second known object. After setting the scale on a card, draw Check scale across a coin. The tool shows the difference in percent and marks the scale Verified only within 1.5%. Tilt, a thick object or an object nearer the lens than the card all add error. Use calipers for tolerances under 1 mm (0.04 in).
Does the camera ruler work on a laptop webcam?
Yes, but a phone's rear camera works better, because you can point it straight down at a table. A webcam faces you, so you would have to hold the object and the card up to it at the same distance, about 30 cm (12 in) away. The page asks for the rear camera on phones, and Switch camera appears when the device has more than one.
Which reference sizes in mm and inches can I use?
You can use 12 built-in references, including card edges, 4 US coins, A4 and Letter sheet edges and an AA battery, or enter any length. The card is 85.60 × 53.98 mm (3.370 × 2.125 in), the quarter 24.26 mm (0.955 in) across and A4 210 × 297 mm (8.27 × 11.69 in). Pick a reference about as long as the object.