Images
A 320 CSS-pixel image slot needs about 640 physical pixels on a DPR 2 display. Generate practical candidates instead of exporting only the largest asset.
Your DPR — the multiplier between CSS pixels and physical panel pixels — with visual examples and image asset size recommendations.
Your device pixel ratio is
Try resizing this window — all values update live
Paste the report into a bug ticket, or send the link to support/QA. Nothing is stored on our servers.
Every length on the web is specified in CSS pixels, but your display draws physical pixels. The device pixel ratio is the bridge: physical = CSS × DPR. That's why an iPhone reports a 393-pixel-wide viewport while its panel is actually 1179 pixels wide — the DPR is 3.
High DPR is what makes text look crisp on modern phones and "Retina" laptops. It's also why screenshots are bigger than the layout sizes you wrote in CSS. Use the asset advisor above to generate practical image dimensions and responsive snippets, open the full responsive image calculator, or check any phone's exact DPR in our phone screen size chart.
A 320 CSS-pixel image slot needs about 640 physical pixels on a DPR 2 display. Generate practical candidates instead of exporting only the largest asset.
Screenshot files often use physical pixels, so they can be larger than the CSS layout you measured. Divide a screenshot width by DPR to estimate the layout width that produced it.
Canvas and WebGL surfaces need a larger backing buffer on high-DPR screens. Size the CSS box for layout, then scale the drawing buffer by DPR for crisp rendering.
DPR is how many physical screen pixels are used to draw one CSS pixel. A DPR of 2 means a 100 px-wide CSS element is rendered with 200 physical pixels, making it look sharper at the same visual size.
Operating systems allow fractional scaling — Windows at 125% gives a DPR of 1.25, and many Android phones use values like 2.625 or 3.75. Browser zoom also changes the reported DPR.
Provide 1x and 2x image assets at minimum; 3x covers current high-density phones. Use the asset advisor above to turn a CSS image size into exact 1x/2x/3x pixel dimensions and a srcset snippet.
In JavaScript: window.devicePixelRatio. In CSS: @media (min-resolution: 2dppx). For images, use srcset with 1x/2x/3x descriptors.