image-rendering

Determines how the browser should upscale or downscale an image. It's especially useful for making pixel art look sharp ('pixelated') rather than blurry when enlarged.

It is documented as part of the CSS Images specification.

/* Usage Example */
.pixel-art {
  /* Keeps pixel edges sharp when the image is scaled up */
  image-rendering: pixelated;
}

/* Syntax */
image-rendering: auto;
image-rendering: crisp-edges;
image-rendering: pixelated;
image-rendering: smooth;

/* Global values */
image-rendering: inherit;
image-rendering: initial;
image-rendering: revert;
image-rendering: revert-layer;
image-rendering: unset;
Widely available Since 2021 96% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2021.

13+
3.6+
6+
79+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC