Guide
Build a CSS filter chain while comparing the image with its original appearance. This CSS Filter Generator previews real browser filters, including drop-shadow(), and exports the same validated filter string. Start with the original local mountain-lake illustration or choose a supported image. Image preparation and code generation run locally without sending your files or settings to a processing service.
1Choose an image
Use the included local sample or select one JPEG, PNG or WebP file up to 10 MiB. The browser validates its content and dimensions, applies orientation and prepares a bounded still preview.
2Adjust or combine filters
Try a preset or edit the labeled sliders and number fields. Combine blur, brightness, contrast, grayscale, saturation, sepia, hue rotation, inversion, opacity and an optional drop shadow.
3Compare and change order
Compare Original and Filtered in aligned, uncropped frames, or switch to one view. Move active filters up or down to see how their order affects the result.
4Copy CSS for your project
Copy the filter property, complete CSS rule or HTML/CSS example. Replace your-image.jpg with your own image path. Reset restores the original sample, identity values and default filter order.
The CSS filter property changes how an element is rendered. On images it can soften detail, adjust tonal contrast, shift colors or add a shadow around visible alpha edges. A filter chain is a space-separated sequence of functions, not a comma-separated list. This CSS Filter Maker omits identity functions and produces filter: none when no effect is active.
blur() takes a nonnegative length and softens the rendered image; this editor supports 0px through 30px. brightness() scales brightness from 0% to 300%, with 100% unchanged. contrast() also ranges from 0% to 300%, with 100% unchanged. Zero contrast produces a uniform midtone, while higher values increase separation. Extreme values may remove useful detail or reduce readability, so compare against the original.
grayscale() reduces color and reaches a black-and-white appearance at 100%. sepia() introduces a warm brown treatment and also ranges from 0% to 100%. They are independent functions: applying both is possible, but the sequence changes which colors the later function receives. The Black & White and Sepia presets set actual controls rather than adding decorative preview thumbnails.
saturate() controls color intensity from 0% to 400%; 100% is unchanged and 0% removes saturation. hue-rotate() shifts colors around a hue cycle from 0deg to 360deg. A full 360deg rotation is omitted as an identity value. This is a browser color effect, not a promise of perceptually uniform hue changes or the same result as a photo editor.
invert() ranges from no inversion at 0% to full inversion at 100%. opacity() makes the rendered image more transparent, with 100% unchanged and 0% invisible. The checkerboard preview helps reveal transparency. In this tool opacity is part of the ordered filter chain, so a drop shadow placed before or after it can produce a different result.
drop-shadow() follows the rendered alpha silhouette rather than the rectangular box alone. It accepts horizontal and vertical offsets, one nonnegative blur length and a color; it has no spread or inset parameter. Here offsets range from -100px to 100px, blur from 0px to 100px and alpha from 0% to 100%. Shadow color uses validated opaque HEX with a separate alpha control. The preview frame may clip very large effects without changing the copied CSS.
Adjust several controls to build a single chain. For example, brightness(110%) contrast(120%) saturate(140%) sepia(20%) applies four effects in that order. Each function receives the previous result. Presets replace filter values and order while preserving your selected image, and every preset can be edited. These local starting styles do not claim to replicate proprietary editing filters.
Filter operations are not generally interchangeable. For example, invert(100%) sepia(100%) and sepia(100%) invert(100%) transform different intermediate colors. The active-filter editor swaps adjacent active functions with keyboard-accessible up and down buttons, updates the preview immediately and retains that order while values change. Identity functions stay out of the generated chain until they become active again.
filter applies to the element itself and its rendered contents. backdrop-filter transforms pixels behind an element, which is useful for a translucent glass surface. Blurring an image with filter does not create a frosted backdrop for unrelated content. Use the related glassmorphism generator when the intended effect should blur what lies behind a card.
CSS filters change browser display without rewriting the source image. This tool produces CSS and an HTML example; it does not download a filtered raster image. Uploaded files remain local, and a temporary still PNG preview is limited to 1600 pixels per side while preserving aspect ratio. SVG, GIF, AVIF and HEIC uploads are unsupported here. Copied HTML uses a replaceable image path and never includes uploaded bytes, filenames or blob URLs.
The supported filter functions work in current browsers, but color rendering, antialiasing, clipping and image decoding can vary. Check the final rule in your target browsers rather than expecting identical pixels everywhere. Browsers that do not understand a filter declaration may display the original image. JPEG, PNG and WebP upload preparation requires local browser image decoding; unsupported files produce an error.
Large images, blur and repeated drop shadows can increase rendering cost. Prefer the fewest functions that produce the needed effect and test on representative devices. This tool has no continuous animation or flashing presets. Keep original comparisons available when checking detail, and avoid extreme brightness, contrast or inversion on content whose meaning depends on color or readable text. Keyboard controls, labels and focus states remain outside the filtered image.
- Trying grayscale, sepia and color treatments before styling a website image
- Comparing multiple filter orders on a product illustration
- Adjusting brightness or contrast for a display effect
- Testing alpha-aware drop shadows on transparent images
- Preview the exact validated filter string in a real browser.
- Reorder active effects without a drag-and-drop dependency.
- Compare aligned original and filtered views using a local sample or supported upload.
- Copy CSS without embedding uploaded files or permanently editing the original.
What is a CSS filter?
It is a display effect applied through the CSS filter property. Functions such as blur(), brightness(), grayscale() and drop-shadow() transform how an image or element is rendered.
How do I blur an image using CSS?
Set Blur to a value from 0px to 30px and copy the generated property. For example, filter: blur(5px) softens the rendered image without rewriting its source file.
How do I change image brightness in CSS?
Use brightness() with a percentage. Values above 100% brighten the display, values below 100% darken it, and 100% is unchanged. This editor supports 0% to 300%.
How do I make an image black and white?
Apply the Black & White preset or set Grayscale to 100%. The generated function is grayscale(100%). You can combine it with other effects and compare against the original.
How do I apply multiple CSS filters?
Adjust multiple controls and copy the combined property. CSS filter functions are separated by spaces and are applied in the displayed order.
Does CSS filter order matter?
Yes. Later filters operate on the result of earlier ones. Use the active-filter up and down buttons to compare sequences; the preview and CSS update together.
What is hue-rotate()?
It shifts image colors around a hue cycle using an angle. This tool supports 0deg through 360deg; 0deg and a full 360deg cycle are omitted as unchanged values.
What is the difference between filter and backdrop-filter?
filter changes the element itself and its contents. backdrop-filter changes the pixels behind an element and is commonly combined with a translucent surface.
Do CSS filters change the original image?
No. They affect browser rendering. This tool generates code and prepares a temporary local preview; it does not permanently edit or upload your image, and it offers no raster download.
Is the CSS Filter Generator free?
Yes. All twelve presets, filter controls, local image previews, comparison views and CSS copying are free without signup.