Skip to content
File formats and productionguide

How to keep a pixel-art icon crisp when enlarging it

By SkeuDesign Editorial Team1 min read

Answer in brief

Use image-rendering: pixelated for intentional pixel art and choose display sizes that preserve its grid. Inspect the result at the display density your product targets.

Scale a 16-pixel inventory item

Compare a 16-by-16 key displayed at 48 and 50 CSS pixels. At an integer scale each source pixel can occupy a regular block. Check diagonal teeth and the hole in the bow at both widths.

Inspect the browser zoom level

At a noninteger page zoom or device pixel ratio, a nominal threefold CSS enlargement need not map to a threefold physical display enlargement. Compare at default browser zoom before altering the source sprite. Record both the CSS size and the display environment when reporting uneven pixel columns.

Sources

  1. [1] image-rendering CSS property - CSS — MDN Web Docs, accessed November 23, 2026

Frequently asked questions

Should shaded 3D icons use the same setting?

Smoothly shaded imagery generally benefits from interpolation. Reserve this treatment for artwork whose visible pixel grid is intentional.