Browser Extension
Draw lines and boxes directly on any webpage to measure pixel dimensions â no dev tools, no screenshots, no guessing. Toggle it on from the toolbar and drag to measure.
Drag to draw a rectangle and see its width and height in pixels, live.
Hold Shift while dragging to draw a straight line and see its length in pixels.
Hold Ctrl while dragging a box to force equal width and height.
Click the toolbar icon to turn the ruler on or off â no menus, no setup.
Measurements exist only on screen while you're drawing. Nothing is stored or recorded.
Press Esc to cancel a drag in progress, or press it again to turn the ruler off entirely.
Visit Ruler â Pixel Measurement Tool on the Chrome Web Store and click Add to Chrome.
(Placeholder link â swap in the real listing URL once it's live.)
Chrome will ask you to confirm the permissions. Click Add extension â Ruler only uses these to draw its measurement overlay on the page you're currently viewing.
Click the puzzle-piece icon in the Chrome toolbar, find Ruler, and click the pin icon so it's always one click away.
Click the Ruler icon in the toolbar. A "ð Ruler active" notification appears briefly, and the page cursor switches to a crosshair â you're now in measuring mode.
Click and drag anywhere on the page. A yellow-bordered box follows your cursor, with a live width label above it, a height label to the right, and a combined W Ã H px label near your cursor.
Hold Shift while dragging to switch to a straight-line measurement instead. The line shows an arrowhead and a length label in pixels at its midpoint.
Let go of the mouse to leave the measurement on screen. Start a new drag at any time to replace it â only one measurement is shown at a time.
Click the toolbar icon again, or press Esc while not mid-drag. A "Ruler off" notification confirms it, and the overlay and cursor return to normal.
Draw a box measurement (default mode).
Hold while dragging to draw a straight line measurement instead of a box.
Hold while dragging a box to constrain it to a perfect square.
Cancel the current drag, or turn the ruler off if nothing is being drawn.
Ruler doesn't save, store or transmit anything. Measurements only ever exist as a temporary drawing on top of the page and disappear the moment you start a new one or turn the ruler off. There's no right-click menu, no popup, and no background tracking â the extension only acts on the page you're viewing, and only while it's switched on.
Chrome blocks extensions from running on internal pages such as chrome://, the Chrome Web Store, and the extensions page itself. Try it on a regular website instead.
Refresh the page once after installing or updating the extension, then click the toolbar icon again â the content script needs a fresh page load to attach.
Starting a new drag always clears the previous measurement â only one is shown at a time. If you need to compare two, take a screenshot of the first before drawing the second.
Esc only cancels a drag if you press it while still holding the mouse button down. If you've already released the mouse, the measurement has finished and Esc will deactivate the ruler instead.