Presets
filter: none;
How to use
Pick a mode and an image
Choose Image filter, Backdrop filter or Hex color to filter. For the first two, use the sample landscape or click Upload your image; it is read locally and never uploaded.
Pick a preset or move sliders
Click a preset such as Vintage, Golden hour or Cyanotype, then fine-tune the nine sliders. Switch on Drop shadow for X, Y, blur and color, and Before and after split to compare.
Copy or download
Copy the CSS, Tailwind, SCSS or JavaScript tab, download the filtered image as a PNG, or copy a share link. In Hex color mode, type a color and copy the filter chain.
Why CSS Filter Generator
- Nine filter functions plus drop-shadow, with 16 preset looks and a before and after split.
- Preview on your own image and download the result as a PNG, all in your browser.
- Backdrop filter mode and a hex color to CSS filter solver for recoloring icons.
- CSS, Tailwind, SCSS and JavaScript output, plus share links.
CSS filter functions, ranges and uses
Each slider maps to one filter function. The ranges are the ones in this tool; CSS allows larger values for most functions.
| Function | Tool range | Default | Typical use |
|---|---|---|---|
| blur() | 0 to 20px | 0 | Softening backgrounds, privacy blur |
| brightness() | 0 to 200% | 100% | Darkening a photo under text |
| contrast() | 0 to 200% | 100% | Punchier or flatter images |
| grayscale() | 0 to 100% | 0 | Black and white, disabled states |
| hue-rotate() | -180 to 180deg | 0 | Shifting all colors around the wheel |
| invert() | 0 to 100% | 0 | Quick dark versions of icons |
| saturate() | 0 to 300% | 100% | Vivid or muted colors |
| sepia() | 0 to 100% | 0 | Warm, aged look |
| opacity() | 0 to 100% | 100% | Fading inside the filter chain |
| drop-shadow() | X, Y -40 to 40px; blur 0 to 40px | off | Shadows that follow a transparent shape |
Preset looks and the CSS behind them
Each preset starts from the defaults and changes a few sliders. The values below are what the tool writes for some of the 16 presets, so you can copy them directly or use them as a starting point.
Presets replace all current slider values, including any drop shadow, so pick a preset first and fine-tune afterwards. Results depend on the photo: the same Warm or Vintage values look stronger on pale images than on dark ones, which is why it helps to preview on your own image. To make a filter change on hover, put the preset value on :hover and add transition: filter 0.3s to the base rule.
| Preset | filter value |
|---|---|
| Vintage | brightness(105%) contrast(110%) saturate(80%) sepia(50%) |
| Noir | brightness(90%) contrast(130%) grayscale(100%) |
| Warm | brightness(102%) saturate(130%) sepia(25%) |
| Faded | brightness(110%) contrast(85%) saturate(70%) |
| Vivid | contrast(110%) saturate(160%) |
| Dramatic | brightness(90%) contrast(140%) saturate(120%) |
| Golden hour | brightness(105%) hue-rotate(-10deg) saturate(140%) sepia(30%) |
| Moonlight | brightness(110%) contrast(110%) grayscale(100%) |
| Cyanotype | grayscale(100%) hue-rotate(170deg) saturate(250%) sepia(100%) |
| Soft blur | blur(4px) brightness(95%) |
| Inverted | invert(100%) |