CSS Filter Generator

Build a CSS filter from blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate and sepia, with a live preview and only the changed settings written.

Processed on your device. Files are not uploaded

How to make a CSS filter

  1. Move the settings

    Change blur, brightness, contrast, grayscale, hue rotate, invert, opacity, saturate or sepia.

  2. Check the preview

    A sample image shows the effect straight away.

  3. Copy the CSS

    Only settings you changed are written.

Worked example

This is what CSS Filter Generator gives for its own sample values. Open the tool above and change anything to try your own.

Blur (px)
0
Brightness (%)
100
Contrast (%)
100
Grayscale (%)
0
Hue rotate (degrees)
0
Invert (%)
0

CSS

filter: sepia(40%);

About CSS Filter Generator

Build a CSS filter for photos and elements with a live preview. The filter property can blur, tint, desaturate or recolour anything, and the effects can be combined in one line.

FAQs

Does the filter change the image file?

No. It changes only how the browser shows it. To change the file, use Photo Filters.

Does it affect the children of the element?

Yes. Everything inside the element is filtered too.

Does the order matter?

Yes. Filters apply from left to right, so changing the order can change the result.

Related tools