Automatic
Pixel Ruler

Measure what's on your screen without drawing a single line. Automatic Pixel Ruler finds the rectangles in any window, image or remote desktop, and shows their width and height as you move the mouse.

Windows 10 version 2004 or later Windows 11 recommended Free, with an optional Pro add-on Microsoft Store
01

Overview

Automatic Pixel Ruler captures your screen continuously, looks for flat areas, shapes and edges, and outlines every rectangle it finds: title bars, buttons, panels, images, table cells, sections of a web page, rooms on a floor plan. Move the mouse over one of them and its dimensions appear. Nothing to drag, nothing to click.

Most screen rulers measure one spot, under the cursor, when you ask. Automatic Pixel Ruler measures everything on screen at once, and keeps doing it while you work. Because it reads pixels, not the structure of an application, it works on anything Windows can display:

Key Capabilities

🔍 Automatic detection
Three detection modes, for interfaces, figures on a background, and photos, outline rectangles in real time, nested ones included.
📏 Real-world units
Pixels, inches, centimeters or millimeters, computed from your monitor's actual DPI.
📐 Measuring tools
Measure a line between two points for free. With Pro, measure paths, angles and areas, and keep measurements on screen.
🎯 Calibration (Pro)
Draw a line over a known length once, and every dimension is shown in the real units of what you measure.
✂️ One-key element capture
Save the element under the mouse as a pixel-exact PNG, without dragging a selection.
📊 Export (Pro)
Copy measurements as a table, and save them as an Excel ready CSV file and an annotated image.
🖱️ Click-through overlay
On Windows 11, keep using your applications while the measurements stay visible.
📺 Multi-monitor
Measure one display or all of them, each with its own DPI.
🎛️ Tunable detection
Edge sensitivity, minimum size, and GPU pre-processing effects for photos and drawings.
⚙️ Presets
Settings are saved automatically. Save and share tuning presets as .apixruler files.

Free and Pro

Automatic Pixel Ruler is free. Detection, highlighting, units, the special effects, presets and saving the highlighted elements are free and stay free. The optional Automatic Pixel Ruler Pro add-on, a one-time purchase in the Microsoft Store, adds the tools for measuring and reporting:

FeatureFreePro
Automatic detection, highlights, every dimension✔✔
Pixels, inches, centimeters, millimeters✔✔
Detection modes, pre-processing, special effects, presets✔✔
Saving the highlighted elements as PNG✔✔
Measuring a line between two points✔✔
Calibration to the real units of what you measure✔
Paths, angles and areas, measurements kept on screen✔
Exporting measurements as a table, a CSV file and an annotated image✔
Saving every detected element at once, with a minimum size✔

The title bar says Automatic Pixel Ruler Pro when the add-on is active, and the About dialog shows the edition. Using a Pro feature without the add-on shows a short notification next to the mouse pointer, and nothing else changes. Get the add-on with the Get Pro button of the About dialog.

System Requirements

ComponentRequirement
Operating systemWindows 10 version 2004 (May 2020 Update, build 19041) or later.
RecommendedWindows 11. On Windows 10 the overlay cannot let mouse and keyboard input through to the applications below it, see Windows 10.
GraphicsA Direct3D 11 capable GPU. Capture, pre-processing and rendering all run on the GPU.

02

Getting Started

When Automatic Pixel Ruler starts, its main window opens in the bottom-right corner of the primary monitor, and a transparent overlay covers the screen and starts detecting rectangles right away.

  1. Start Automatic Pixel Ruler. Colored outlines appear around the rectangles found on screen.
  2. Move the mouse over an element. Every rectangle under the pointer is highlighted with its width and height, for example 320 × 48.
  3. Press Left Ctrl to step through nested rectangles under the pointer, a button inside a panel inside a window.
  4. Press Right Ctrl to save the highlighted elements as PNG images.
  5. Press Ctrl+Shift+X to draw a line and measure between two points, and Esc to stop.

Every action is confirmed by a short notification next to the mouse pointer. It can be turned off in Settings. The Keyboard Shortcuts button of the About dialog lists every key, see Keyboard Reference.

