Calibrate once · lengths, paths, angles and areas · CSV and annotated PNG

Measure Distances on an Image

Set the scale from a line of known length (or from a drawing scale such as 1:100 at 150 dpi), then click out lengths, paths, angles and polygon areas on a plan, map or photo. Points can be dragged afterwards, and every reading goes into one CSV.

Picture

A floor plan, site photo, map or screenshot

Drop a picture here, paste, or click to choose

PNG, JPG, WEBP, GIF or BMP, up to 25 MB. Pictures over 4096 px on the long side are scaled down, and the scale is calibrated on what you see.

Measure Distances on an Image

Operator: Abdulla Al Fahad. How tools are built and checked

Measuring on a picture comes down to one conversion factor: real units per pixel. A floor plan scanned at 150 dpi and drawn at 1:100 gives 0.0169 m per pixel, which means a wall that spans 500 px is 8.47 m long. A plan with a printed scale bar works the same way: if the bar is 200 px long and labelled 5 m, every pixel is 2.5 cm. This page turns that single factor into readings: click two points for a length, several for a path, three for an angle, and a closed outline for an area.

Because the factor applies to the whole picture, the readings are only as good as the picture is flat. A plan, a map or a photo shot square-on to a wall qualifies; a floor photographed at an angle does not.

Key features

  • Two ways to set the scale: a line of known length drawn on the picture, or a drawing ratio 1:N with a scan resolution in dpi
  • Lengths, multi-point paths, angles from 0 to 180 degrees and polygon areas with perimeters
  • Results in mm, cm, m, km, in, ft, yd or mi, switchable without re-measuring
  • Drag any placed point to adjust it; undo up to 100 steps
  • A warning when an area outline crosses itself
  • Annotated PNG at the picture's size, and a CSV with values, units, pixel lengths and every point's pixel coordinates

Calibration, units and what each measurement means

The size limits are 25 MB and 50 megapixels. A picture over 4096 px on its longest side is scaled down as it opens, and all measuring happens on that scaled picture, so the pixel lengths in the CSV refer to it. A scale set from a line is for the same scaled picture, so nothing drifts, and a scale set from dpi and 1:N is corrected for the shrink: an A3 scan at 300 dpi is 4961 px wide, so each of the 4096 working pixels stands for 1.211 scan pixels, and a 5 m wall at 1:100 still reads 5.000 m.

Calibrating from a line takes the length of the line you draw in pixels and the real length and unit you type, and stores metres per pixel. Calibrating from a ratio uses 25.4 / dpi millimetres per pixel on paper multiplied by N. Both are held internally in metres, so changing the display unit later only changes the divisor. Area is the shoelace sum in square pixels times the square of the scale, so 120,000 px² at 0.025 m per pixel is 75 m².

An angle is measured at the middle point you click, between the rays to the first and third. The result is always the interior angle between 0 and 180 degrees, so clicking the points in the other order gives the same answer, and the arc drawn on the picture shows which one was read. A path adds up the straight segments between its points; it does not smooth curves, so trace a curved river or road with enough points.

How it works

Each click is converted from screen coordinates to picture pixels using the canvas's displayed size, so zooming does not change what is measured. Points are kept in picture pixels. The scale is a single number, and every reading is computed fresh from the stored points and that number, which is why moving a point or changing the unit updates the result at once. Area uses the shoelace formula, and a crossing test over every pair of non-neighbouring edges flags outlines where the signed area no longer equals the area of one region.

Common use cases

  • A 3300 x 2550 px scan of a 1:50 floor plan made at 200 dpi: choose the ratio option, enter 200 and 50, and a living room 1,480 px wide reads 9.40 m without drawing any reference line.
  • A site photo with a 2 m measuring pole standing in the frame, 310 px tall: draw the pole as the reference line, type 2 m, then measure a fence run as a four-point path and read it in feet.
  • A roof plan where three pitches meet: measure each angle with the Angle tool and each facet as an area, then read the total area from the results list.

How to use this tool

  1. Open a plan, map or photo, choose Set scale, and click the two ends of something you know the length of (or switch to the ratio option and type dpi and 1:N).
  2. Enter the real length and unit, press Set scale, then pick Length, Path, Angle or Area and click on the picture. Double-click or press Enter to finish a path or an area.
  3. Rename the results, drag points that are slightly off, then save the annotated PNG or the CSV.

Example

Calibration and three measurements

scale bar: 200 px = 5 m
wall: (0,0) to (300,400)
room: (0,0) (400,0) (400,300) (0,300)
corner: (100,0) (0,0) (0,100)

Readings on the picture

scale 0.025 m per px
wall 500 px = 12.5 m = 41.01 ft
room 120,000 px² = 75 m², perimeter 35 m (807.29 ft²)
corner 90°

Tips for best results

  • Calibrate on the longest known distance in the picture. A reference line of 40 px with a one-pixel click error is wrong by 2.5 percent; the same error on a 1,000 px line is 0.1 percent.
  • Zoom to 300 or 400 percent before placing the corners of a small room; the points can still be dragged afterwards.
  • The CSV keeps pixel coordinates, so you can re-run the numbers elsewhere if you later find the reference length was wrong.

Common pitfalls

One scale for the whole picture means no allowance for lens distortion or perspective. On a photo taken from an angle the far side is smaller in pixels than the near side, and a single factor will make far measurements too long. Plans and square-on photos are safe; for an oblique photo, straighten it first with the perspective fixer (Fix Photo Perspective), then measure the straightened export.

Common errors and how to fix them

The reference line is drawn but Set scale is disabled
The button needs a line with two points. Choose Set scale in the toolbar, click both ends, and the length of the line appears above the button.
An area shows a crossing warning
The outline's edges cross, as in a bow tie. Drag the points apart or delete the area and trace the corners in order around the shape.

Best practices

  • Re-set the scale if you open a different picture; calibration belongs to one picture and is cleared with it.
  • Name measurements as you go, because the names are drawn on the PNG and appear in the first CSV column.

Frequently asked questions

How accurate are the areas?

An area error is about double the calibration error, because both sides of the shape scale together. If the reference line is 1 percent off, a room's area is about 2 percent off: 75 m² could really be 73.5 or 76.5.