Inicio Filter Generator

CSS Filter Generator

Adjust blur, brightness, contrast, grayscale, hue-rotate and saturate — get ready-to-use CSS filter code instantly, 100% in your browser.

Controls

Preview

CSS Code

What is the CSS filter property?

The CSS filter property applies visual effects like blur, brightness, contrast, and color shifts to an element. It is commonly used on images, backgrounds, and even entire UI sections to create Instagram-like photo effects, highlight active states, or dim background content behind a modal. Filters are GPU-accelerated in most browsers, making them performant even on large elements.

The filter property accepts one or more filter functions, which are applied in sequence. You can combine blur with brightness, grayscale with contrast, or any other combination to achieve the exact visual tone you want.

Filter functions explained

CSS provides several filter functions, each controlling a different aspect of the element appearance. Understanding what each does helps you combine them effectively:

FunctionEffectDefault
blur(px)Applies a Gaussian blur0px
brightness(%)Adjusts overall brightness100%
contrast(%)Adjusts the difference between light and dark100%
grayscale(%)Converts to shades of gray0%
hue-rotate(deg)Shifts all colors by a given angle0deg
saturate(%)Adjusts color intensity100%

Values at their defaults produce no change, so you only add the functions you want to adjust. Setting brightness to 50% darkens the element, while 150% brightens it.

Combining multiple filters

The real power of the filter property emerges when you combine multiple functions. A common combination is grayscale(100%) contrast(120%) for a high-contrast black-and-white effect. Another popular combo is sepia(80%) saturate(150%) for a warm vintage look. You can also use blur(2px) brightness(90%) to subtly dim and soften a background behind a dialog.

Filters are applied in the order you write them, but since each function operates independently on the pixel data, the order rarely matters for the functions available in this tool. Experiment with different combinations to discover the look that fits your design.

When to use CSS filters

CSS filters are useful in many design scenarios. Common use cases include applying photo effects to images without editing them in an external tool, dimming and blurring the background behind a modal or overlay, creating hover effects that brighten or saturate an image on interaction, simulating accessibility views by converting to grayscale, and building creative hero sections with color-shifted backgrounds.

Because filters are GPU-accelerated, they are suitable for animated transitions and hover states where performance matters. However, applying heavy blur to very large elements can still cause frame drops on low-end devices, so test on your target hardware.

How to generate CSS filters

This tool lets you design filter effects visually: adjust each slider to set the blur, brightness, contrast, grayscale, hue-rotate, and saturate values. The preview updates in real time so you can see the combined effect, and the CSS code is generated automatically. Click Copy CSS to get the code and paste it into your stylesheet.

Everything runs locally in your browser — no data is sent to any server, so your design choices are completely private.

How do I blur an element in CSS?

Use filter: blur(5px);. Increase the pixel value for a stronger blur effect.

Can I combine multiple CSS filters?

Yes. List them separated by spaces: filter: blur(2px) brightness(120%) contrast(110%);. They are applied in sequence.

How do I make an image grayscale in CSS?

Use filter: grayscale(100%);. A value of 0% leaves the image in full color, 100% is fully grayscale.

Are my inputs uploaded to a server?

No. All processing is local. Your filter settings never leave your browser.