Skip to content
🎚️

CSS Filter Generator

Build CSS filter and backdrop-filter values with a live preview.

Runs in your browser

Updated

100%
100%
100%
0%
0%
0%
0deg
0px
100%
0px
0px
6px
Filter

Backdrop-filter (applies the same values to what sits behind an element)

Backdrop

Nine sliders and one optional shadow

Brightness, Contrast and Saturate each run 0 to 300 percent and start at 100. Grayscale, Sepia and Invert run 0 to 100 and start at 0. Hue Rotate reaches 360 degrees, Blur reaches 20 pixels, Opacity starts at its maximum of 100. A drop-shadow checkbox adds two offsets from −20 to 20 pixels, a blur of 0 to 40 defaulting to 6, and a colour picker starting at black. Six presets — Reset, Vivid, B&W, Vintage, Blur, Invert — write whole sets of values at once.

A worked example

Vivid sets 110, 115 and 160 on the first three sliders, and because only non-neutral functions are emitted the textarea reads filter: brightness(1.1) contrast(1.15) saturate(1.6); with a second line repeating that same list. Vintage gives brightness(1.05) contrast(0.95) saturate(1.2) sepia(0.8). B&W collapses to a single grayscale(1). Leaving everything neutral prints the keyword none, and switching the shadow on with its defaults appends drop-shadow(0px 0px 6px rgba(0,0,0,0.45)).

Rules the output follows

Percent sliders are divided by 100 and written as bare numbers, so 160 becomes 1.6 rather than 160%. Terms always appear in one fixed order, whichever slider you touched last. Two previews update live: a gradient square takes the filter, and a chip over an amber-to-blue strip takes the backdrop version of the identical list.

Where it stops

  • The copied block carries only the webkit-prefixed backdrop line, so Firefox ignores it until you add the standard property.
  • Shadow opacity is hard-coded at 0.45, and shadows cannot be stacked.
  • Sliders step by one, so percentages are whole numbers and blur stops at 20 pixels.
  • Declarations are printed without a selector, and there is no url() filter.

Questions people ask

Is a CSS filter the same as editing the file?

No. Filters are applied at paint time, so the original bytes are untouched and the effect is recomputed per element.

What pairs with this output?

A frosted panel usually combines it with the glassmorphism generator, and the declarations sit neatly beside a generated gradient.