The status bar at the bottom of the main window shows how many rectangles were detected in the last frame, and how long it took. If the screen looks too busy or too empty, see Tuning Detection.

ℹ️Only one copy of Automatic Pixel Ruler runs at a time. Starting it again brings the existing window to the front.

03

Measuring

Outlines and highlights

Every detected rectangle gets a thin colored outline. The color comes from the rectangle's position, so a given element keeps the same color from one frame to the next.

Rectangles under the mouse pointer are highlighted: a thicker outline and a larger label with their width and height. When several rectangles are stacked under the pointer, the label also says which one it is, 640 × 480 (2/5) is the second of five highlighted rectangles.

One of the highlighted rectangles is the active one. It is drawn with a semi-transparent fill. Press Left Ctrl to make the next one active. Moving the mouse starts the list over.

Showing every dimension

By default only highlighted rectangles show a label, so the screen stays readable. The button in the title bar of the main window puts a label on every detected rectangle, and goes back to highlighted ones only.

Units and physical sizes

Dimensions are in pixels by default. In Settings you can switch to inches, centimeters or millimeters. Physical units are computed from the monitor's raw DPI, read from its hardware description (EDID), so a 5 cm label means 5 cm on the glass, whatever the resolution or the Windows scaling. This is what makes the app useful on floor plans and drawings displayed at a known scale.

When all displays are captured, each rectangle uses the DPI of the display that shows most of it.

⚠️ Some older monitors and most virtual machines do not report a physical size. Windows' effective DPI is used instead, and physical units can then be off. Pixel values are always exact.

Calibration (Pro)

Monitor DPI gives the size of what is on the glass. Calibration gives the size of what the image shows: millimeters on a scan, meters on a plan, microns under a microscope, whatever the zoom.

  1. Display an image with a known length on it, a scale bar, a ruler, a dimensioned wall.
  2. Press Ctrl+Shift+X at one end of that length, and move the mouse to the other end.
  3. Press Shift+Left Ctrl. A dialog asks for the real length, for example 50 or 2,5, and its unit: µm, mm, cm, m, km, in or ft.

From then on every dimension, every length and every area is shown in that unit, until you choose another unit or click Clear Calibration in Settings. A calibration applies to images displayed at the same zoom, so calibrate again after zooming the image.

Measuring with lines

For lengths that are not rectangles, or to check a detected value, draw a line:

  1. Put the pointer on the start point and press Ctrl+Shift+X.
  2. Move the mouse. A line follows it, labeled with its length and with the horizontal and vertical span it covers, for example 125 px (100 x 75 px).
  3. Press Ctrl+Shift+X again or Esc to stop.

While a line is being drawn, the labels of the detected rectangles are hidden, so the line and its own label stay readable. The shortcut can be changed in Settings.

Paths, angles and areas (Pro)

While a line is being drawn, keys on the left side of the keyboard turn it into a measuring tool, so the right hand stays on the mouse. They act when pressed and released on their own, so nothing else changes in the application you are measuring.

While drawingEffect
Left CtrlAdds a point where the pointer is. The line becomes a path, and each corner shows its angle.
Left ShiftKeeps the measurement on screen and stops drawing. With the pointer back on the start point, it closes the shape and keeps its area and perimeter.
Shift+Left CtrlUses the length drawn so far to calibrate.
EscStops drawing without keeping anything.

Every point placed is marked with a dot, the start point with a larger one, so you see where a line begins even before moving the mouse. With three points or more, the label also gives the area and the perimeter the shape would have if it were closed, and a thin line shows the side closing it would add. Bring the pointer back on the start point and the label shows the closed shape.

Kept measurements are numbered, #1, #2, and each has its own color. Numbers always run from 1 without gaps: deleting a measurement renumbers the ones after it. They stay where they were drawn on the screen and follow any change of unit or calibration. To delete one, put the pointer on its line or its label and press Shift+Left Ctrl. With the pointer on none of them, the same keys delete them all.

💡 Angles are measured in real units, between 0° and 180°, so they stay right even when the image is not displayed at the same scale on both axes.

04

Saving & Exporting

Automatic Pixel Ruler can save detected elements as PNG images, cropped exactly to the rectangle. The images come from the original screen capture, so they contain no outline, no label, and no pre-processing effect.

