CSS Filter Generator
Combine CSS filter functions (blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia, drop-shadow) on a sample or your own image.
Presets
Filter functions
Drop shadow
Image
Your image is displayed locally and never uploaded.
Preview
filter: none;
Related Tools
View AllWhat is CSS Filter Generator?
Applies the CSS filter property to an image in real time. Combine blur, brightness, contrast, grayscale, hue rotation, invert, opacity, saturation, sepia and drop-shadow, compare the result with the original, and copy the code. You can use the built-in sample picture or load your own image, which stays on your device.
How to use CSS Filter Generator
- Pick a preset (Black & white, Vintage, Warm, Cool, Dramatic…) or start from None.
- Move the sliders for each filter function.
- Enable drop-shadow() and set its offsets, blur, colour and opacity if needed.
- Click Use your own image to test with a local file.
- Copy the CSS code.
Example
blur 2px, brightness 120%, hue-rotate -90°, sepia 50%, drop-shadow on (4px 4px 6px, black at 0.5)
filter: blur(2px) brightness(120%) hue-rotate(-90deg) sepia(50%) drop-shadow(4px 4px 6px rgba(0, 0, 0, 0.5));
When to use CSS Filter Generator
Use it for image hover effects, consistent photo styling, dimmed backgrounds and shadows that follow transparent PNG/SVG shapes (drop-shadow). It does not modify the image file itself; for permanent edits use an image editor or the site's image tools. To affect what is behind an element instead of the element, use backdrop-filter (see the Glassmorphism Generator).
How CSS Filter Generator works
Only functions that differ from their neutral value are written (for example brightness is omitted at 100%), in a fixed order: blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia, drop-shadow. Order matters in CSS because each function is applied to the output of the previous one. With nothing changed the output is filter: none;. Your image is shown via a local object URL and never uploaded.
Common Use Cases
- Grayscale-to-colour hover effects on logos
- Vintage or warm photo styles in galleries
- Dimming hero images under text
- Shadows around transparent PNG icons with drop-shadow()
- Quick colour-blind-like previews with hue-rotate
Security Note
Images you load are only displayed locally in your browser and are not uploaded.
FAQs
What is the difference between drop-shadow() and box-shadow?
drop-shadow() follows the visible pixels of the element (including transparency), while box-shadow always follows its rectangular box.
Why does the order of filters matter?
Each function processes the result of the previous one, so for example sepia after grayscale gives a different colour than grayscale after sepia.
Is my uploaded image sent anywhere?
No. The image is displayed from a local blob URL in your browser.