CSS Filter Generator

Your input stays in your browser and is never sent.

Move sliders for nine CSS filter functions — blur, brightness, contrast, grayscale and more — and copy the CSS while watching Before and After. You can try it on your own image.

  1. Enter
  2. See the result
blur
brightness
contrast
grayscale
hue-rotate
invert
opacity
saturate
sepia
Before
After (with the filter)

What is the CSS filter generator?

The CSS filter generator builds the value for the CSS filter property as you move sliders. It covers nine functions, including blur, brightness, contrast and grayscale.

On the right, the original (Before) and the filtered version (After) are shown side by side. Set the values while you watch, then copy the finished CSS as it is.

You can try it on the sample image or on your own. No sign-up or login, and it's free.

How to use the CSS filter generator

  1. Choose an imageKeep the sample image, or press "Use my own image" and choose one.
  2. Move the slidersChange a slider or its number and check how After looks.
  3. Copy the CSSCopy the filter CSS and paste it into your stylesheet.

Features of SOKUFU's CSS filter generator

Nine filter functions
blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate and sepia.
Before and After side by side
The original and the filtered image sit next to each other, so the change is obvious.
Leaves defaults out
A function you haven't moved isn't written into the CSS. If everything is at its default, the output is none.
Try your own image
The image you choose is shown only on your device and never sent anywhere.
Runs in your browser
Nothing you enter is ever sent to a server.
Works on phones
The layout adapts to your screen, so it works on phones and tablets too.

How the CSS filter property is written

filter takes functions separated by spaces, such as blur(2px) brightness(110%). With several functions, they are applied from left to right.

blur takes px, hue-rotate takes deg, and the rest take %. brightness, contrast and saturate start at 100%, and a larger value makes the effect stronger.

The same functions also work in backdrop-filter, which is useful for blurring what sits behind an element.

Related tools to use with the CSS filter generator

CSS filter generator FAQ

Does the order matter when I combine filters?

Yes. filter is applied from left to right. This tool writes them in a fixed order — blur, brightness, contrast, grayscale and so on. To change the order, rearrange the CSS by hand.

Can I set opacity with filter too?

Yes. opacity() is one of the filter functions.

Does it work with backdrop-filter?

Yes. backdrop-filter accepts the same functions.

Are untouched sliders written into the CSS?

No. Functions at their default are left out, and if all are at default the output is none.

Is the image I choose sent to a server?

No. Everything runs in your browser, and nothing you enter leaves your device.