PUBLIC.INTERNET

CSS Filter Generator

Upload an image, drag the sliders, and watch the CSS filter property update below the preview. Eight of the ten CSS filter functions are here: blur, brightness, contrast, grayscale, hue-rotate, invert, saturate, and sepia (drop-shadow() and opacity() are not). Only the values you changed from their defaults appear in the output, so you copy a short declaration instead of a list of no-ops. A placeholder image is shown until you choose your own.

Upload Image to Preview Filters

Any image format supported

Live Preview

CSS Code

filter: none;

How to build a filter

  1. Press Choose File and pick an image, or keep the placeholder to try the sliders.
  2. Move the sliders: Blur (0 to 20px), Brightness, Contrast, and Saturate (0 to 200%), Grayscale, Invert, and Sepia (0 to 100%), and Hue Rotate (0 to 360deg).
  3. Watch the CSS Code box. It shows filter: none; until you move something.
  4. Press Copy CSS to copy the declaration, then paste it into a rule for your own image.
  5. Press Reset All to return every slider to its neutral value.

Filter order and what the output leaves out

CSS applies filter functions left to right, and the order changes the picture. A grayscale followed by a sepia gives a different result than sepia followed by grayscale, and brightness(50%) contrast(200%) comes out darker than contrast(200%) brightness(50%) because contrast pivots around mid-gray. This generator always emits them in one fixed order (blur, brightness, contrast, grayscale, hue-rotate, invert, saturate, sepia). If you need a different sequence, copy the declaration and reorder the functions by hand.

Two things to remember when using the output. The generated rule contains only the filter property, with no selector, so it must go inside your own rule. And filters are applied to the element at render time: the image file itself is not changed, and the tool has no download button for a filtered picture. Heavy blur values on large images can also be costly for the browser to repaint, so test on real hardware.