CSS Filters Explained: Order, Presets, Hover Effects and Exports
What each CSS filter function does, why their order changes the result, how drop-shadow differs from box-shadow, and how to build a filter on your image.

The CSS filter property changes how an element is drawn without touching the file behind it. One line can turn a photo black and white, warm it like an old print, blur a background behind a dialog or add a shadow that follows the outline of a transparent logo. Because filters chain, a handful of functions can produce a whole look, and a small change in order can produce a completely different one.
The functions
- blur() softens the image by a radius in pixels. Small values, under two pixels, look like soft focus; large values make frosted glass.
- brightness() multiplies every colour. 100 percent leaves the image alone, 120 brightens it, 80 darkens it.
- contrast() pushes colours away from or toward mid grey.
- grayscale() removes colour. 100 percent is fully grey.
- sepia() maps colours onto warm brown tones, like an old photograph.
- saturate() strengthens or weakens colour. 0 is grey, 200 is vivid.
- hue-rotate() turns every colour around the colour wheel by an angle.
- invert() turns the image into its negative.
- opacity() fades the element, like the opacity property but inside the chain.
- drop-shadow() adds a shadow under the visible pixels.
Why order matters
Each function works on the output of the one before. Sepia followed by hue-rotate first makes the image brown and then shifts that brown, giving a coloured tint. Hue-rotate followed by sepia shifts the original colours and then turns them all brown, so the rotation hardly shows. Brightness before contrast is also different from contrast before brightness. When a look is not quite right, reordering is often the fix.
Drop-shadow versus box-shadow
box-shadow draws a shadow around an element's rectangle. drop-shadow() follows the actual shape, including transparent areas. For a round logo on a transparent background, box-shadow gives a square shadow and drop-shadow gives a round one. drop-shadow cannot be inset and has no spread value.
Building a filter on your own image
The CSS Filter Generator lets you try all of this on a real picture.
- Open an image. Choose a photo or graphic from your device, or keep the built-in sample. The image never leaves your device.
- Start from a preset. Warm vintage, cool fade, black and white, high contrast mono, vivid, old photo, muted matte, night tint, negative, soft focus and a disabled look are included.
- Adjust the steps. Each function has a slider and an on and off switch. Add more from the list.
- Reorder. Use the arrows to move steps up and down and watch the change.
- Compare. Drag the split slider to see the original on the left and the filtered version on the right.
- Copy or save. Copy the CSS, copy an SVG version of the colour steps, or save the filtered image as PNG or JPG at full size.
If you already have a filter in a stylesheet, paste the value into the paste box. The tool reads amounts written as percentages or decimals and angles in degrees, turns, radians or gradians, and loads every step for editing.
Hover effects
A popular gallery effect shows images in grey and brings back colour when the pointer rests on them. Turn on the hover state, keep grayscale in the normal chain and remove it in the hover chain, then set a transition of around 300 milliseconds. The CSS output contains both rules and the transition. Remember that touch screens have no hover, so do not hide important information behind the effect.
Performance
Colour functions are cheap for the browser. Blur and drop-shadow are more expensive, especially on large or animated elements and on phones. Keep blur values modest, avoid animating filters on many elements at once, and test on a real device if the page scrolls slowly.
Filters are not file edits
Visitors still download the original image, and anyone who saves it gets the unfiltered version. If you want a permanently changed file, use Save PNG or Save JPG in the tool, which draws the image with the same filter onto a canvas. The colour maths follows the Filter Effects specification, so the saved colours match the preview. For deeper edits, such as curves, masks or local corrections, a photo editor remains the right tool.
Accessibility notes
Filters can reduce contrast. A grey, low-contrast image with text on top may become unreadable. Check text over filtered backgrounds, and prefer a semi-transparent overlay to heavy blur when text must stay readable.