KeySaves
Right CtrlEvery rectangle currently highlighted under the mouse pointer, one file each.
Shift+Right Ctrl (Pro) Everything: every rectangle detected on screen, one file each, and every kept measurement, see below. Min save size, in the main window, skips the rectangles smaller than that size squared, 0 keeps them all.

Files go to the Windows Screenshots folder, usually Pictures\Screenshots. They are named like this:

Automatic Pixel Ruler 2026-03-24 51966(0).png

That is the app name, the date, the number of seconds since midnight, and the position of the rectangle in that save, starting at 0. All files saved by one key press share the same time stamp.

ℹ️The overlay can pause for a moment while the images are written. The more and the larger the rectangles, the longer the pause. A notification then says how many images were saved and where, or that there was nothing to save.

Each image carries its details, shown by File Explorer in the file's properties: the program, the date, and when a unit other than pixels is chosen, the size of the element in that unit as its title.

Exporting measurements (Pro)

KeyExports
Right Ctrl on a kept measurement That measurement. Its values are copied to the clipboard, and an image cropped around it is saved, with the measurement drawn on it.
Shift+Right Ctrl Every kept measurement. The table is copied to the clipboard, and an image of the whole screen is saved, with all of them drawn on it.

"On a kept measurement" means the pointer is on its label, or close to one of its lines. Each export also writes a .csv file next to the image, with the same name. It opens in Excel directly as columns, and the table copied to the clipboard pastes into a spreadsheet the same way:

ColumnContents
NumberThe measurement number shown on screen.
KindLine, Path or Area.
Length, Perimeter, AreaThe values of the measurement, in the current unit.
AnglesThe angle at each corner, in degrees.
UnitThe unit of the values, px, mm or a calibrated unit.
ScreenThe display that shows most of the measurement.
Points (px)The corners in screen pixels, like 222x492;292x229.

The images drawn for an export show the measurements only, without the outlines of the detected rectangles. Their details in File Explorer hold the measurement as the title and the table as comments.


05

Examples

An application window

Rectangles highlighted under the mouse pointer on a dashboard
In Areas mode, every panel, card and chart of the window is outlined. The ones under the mouse pointer are highlighted with their width and height.
Every detected rectangle labeled in centimeters
The same window with every dimension shown, in centimeters.
Nested rectangles under the pointer, the second one active
A value inside a tile inside a panel: Left Ctrl steps through the nested rectangles under the pointer, and the active one is filled.

A floor plan, calibrated

Rooms measured in square meters on a calibrated floor plan
Calibrated once on the scale bar, the plan is measured in meters. The living room and the kitchen are kept on screen as areas, with their perimeter and the angle of each corner.

A drawing, paths and angles

Paths and angles measured on a technical drawing
Calibrated in millimeters on a dimension line, paths follow the edges of the part, and the angle measured matches the one written on the drawing.

Exporting measurements

Measurements exported and opened in Excel
Exported with Shift+Right Ctrl, the measurements of the plan open in Excel as columns, with their kind, perimeter, area, angles, unit, screen and points.

Figures on a background

One box per part on a plain background
In Objects mode, every part on the plain background gets one box, labeled in millimeters.
One box per face on an illustration
The same mode on an illustration: one box per face, the one under the pointer highlighted.

A remote desktop

Rectangles detected inside a Windows Sandbox window
Windows Sandbox, where no inspector can reach the applications. Settings and File Explorer running inside it are measured like any other window.

A photo, with and without pre-processing

Oil effect applied to a photo before detection
Photos have soft edges and a lot of texture. Here the Oil effect flattens the image so that the detector finds the heads and faces. The overlay shows the pre-processed image.
Same detection shown over the original photo
Same image and settings, with the overlay showing the original capture. Switch between the two with and in the title bar.

06

The Main Window

The main window is a compact panel that can be moved anywhere and resized horizontally. It has a title bar with buttons, a property grid with every detection parameter, and a status bar. The window itself is excluded from screen capture, so it never ends up in detections, saved images or recordings.

