CSS Filter Generator

Build a CSS filter visually. Drag sliders for blur, brightness, contrast, saturation, grayscale, sepia, invert, hue-rotate and opacity, add a drop shadow that follows transparent edges, and compare the original and filtered image side by side — on the sample or on your own photo. Copy the result as filter or backdrop-filter. It's free and runs entirely in your browser; your image never leaves your device.

Filter functions

FunctionNo-effect valueUnit
blur()0px
brightness()1ratio
contrast()1ratio
saturate()1ratio
grayscale()0ratio (0–1)
sepia()0ratio (0–1)
invert()0ratio (0–1)
hue-rotate()0degdeg
opacity()1ratio (0–1)

When to use it

  1. Gray out disabled cards or logos until hover.
  2. Give product photos a consistent warm or vintage look without editing the files.
  3. Dim and blur a hero image behind white text.
  4. Make a frosted overlay with backdrop-filter.

How to Use

  1. Pick a preset or start from none.
  2. Adjust the sliders and optional drop shadow.
  3. Load your own image to check the look.
  4. Copy the CSS as filter or backdrop-filter.

Features

  1. Nine filter functions
  2. drop-shadow for transparent images
  3. Presets: grayscale, vintage, warm, cool and more
  4. Before/after preview
  5. Your own image, kept local
  6. filter or backdrop-filter output
  7. 100% client-side

FAQs

What's the difference between filter and backdrop-filter?

filter changes the element itself. backdrop-filter changes what's visible behind the element — it needs a translucent background to show.

Why use drop-shadow() instead of box-shadow?

drop-shadow follows the shape of transparent images and SVGs. box-shadow always draws a rectangle.

Does the order of filters matter?

Yes, they're applied left to right. This tool writes them in a consistent order.

Are CSS filters slow?

Most are cheap and GPU-accelerated. Large blur radii on big areas are the expensive ones.

Is my image uploaded?

No. It's displayed from memory in your browser only.

Technical Details

The CSS filter property applies a chain of image functions in the order written. The generator only writes a function when its value differs from the identity — brightness, contrast, saturate and opacity at 100%, grayscale, sepia and invert at 0, hue-rotate at 0deg, blur at 0 — so the output contains nothing that does no work. Percentages are written as unitless ratios (contrast(1.2) rather than contrast(120%)), which every browser accepts and which avoids rounding ambiguity; hue-rotate is in degrees and blur in pixels. drop-shadow() is offered separately because, unlike box-shadow, it follows the alpha outline of transparent PNGs and SVGs. The same chain can be emitted as backdrop-filter, with the -webkit- prefix Safari still needs, to filter whatever is behind an element instead of the element itself. Presets set several functions at once as a starting point. Your own image can be loaded for the preview; it's read into memory with an object URL and never uploaded.

Web & CSS Tools

Web & CSS Tools

  • CSS Loading Spinner Generator
  • CSS Toggle Switch Generator
  • CSS Checkbox Generator
  • CSS Background Pattern Generator
  • CSS Scrollbar Generator
  • CSS Triangle Generator
  • CSS Text Glitch Generator
  • React Native Shadow Generator