CSS Filter Generator

This CSS filter generator combines blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia and drop-shadow on sliders, and writes the filter CSS or Tailwind arbitrary class as the sample image updates live.

Move the sliders to combine blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia and drop-shadow, watch the sample image update live, then copy the filter CSS or the Tailwind arbitrary class.

#000000
Sample image with the live CSS filter applied

filter: none

CSS

.filtered {
  filter: none;
}

Tailwind class

[filter:none]

How to use it

  1. Drag any slider (blur, contrast, sepia, hue-rotate and the rest) or tap a preset like Vintage, Noir, Frosted or Duotone.
  2. Watch the sample image change live; the filter value shown under the preview is exactly what gets applied.
  3. Copy the CSS rule or the Tailwind class and paste it onto the element you want to style, then use Reset filter to start over.

Filters also work on text, cards and whole sections, not just images. For layout questions see the CSS flexbox generator and the CSS grid generator.

Frequently asked questions

Which browsers support the CSS filter property?

The filter property works in every modern browser: Chrome, Edge, Firefox, Safari 9.1+ and Opera, on desktop and mobile. Safari versions before 9.1 need the -webkit-filter prefix, so if you must support very old iOS releases, copy the declaration twice with and without the prefix. Internet Explorer never supported filter and only had the legacy Microsoft filters, which this generator does not emit.

Does the order of the filter functions matter?

Yes. Filter functions are applied to the element left to right, in the order they appear in the value, and each function sees the output of the previous one. blur(4px) grayscale(100%) and grayscale(100%) blur(4px) produce the same pixels here, but sepia(50%) hue-rotate(90deg) and hue-rotate(90deg) sepia(50%) give visibly different colours because the hue rotation happens on a different starting palette. This generator always emits the functions in a fixed order (blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia, drop-shadow) so the preview and the copied CSS always match.

What is the difference between drop-shadow() and box-shadow?

box-shadow draws a rectangular shadow behind the element's border box, so it looks wrong on transparent PNGs and logos. The drop-shadow() filter follows the alpha channel of the rendered pixels, which makes it the right choice for icons, logos and cut-out images. Use the shadow X, Y and blur sliders (plus the colour picker) to build a drop-shadow() without leaving the page.

More CSS generators

Color tools

Image tools

Image & SVG tools

Typography & units

More free tools

All free tools