Put your object against the 0 edge, then tap or drag where it ends. Double-click to add a guide line.

Pixel Ruler

Measure on-screen distances in CSS pixels. Ticks every 10 px, longer ticks every 50 px, numbers every 100 px. The readout also converts to physical size once your screen is calibrated.

CSS pixels vs device pixels

Browsers lay out pages in CSS pixels. High-density screens use several device pixels per CSS pixel; the ratio is your device pixel ratio (see your screen details). A 100 px button on a 3× phone uses 300 physical pixels.

Tips for designers

More tools