Dragged close to an edge or a corner of any monitor, the window snaps to it, leaving a small margin set in Settings. Keep dragging to pull it away. When its height changes, for example when you switch detection mode, it grows away from the nearest screen corner, so a window parked in a corner stays there.

Main window with its property grid
1
Title bar
2
Sampling
3
Detection
4
Input display
5
Pre-processing
6
Special effect
7
Status bar
1
Title bar. Drag it to move the window. Its buttons are described below.
2
Sampling. How often frames are analyzed, see Tuning Detection.
3
Detection. Minimum size and edge thresholds, see Detection parameters.
4
Input display. The monitor to measure, or all of them. Only shown when more than one display is connected.
5
Pre-processing. Image clean-up before detection, see Pre-processing.
6
Special effect. None, Pixel, Oil or Crystal, with their own parameters, see Special effects.
7
Status bar. Rectangles detected in the last frame and the time it took, and confirmation messages.

Title bar buttons

Editing values

Every parameter applies immediately. Drag a slider, or click the number next to it and type a value. While typing, Up and Down change the value by 1. Drag the column divider to resize the names and values columns.


07

Tuning Detection

The defaults work well on ordinary application windows. Photos, drawings and busy pages usually need a few adjustments.

Detection mode

The first setting of the main window chooses how rectangles are found. Each mode suits a different kind of content.

ModeHow it worksBest for
Areas Finds regions of flat color and measures each one exactly, including faint separators and borders only a few shades apart. Application windows, web pages, remote desktops and virtual machines. This is the default.
Objects Takes the background color from the edges of the screen, and measures every shape that stands out from it. Figures, parts or scans on a plain background, one box per object.
Edges Follows contrast lines in the image after pre-processing and effects, as described below. Photos, scans and drawings, where the effects make the shapes you need stand out.

Areas and Objects work on the original screen, so the edge thresholds, the pre-processing and the effects only apply in Edges mode, and they are hidden in the other two. Presets remember their mode.

How Edges mode works

Capture, pre-processing, detection and rendering pipeline
  1. Capture. The selected display is captured by the GPU, frame after frame.
  2. Pre-processing. A GPU shader simplifies the frame: posterization, color reduction, blur, sketch and an optional special effect.
  3. Detection. Edges are found with a Canny detector, then grouped into outlines, and each outline gives a bounding rectangle. Rectangles that are too small, or that cover the whole screen, are dropped.
  4. Rendering. The overlay draws the outlines and labels on top of the screen.
💡 While tuning, turn on to see the pre-processed image. If an edge is not visible there, the detector cannot find it either.

Advanced settings

A few settings are only useful for fine control, and they are hidden until Advanced Settings is checked in Settings: sampling, the weak edge threshold, blur quality and Oil sampling quality. While they are hidden, sampling stays adaptive and the weak edge threshold is half the edge threshold, so nothing invisible keeps acting.

Sampling

With Adaptive Sampling on, the default, the interval between two analyzed frames follows how long the previous ones took to process, which keeps the load in check. With it off, Fixed Sampling sets the interval between two analyzed frames, from 0 to 2000 ms, 1000 ms by default.

⚠️A very short fixed interval can keep the CPU and the GPU busy. Leave Adaptive Sampling on unless you need a steady rate.

Detection parameters

ParameterRangeDefaultEffect
Min detection size4 to 50030 Side of the smallest square area kept, in pixels. At 30, rectangles smaller than 30 × 30 = 900 pixels are ignored, whatever their shape.
Min save size (Pro)0 to 20000 Same rule for saving every element: smaller rectangles are detected and shown, but not saved. At 0, all of them are saved.
Edge threshold0 to 255100 Contrast above which a pixel is always an edge.
Weak edge threshold (advanced)0 to 25550 Contrast below which a pixel is never an edge. Pixels between the two thresholds count only when connected to a strong edge. Without advanced settings, it is half the edge threshold.

Lower thresholds find fainter edges and more rectangles, higher thresholds keep only the sharpest ones. The pair works together: the weak threshold stitches broken outlines, the strong one decides where outlines start.

Pre-processing

