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.

Quick example

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

Quick facts

Initial value
auto
Inherited
Yes
Applies to
all elements
Animation type
discrete

Values

autocrisp-edgespixelatedsmooth

image-rendering Browser Support

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.

Safe to use without fallbacks.

13+
3.6+
6+
79+
ESC