CSS Filter Playground

Combinez des filtres CSS visuellement — blur, luminosite, contraste, niveaux de gris, rotation de teinte, saturation, sepia et inversion avec apercu en temps reel.

Preview
Adjust filters to see changes
CSS
filter: none;
Tailwind CSS
<!-- No filters applied -->

The CSS Filter Playground lets you stack the eight standard functions of the CSS `filter` property — blur, brightness, contrast, grayscale, hue-rotate, saturate, sepia and invert — and see the composited result update live against your own image. Instead of guessing pixel values in a stylesheet and reloading, you drag sliders and read back a ready-to-paste declaration.

Under the hood, `filter` accepts a space-separated list of filter functions that are applied in order, left to right. That order matters: `grayscale(100%) brightness(1.5)` is not the same as `brightness(1.5) grayscale(100%)`, because each function operates on the output of the one before it. This css filter generator surfaces that pipeline explicitly so you can reason about it.

The result is GPU-accelerated in most browsers and runs entirely at render time, so nothing is baked into the source file — the original image is untouched and you can toggle or animate the effect with a single property. That makes it ideal for hover states, theming and quick prototyping.

Using the playground

  1. 1

    Load or keep the default preview image so you can judge each filter against real content rather than an abstract swatch.

  2. 2

    Adjust individual sliders — blur in pixels, brightness/contrast/saturate as multipliers or percentages, hue-rotate in degrees, and grayscale/sepia/invert from 0% to 100%.

  3. 3

    Watch the live preview recomposite as you change values; reorder or disable functions to see how the left-to-right pipeline changes the output.

  4. 4

    Copy the generated `filter:` declaration and paste it straight into your CSS, or into a `:hover`/`transition` rule for an animated effect.

Where this comes in handy

  • Image hover and focus states

    Dim, desaturate or blur thumbnails on hover with a single transitioned property, keeping one source image instead of exporting a second processed version.

  • Dark mode and theming

    Tone down bright photos or logos for dark backgrounds using brightness and contrast, or approximate a color scheme shift with hue-rotate without re-editing assets.

  • UI overlays and disabled states

    Apply grayscale plus reduced brightness to signal an inactive or loading element, a lightweight alternative to swapping in muted graphics.

  • Rapid art-direction prototyping

    Test sepia washes, high-contrast looks or duotone-style effects before committing to Photoshop, then hand the exact values to a designer.

Practical notes and gotchas

  • Function order changes the outcome. Because filters chain, put `grayscale` before or after `hue-rotate` deliberately — hue-rotate has no effect on already-grayscale pixels.
  • Large blur radii and filters on big or full-screen elements can be expensive to paint; prefer animating `filter` on compositor-friendly properties and test on lower-end devices before shipping.
  • `hue-rotate` is a linear rotation on the color wheel in degrees (0–360), not a true hue remap, so saturated reds and blues shift predictably while near-grays barely move.
  • Values above 100% are valid and useful: `brightness(1.5)`, `contrast(2)` and `saturate(2)` push past the original, while `0` fully removes the effect's channel.
  • Filters do not affect accessibility semantics — an inverted or low-contrast image still needs meaningful `alt` text, and heavy contrast changes can break the visual contrast users rely on.

Common questions

What is the CSS filter property?+

`filter` applies graphical effects like blurring, color shifting and brightness changes to an element and its contents at render time. You pass one or more filter functions such as `blur()`, `contrast()` or `grayscale()`, applied in the order listed.

Can I combine multiple CSS filters at once?+

Yes. List the functions separated by spaces, for example `filter: contrast(1.2) saturate(1.4) hue-rotate(20deg)`. They are applied left to right, and the order affects the final result.

Does applying an image filter in CSS change the original file?+

No. The `filter` property only affects how the image is painted in the browser; the underlying source file is unmodified. To keep the effect you either leave the CSS in place or export a separately processed image.

Are CSS filters good for performance?+

They are usually GPU-accelerated, but heavy blur or filters on large elements can be costly to repaint. Keep radii modest, limit filtered area, and profile before animating them on complex pages.

Which browsers support the CSS filter property?+

The `filter` property with these functions is supported in all current versions of Chrome, Edge, Firefox and Safari. It has been stable for years, so no vendor prefix is required for standard filter functions.

What is the difference between saturate and contrast?+

`saturate()` scales color intensity — how vivid the hues are — while `contrast()` scales the difference between light and dark tones. A value of 1 (or 100%) leaves the image unchanged; 0 removes the effect entirely.