Pixel Ruler
Pixel Ruler is a free Chrome extension that lets designers and developers measure web page elements, spacing, and colors directly in the current tab.
Main features
- Measure boxes and distances
Draw and compare multiple boxes, or click two points to see the straight-line distance and its horizontal and vertical components.
- Inspect elements and spacing
Hover over an element for its dimensions. Lock it and hover over another element to measure the gap. Press M in element mode to see margin, border, padding, and content.
- Add guides and copy values
Position horizontal or vertical guides. Switch among px, rem, and % and copy box or element dimensions as text or CSS.
- Pick colors and check contrast
Copy sampled colors as HEX, RGB, or HSL. Check the contrast ratio between text and background colors against WCAG AA and AAA thresholds.
How to use it
- Install Pixel Ruler and open the web page you want to measure.
- Click the toolbar icon or press Alt+Shift+R. Choose Box, Element, or Distance mode.
- Drag a box, hover over an element, or click two points. Use Copy to save the result to your clipboard.
Screenshots
Privacy and permissions
Pixel Ruler is free, ad-free, and requires no account. The extension processes measurements and sampled colors on your device and sends no data to external servers. Closing the ruler clears the overlay and its measurements.
Privacy policy| Permission | Why it’s used |
|---|---|
activeTab | Temporarily accesses the current tab when you open the ruler. |
scripting | Loads the measurement overlay into that tab. |
storage | Saves preferences such as units, toolbar position, and copy format on your device. |
Frequently asked questions
Can I measure the pixel size of an element in Chrome?
Yes. Open Pixel Ruler, choose Element mode, and hover over the element. Use Box mode to measure a freely selected area.
Can I measure the gap between two elements?
Yes. In Element mode, click to lock the first element and hover over the second to see the gaps.
Is Pixel Ruler an alternative to Page Ruler Redux?
If you used the discontinued Page Ruler Redux to draw a rectangle and measure its size or position on a web page, Pixel Ruler offers that workflow in Box mode.
Can I copy measurements as CSS or use rem?
Yes. Pixel Ruler supports px, rem, and %. It copies box and element dimensions as text or CSS and distances as text.
Can I use Pixel Ruler as a color picker and contrast checker?
Yes. The eyedropper copies HEX, RGB, or HSL. The contrast checker compares two colors against WCAG AA and AAA thresholds for normal and large text.
Does it work on Chrome internal pages or PDFs?
Chrome blocks the ruler on internal pages, in the Chrome Web Store, and in its built-in PDF viewer. Measuring a local HTML file requires enabling file URL access in Chrome.
Does Pixel Ruler need access to every site I visit?
It uses temporary access to the current tab when you open the ruler. Settings such as units and toolbar position are saved on your device.
What is the shortcut to open or close Pixel Ruler?
The default shortcut is Alt+Shift+R. Press Esc to close the ruler.
