Developer tool

CSS Filter Generator

Adjust brightness, contrast, color and blur, then copy the CSS filter.

Runs in your browser. No upload.
UsefulVersePreview

About this tool

CSS Filter Generator made simple.

The built-in preview is generated in your browser. CSS filters change appearance, not the original image file.

Guide

Using CSS Filter Generator

This tool builds a CSS filter rule from eight sliders: brightness, contrast, grayscale, hue, invert, sepia, saturation and blur. A sample card on the page changes as you move them, and the rule is written below for you to copy. It does not open or edit your photos. A CSS filter only changes how an element looks in the browser, and the original image file stays as it was.

How to use it

  1. Move any of the eight sliders. Brightness, contrast and saturation start at 100 and go up to 200. Grayscale, invert and sepia start at 0 and go to 100. Hue goes from 0 to 360 degrees, and blur goes from 0 to 12 pixels.
  2. Watch the sample card with the word UsefulVerse. It uses the same filter as the text in the CSS output box.
  3. Press Copy CSS to copy the rule, or select the text by hand if your browser blocks copying.
  4. Paste the rule into your stylesheet, replace my-element with your own class, and check it on your real image.

Worked examples

Starting values

You enter
Brightness
100
Contrast
100
Grayscale
0
Hue
0
Invert
0
Sepia
0
Saturation
100
Blur
0
You get
Css
.my-element { filter: brightness(100%) contrast(100%) grayscale(0%) hue-rotate(0deg) invert(0%) sepia(0%) saturate(100%) blur(0px); }

At these starting values every filter is neutral, so the picture does not change. The rule always lists all eight filters in this fixed order, even the ones that do nothing.

Run through the tool’s own code.

A brighter, punchier picture

You enter
Brightness
120
Contrast
110
Saturation
130
You get
Css
.my-element { filter: brightness(120%) contrast(110%) grayscale(0%) hue-rotate(0deg) invert(0%) sepia(0%) saturate(130%) blur(0px); }

Only three values were moved, so only those three show a number other than the neutral one. The other five are still written out at their neutral setting.

Run through the tool’s own code.

A soft black and white look

You enter
Grayscale
100
Blur
2
You get
Css
.my-element { filter: brightness(100%) contrast(100%) grayscale(100%) hue-rotate(0deg) invert(0%) sepia(0%) saturate(100%) blur(2px); }

Grayscale at 100 percent removes all colour, and a 2 pixel blur softens the edges. Because the sliders move in whole steps of 1, you cannot pick a half-pixel blur here.

Run through the tool’s own code.

When it helps

  • Dim or tint a background image behind text so the text is easier to read.
  • Preview a hover effect, such as turning a grey logo into full colour.
  • Make an image grayscale or sepia for a vintage section without editing the file.
  • Learn what each CSS filter function does by moving one slider at a time.

Limits to keep in mind

  • The preview is a built-in sample card, not your own image, so the look of a real photo can differ from what you see here.
  • Only eight filter functions are offered. Drop shadow, opacity and url references to SVG filters are not included.
  • All sliders move in steps of 1, with set limits such as 200 percent for brightness, 12 pixels for blur and 360 degrees for hue.
  • The filter changes how the element is shown, not the image file. Anyone who saves the image still gets the original.

Tips

  • Change one slider at a time while learning, because the filters add up and the effect of each can be hard to spot together.
  • Keep blur small when it sits on text or small icons, since heavy blur makes them unreadable.
  • Return a slider to its neutral value and read the rule again to see which part of the code it controls.

Sources

Common questions

About CSS Filter Generator.

Does this change my image file?

No. It writes a CSS rule that the browser applies when it draws an element. The picture file on your computer or server is never edited, and the tool does not ask you to select or upload an image at all.

Why does the rule list filters that I did not change?

The tool always writes all eight functions in the same order. A filter at its neutral value, like brightness at 100 percent, does nothing visible. You can delete those parts by hand if you prefer a shorter rule.

Does the order of filters matter?

Yes, in CSS the filters are applied one after another in the order they are written, so a different order can look different. This tool keeps one fixed order every time, so your result is repeatable.

What does hue-rotate do?

It turns every colour around the colour wheel by the number of degrees you choose. A value of 0 or 360 leaves colours as they are. Values in between shift reds toward greens or blues, and so on.

What is the difference between grayscale and sepia?

Grayscale removes colour and leaves shades of grey. Sepia keeps a single warm brown tint, like an old photo. At 100 percent each is complete, and lower numbers mix the effect with the original colours.

Is anything uploaded?

No. The sliders, the preview and the rule all run in your browser. The tool does not send values anywhere or save them, so reloading the page puts the sliders back to their starting positions.

How do I use CSS filter generator?

Adjust brightness, contrast, color and blur, then copy the CSS filter.

Is my data uploaded to a server?

No. This tool runs locally in your browser. Your input is not uploaded.