ParameterRangeDefaultEffect
Luma posterization0 to 6416Number of brightness levels kept. Fewer levels merge areas of similar brightness, so gradients and shadows stop producing edges.
Chroma compression1 to 328Number of color levels kept. Fewer levels remove subtle color changes. Around 3 the image is close to grayscale.
Blur radius0 to 1000Blur strength. Removes noise and fine texture, but too much softens the edges you want.
Blur quality (advanced)0 to 4816Smoothness of the blur. Higher is nicer and slower.
Sketch size0 to 100Size of the area used by the sketch effect, which turns the image into a drawing and reinforces contours.
Sketch strength0 to 1000How strongly the sketch effect marks the contours.

Special effects

An optional effect applied before detection. Each one is meant for a different kind of picture.

EffectParametersGood for
None Application windows and web pages, which already have sharp edges.
PixelBlock size, 2 to 100Pixelates the image. Removes small details such as text, so that panels and large blocks stand out.
OilPaint radius 1 to 64, paint details 4 to 32, sampling quality 0 to 6 (advanced)Paints the image in flat areas. Best on photos and textured images.
CrystalCell size 0 to 100, edge emphasis 0 to 100Breaks the image into cells with marked borders. Useful on drawings and irregular shapes.

Pixel effect parameters Oil effect parameters Crystal effect parameters

⚠️High Oil values are expensive on the GPU. If the overlay starts to lag, lower the paint radius, details or sampling quality first.

Starting points

ContentTry
Application windowsAreas mode, the default. Raise the minimum size if small icons clutter the view.
Busy web pagesAreas mode with a higher minimum size. In Edges mode, the Pixel effect with a small block size hides text.
Figures on a plain backgroundObjects mode.
PhotosEdges mode with the Oil effect, lower posterization, and a little blur.
Plans and drawingsAreas mode for clean digital plans. For scans, Edges mode with lower edge thresholds so thin lines are kept.

Building a preset for your kind of images

Every kind of image has its own look. Scans, floor plans, microscope images, maps, photos and user interfaces all differ in contrast, noise, texture and line thickness, and no single setting fits them all. The parameters above, and the special effects in particular, are how you teach Automatic Pixel Ruler what matters in your images and what to ignore. Getting it right takes a little practice, but you only do it once per kind of image.

  1. Open a typical image of the kind you work with, one that has the shapes you want to measure.
  2. Turn on the pre-processed view , so that you see what the detector sees while you adjust.
  3. Simplify the image first. Lower the posterization and color levels, and add blur, until noise and texture fade while the outlines you care about remain.
  4. Try each special effect. Oil tends to suit photographic and scanned content, Pixel hides text and fine detail, Crystal marks the borders of irregular shapes. Adjust the effect's own parameters until the outlines are clean.
  5. Adjust the edge thresholds, then raise the minimum size until only the shapes you want are left.
  6. Check the result on two or three other images of the same kind, and correct what they reveal.
  7. Save the settings as an .apixruler preset with a name that says what it is for, for example scans.apixruler or floorplans.apixruler.

From then on, loading the preset brings back the whole configuration in one step. A preset is also the easiest way to share this work: once one person in a team has tuned it, everyone who opens the file gets the same detection. See Presets.

⚠️ Automatic Pixel Ruler measures what is displayed on screen. It is not a certified measuring instrument, and its measurements are for reference only.

08

Settings & Presets

Click in the title bar to open the Settings dialog.

Settings dialog

Presets

A preset is an .apixruler file holding every detection and pre-processing parameter. Keep one per kind of work, one for application windows, one for photos, one for plans, and load the one you need. Presets are plain JSON files and can be shared with colleagues or copied to another computer.

To open presets with a double-click, right-click an .apixruler file in File Explorer, choose Open with, then Choose another app, select Automatic Pixel Ruler and check Always.

Resetting

The button in the title bar resets every detection parameter to its default value, and clears the calibration, which brings dimensions back to pixels. The other units, the shortcut and the selected display are kept.


09

Keyboard Reference

These keys work anywhere while the app is running, even when another application has the focus. Left Ctrl, Right Ctrl and Left Shift act when they are pressed and released on their own, so shortcuts in other applications, such as Ctrl+C or a capital letter, never trigger them. Left Shift only does something while a line is being drawn.

