CSS Filter Generator
Build CSS filter values with a live image preview. Tune blur, brightness, contrast, hue and drop-shadow — copy CSS, Tailwind and React output instantly.
How to use
Pick a preset or start fresh
Click a preset like Vintage, Cinematic or Black & White for an instant look, or build from scratch using the filter sliders. Presets are a one-click starting point you can fine-tune.
Adjust the filter sliders
Drag Blur, Brightness, Contrast, Saturate, Grayscale, Sepia, Hue Rotate, Invert and Opacity. Every change updates the live preview and the generated code at the same time.
Add a drop shadow
Set X / Y offset, blur radius and a shadow colour. The drop-shadow() filter follows the real alpha shape of your image — ideal for transparent PNGs and logos.
Copy CSS, Tailwind or React
Switch the output tab and hit copy. CSS ships with the -webkit-filter prefix; Tailwind gives a JIT arbitrary-property class; React gives an inline style object. Upload your own image to preview on real content.
Common use cases
Image galleries
Desaturate thumbnails with grayscale() and reveal full colour on hover with a filter transition — a polished, performant gallery effect with no JavaScript.
Hero & banner grading
Apply a cinematic grade — boosted contrast, a touch of sepia and lowered brightness — to hero images so overlaid white text stays readable.
Consistent photo style
Normalise photos from many sources to one brand look by applying the same saturate / contrast / sepia recipe across a product grid or blog.
Dark-mode media
Use invert() + hue-rotate() to adapt diagrams, screenshots and charts for dark themes without maintaining a second set of assets.
Hover & focus states
Brighten, blur or shift hue on interactive cards and buttons for tactile feedback that's GPU-accelerated and smooth.
Logo & icon shadows
drop-shadow() traces the true silhouette of transparent PNGs and SVG icons, casting realistic shadows that box-shadow cannot produce.
How CSS filters work
What are CSS filters?
Filters are graphical effects applied to an element during rendering, after layout but before compositing. Each filter function transforms the pixels — adjusting colour, blur or transparency — so you can edit images and elements live in the browser with zero image-processing on a server.
The filter property
filter accepts a space-separated list of functions applied in order: blur(px), brightness(%), contrast(%), saturate(%), grayscale(%), sepia(%), hue-rotate(deg), invert(%), opacity(%) and drop-shadow(x y blur color). 100% is the neutral value for percentage filters; 0 is neutral for blur, sepia, grayscale and invert.
drop-shadow vs box-shadow
drop-shadow() is a filter function that follows the element's real alpha channel, so transparent PNGs, SVGs and clip-path shapes cast a silhouette-accurate shadow. box-shadow only follows the rectangular box. Use drop-shadow for logos and cut-out images.
Browser support
filter is supported across Chrome 53+, Firefox 35+, Safari 9.1+ and Edge 79+ — over 97% of users. This tool emits the -webkit-filter prefix alongside the standard property for maximum coverage on older WebKit browsers.
Related tools
Frequently asked questions
Quick answers about this free online tool.
