If you design, build web pages or test app layouts, a pixel ruler that works over anything on your desktop saves a lot of screenshot-and-crop guesswork. Two of the best-known free options on Windows come bundled with tools many people already have: Screen Ruler in Microsoft PowerToys, and the Ruler in the open-source screenshot app ShareX. Both measure lines and boxes in pixels using edge detection, but they work in different ways.
This comparison is based on Microsoft's PowerToys documentation and ShareX's own documentation, checked on 6 December 2026.
At a glance
| PowerToys Screen Ruler | ShareX Ruler |
|---|
Price | Free (PowerToys is open source, MIT licence) | Free and open source |
How to open | Win + Ctrl + Shift + M (customisable) | Tools, then Ruler in ShareX |
Measuring modes | Bounds, Spacing, Horizontal, Vertical | Line (horizontal or vertical) and rectangular area |
Edge detection tolerance | Mouse wheel (15 units per tick), default 0-255 in Settings | Mouse wheel, shown as a percentage |
Live measuring | Optional continuous capture | Snapshot when opened - reopen to update |
Units | Pixels, plus optional inches, cm, mm or DIP | Pixels |
Copy result | Click copies to clipboard | Ctrl + C copies latest measurement |
Fine adjustment | - | Arrow keys (1px), Shift + arrows (10px) |
Ease of use
PowerToys Screen Ruler is always one shortcut away once PowerToys is running. Press Win + Ctrl + Shift + M, choose a tool from the small toolbar (or press Ctrl + 1 to 4) and move the pointer. A left click copies the measurement to the clipboard, which is ideal for quick checks.
ShareX's Ruler opens from the Tools menu. It's a full-desktop overlay: move the pointer to preview a horizontal or vertical measurement through the current pixel, left-click to keep it on screen, or left-drag around an object to measure an area. Press H, V or Space (or middle-click) to switch axis, right-click a measurement to remove it, and Esc to close.
Measuring modes
PowerToys gives you four distinct tools. Bounds draws a box you size by dragging - hold Shift to keep several boxes on screen. Spacing measures horizontally and vertically at once, while Horizontal and Vertical measure a single axis.
ShareX measures the length of a same-colour run under the pointer or the width and height of a rectangle you draw. When you drag, ShareX tries to snap the selection to the visible content boundary, so a rough box can tighten around a button or icon. You can keep several measurements on screen, nudge the latest one with the arrow keys (1 pixel, or 10 with Shift) and clear them all with Delete.
Edge detection and live content
Both tools use the mouse wheel to change tolerance, so lines can cross gradients, shadows and anti-aliased edges. PowerToys raises the threshold by 15 units per wheel tick and lets you set a default pixel tolerance from 0 to 255, plus a per-colour-channel detection option.
The bigger difference is live content. ShareX captures the desktop when the ruler opens, so if the screen changes you need to close and reopen it. PowerToys also takes a single snapshot by default, but you can turn on Capture screen continuously during measuring for real-time detection - Microsoft notes this uses more resources.
Units and display scaling
ShareX works in pixels and recommends zooming the app to 100% and allowing for Windows display scaling when comparing with CSS or design-tool sizes. PowerToys can add inches, centimetres, millimetres or display-independent pixels (DIP) alongside pixels, and its DIP values adjust for the scale of the monitor you're measuring on - useful on high-DPI laptops.
Everything else you get
Installing PowerToys brings many other utilities, from FancyZones to Color Picker - see the best PowerToys utilities. ShareX is primarily a screenshot and screen-recording tool with extras such as a colour picker and pin to screen; see how it compares with Windows' own tool in ShareX vs Snipping Tool.
Which should you choose?
Choose PowerToys Screen Ruler if you want a global shortcut, real-time measuring of moving content, or units other than pixels.
Choose ShareX Ruler if you already use ShareX for screenshots, want rectangles that snap to content, or need to nudge measurements pixel by pixel and copy them as text.
For more options, including PicPick and Rooler, see our best free screen ruler tools for Windows, or follow our step-by-step guide on how to measure pixels on your screen in Windows 11.