What Are CSS Filters?
CSS filters apply visual effects to any element — blur, brightness, contrast, grayscale, sepia, hue-rotate, saturate, and invert. They're GPU-accelerated, work on images, videos, and HTML elements, and can be combined and animated. This playground lets you layer multiple filters, adjust each one with sliders, and see the combined effect in real time.
Available Filter Functions
blur() — Gaussian blur in pixels. brightness() — lighten or darken (1 = normal). contrast() — adjust contrast (1 = normal). grayscale() — convert to grayscale (0-1). sepia() — warm vintage tone (0-1). hue-rotate() — shift colors around the wheel (0-360deg). saturate() — boost or reduce color intensity. invert() — invert all colors (0-1).
How to Use This CSS Filter Playground
- Select a filter function — Choose from blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, and sepia.
- Adjust the value — Use the slider to control the filter intensity. Each filter has its own range and behavior.
- Stack multiple filters — Add multiple filter functions — they're applied in order. Combine grayscale + contrast for dramatic effects.
- Preview on an image — See your filter combination applied to a sample image in real time.
- Copy the CSS — Grab the complete
filterproperty with all your stacked values.
Worked example: what the filter functions do to real colours
On October 12, 2026 we applied filter strings to flat colour swatches in Chromium and read back the rendered pixel.
| Colour | filter | Result | If it worked like a colour wheel |
|---|---|---|---|
| #FF0000 | hue-rotate(180deg) | #006D6D | #00FFFF |
| #FF0000 | hue-rotate(120deg) | #007100 | #00FF00 |
| #00FF00 | hue-rotate(120deg) | #74B1FF | #0000FF |
| #3B82F6 | grayscale(100%) sepia(100%) | #A79474 (sepia tone) | — |
| #3B82F6 | sepia(100%) grayscale(100%) | #999999 (plain grey) | — |
| #808080 | contrast(180%) brightness(110%) | #8D8D8D | — |
| #808080 | brightness(110%) contrast(180%) | #979797 | — |
- hue-rotate() is not an HSL hue shift. The spec defines it as a fixed colour matrix that approximately keeps luminance, so saturated colours lose a lot of brightness and saturation: pure red rotated 180° becomes a dark teal (#006D6D), not cyan. For exact hue changes, change the colour itself (hsl() or oklch()) instead of filtering it.
- Order changes the result, and this tool fixes the order. Filters apply left to right: grayscale then sepia gives a sepia tone, sepia then grayscale gives grey. The copied CSS always lists functions in the slider order (blur, brightness, contrast, grayscale, hue-rotate, invert, saturate, sepia, opacity); reorder the string by hand if you need another sequence.
- Presets are combinations of the same nine functions, so the same caveats apply: Cold Tone and Warm Tone use hue-rotate, which also darkens strong colours, and Night Vision (invert, hue-rotate 120°, brightness 150%) turned #FF6B6B into #FF7CFF.
- Filters create a new stacking context and containing block for fixed-position children, so a position: fixed element inside a filtered parent scrolls with the parent. Apply filters to images or leaf elements rather than page wrappers.
- Sample images: the gradient is drawn locally and the four photos are 500 × 350 WebP files served from this site, so selecting one makes no request to another server. Photos from Pexels: Francesco Ungaro (mountain), Asad Photo Maldives (ocean), Johannes Plenio (city), Matti McCambridge (flowers). Order: filter functions apply left to right, so
grayscale(100%) sepia(100%)gives a brown tint while the reverse gives plain grey. The copied rule follows the order you set the sliders in, and the arrows under the preview reorder it.
Sources
Checked on .
Frequently Asked Questions
Built by Derek Giordano · Part of Ultimate Design Tools