Online ruler camera

The back camera is used when there is one. Hold the phone parallel to the table, above the object and the reference.

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 camera ruler works

The camera ruler freezes a frame from your camera and measures the object against a reference in the same frame.

  1. Press Start camera and allow camera access; the back camera is used when there is one.
  2. Hold the phone parallel to the table, above the object and a credit card beside it.
  3. Press Take photo to freeze the frame; the camera turns off.
  4. Draw a line along the card's long edge as the reference, or press Straighten and tap its 4 corners.
  5. Measure with Line, Path, Rectangle, Circle or Angle, then check the scale on a coin.
  6. Save a PNG with the measurements, or copy the values as text or CSV.
card object
A frozen camera frame: the card sets the scale for the object beside it.

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

Worked example, live

1700 px × (85.6 mm ÷ 610 px) = 238.6 mm (23.86 cm, 9.39 in). Scale: 0.1403 mm per photo pixel.

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.

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

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.

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.