💡 For a combination like Shift+Left Ctrl, press and hold Shift first, then tap the Ctrl key. Pressing Ctrl first makes it a key combination for the application you are using, and Automatic Pixel Ruler ignores it.
KeyAction
Left CtrlMake the next highlighted rectangle under the pointer the active one.
Right CtrlSave the highlighted rectangles as PNG images. On a kept measurement, export it (Pro).
Shift+Right CtrlSave every detected rectangle, and export every kept measurement (Pro).
Shift+Left CtrlDelete the kept measurement under the pointer, or all of them.
Ctrl+Shift+XStart or stop drawing a line. Can be changed in Settings.
Ctrl+Shift while startingPut the main window back in its default position.

The Keyboard Shortcuts button of the About dialog shows the same list in the application, with the key names of your own keyboard.

Keyboard Shortcuts dialog

While a line is being drawn:

KeyAction
Left CtrlAdd a point, to measure a path and its angles (Pro).
Left ShiftKeep the measurement on screen. Back on the start point, close the shape and keep its area (Pro).
Shift+Left CtrlCalibrate a unit from the line (Pro).
EscStop drawing.

10

Files & Data

WhatWhere
Settings%LocalAppData%\Automatic Pixel Ruler\settings.json, saved on every change and on exit.
Settings backupsThe settings.bak folder next to it, with 30 days of rolling backups.
Saved images and exportsThe Windows Screenshots folder, usually Pictures\Screenshots. The Open Folder button of the Keyboard Shortcuts dialog opens it.
PresetsWherever you save your .apixruler files.

To start over from factory settings, close the app and delete settings.json. Captured frames never leave your computer. They stay in GPU memory and are only written to disk when you save an image.


11

Troubleshooting

ProblemWhat to do
"Not supported" at startupUpdate Windows to version 2004 or later, see System Requirements.
No rectangles appearCheck the Input display and make sure capture is not paused. Try another detection mode. In Edges mode, lower the minimum size and both edge thresholds.
Too many rectanglesRaise the minimum size or the edge thresholds, or try the Pixel effect to hide text.
An element is not detectedTurn on the pre-processed view and check its edges are visible. Adjust pre-processing or try an effect.
Hard to see which rectangle is measuredPress Left Ctrl until the one you want has the filled highlight.
Physical units look wrongThe monitor may not report its size, see Units. In a virtual machine, run it full screen at its native resolution.
Nothing saved with Right CtrlOnly highlighted rectangles are saved. Put the pointer over an outlined element first.
Drawing a line does not startAnother application may use the shortcut. Choose a different one in Settings.
A key shows "is part of Pro"That feature needs the Pro add-on, see Free and Pro.
No CSV file after an exportExports happen on a kept measurement. Put the pointer on its label before Right Ctrl, or use Shift+Right Ctrl, which exports them all.
Overlay is slow, or the GPU is busyLower or disable Oil and Blur. With advanced settings shown, keep Adaptive Sampling on.
Main window is off screenHold Ctrl+Shift while starting the app.
Windows 10: clicks do not reach applicationsSee below.

Windows 10

On Windows 11 the overlay is invisible to the mouse and the keyboard, and you can keep working in your applications while measuring. Windows 10 does not allow that for this kind of overlay, so while capture is running the overlay takes the mouse and keyboard input.

The taskbar and Alt+Tab still work. To use an application, click to pause capture, then to resume measuring.


12

Support & Licensing

Click in the title bar to open the About dialog.

About dialog

Under the version, the dialog says whether this is the free edition or the Pro edition.

Pro is a one-time purchase tied to your Microsoft account, like the app itself. It is recognized on every Windows computer where you sign in to the Microsoft Store with that account.

If the app runs into an unexpected error, it offers to write an anonymous error report to your desktop. Nothing is sent automatically, you decide whether to send the file.


Enjoying Automatic Pixel Ruler?

If Automatic Pixel Ruler has made your measuring easier, a quick rating on the Microsoft Store helps other people discover it, and it means a lot to our small team. It takes less than a minute.

★ Rate Automatic Pixel Ruler on the Microsoft Store