Distance and rectangle dimensions
Width and height are coordinate differences. Distance is the diagonal length calculated from them. A 30px horizontal difference and a 40px vertical difference give a distance of 50px.
Pixel ruler
Design
Measure distances and rectangles in source-image pixels.
Files are processed in this browser.Drop a file or choose one. You can also paste an image.
JPG · PNG · WebP / up to 40 MB and 16 MP / no animation or rotation metadataChoose a file to begin.
Choose a screenshot or design image and check its source dimensions.
Drag from start to end, or enter both X/Y coordinates. Width, height, distance and angle appear below the preview.
Generate an annotated PNG and a JSON record containing source dimensions and coordinates.
Width and height are coordinate differences. Distance is the diagonal length calculated from them. A 30px horizontal difference and a 40px vertical difference give a distance of 50px.
Measurements use source-image coordinates. A 200px span in a 2× screenshot is not necessarily 200 CSS pixels. Scaling the preview does not change the numbers.
Calculation uses original coordinates. For small features that are difficult to select with a pointer, enter the exact coordinates.
It measures the distance between coordinates, not an inclusive pixel count. X=0 to X=100 spans 100px.
It stores source dimensions, endpoints, units, width, height, distance and angle. It does not embed the original image.
Separate source coordinates from display scale, then use the ruler, color picker and diff tool together.
Read guide →Understand common frame shapes and choose what to keep when cropping an image to a new aspect ratio.
Read guide →