CSS Filter Generator
Build an ordered CSS filter chain with blur, brightness, contrast, hue, alpha and drop shadows. Preview your image and export the CSS rule.
See What Changes When You Reorder CSS Filters
Preview


Stylesheet
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
CSS Filter Generator: how to use it
- Select a preset or add a function to an empty chain. Start with the color sample, load the sample photo, or preview a local raster image.
- Adjust the filter values. Compare the original and filtered views. Move functions up or down to change when each one runs.
- Copy or download the .filtered-image rule and apply the class to the image in your stylesheet.
Limits and notes
Ten supported function types and up to twelve functions in a chain. Preview local PNG, JPEG, WebP, GIF or AVIF up to 12 MiB when your browser can decode it. Filters operate in sRGB. The download is CSS, and your source image stays on the device.
How your privacy works →CSS Filter Generator: common questions
Can filter order change the final color?
Yes. Each function takes the previous function’s output as its input. Applying brightness before invert can produce a lighter result than applying brightness after invert.
When does a drop shadow follow a transparent shape?
The shadow follows the alpha mask of the rendered element. A PNG with transparent corners can show a shape-following shadow. A fully opaque rectangle produces a rectangular one.
What happens to a source image’s color profile?
Your browser decodes the image and manages its profile for display. CSS filter functions operate in sRGB. The stylesheet records filter settings, and you keep the original image file.