How to use the filter generator
- Choose the target: the element itself (
filter) or what sits behind it (backdrop-filter). - Pick a preset or adjust the sliders: brightness, contrast, saturation, grayscale, sepia, hue, invert, opacity and blur.
- Add a drop shadow that follows the image’s shape.
- For backdrop mode, set a tint color and opacity for the glass.
- Compare the original and the filtered version side by side.
- Export CSS, SCSS or Tailwind (
brightness-[1.05] contrast-[1.1]and so on).
How it works
.photo {
filter: brightness(1.05) contrast(1.1) saturate(1.3);
}
Values of 1 (100%) mean “unchanged”. Above 1 increases the effect for brightness, contrast and saturation; below 1 reduces it. Grayscale, sepia and invert run from 0 to 1.
Worked examples
Example 1: consistent product photos
Load Vivid for a slight lift in brightness, contrast and saturation. Apply the same filter to every product image so photos from different sources look more consistent.
Example 2: a hover reveal
Use Noir on gallery images, then remove the filter on hover and focus with a short transition. The color “blooms in” when people show interest.
Example 3: a frosted header
Choose the backdrop target and load Frosted: a 16px blur with a 160% saturation boost and a light tint. Place it on a sticky header over a colorful hero.
Common mistakes
- Filtering text. Blur and low contrast make text hard to read; filter images, not content.
- Changing meaning. Hue shifts and inverting change status colors and charts, so keep filters for photos.
- Forgetting the backdrop fallback. Without support, a translucent panel becomes unreadable; the export makes it nearly opaque instead.
Performance and accessibility
Filters are drawn by the graphics card and are usually fast, but blur() on large areas and filters on elements that animate every frame can be expensive on low-end phones. Test on a real device, and prefer animating opacity and transform where you can.
Filters change the colors people see. A grayscale or low-contrast filter on text can push it below WCAG contrast minimums, so recheck contrast after applying a filter to anything readable. Don’t use filters as the only way to show state, such as a greyed-out disabled button; add text or an icon too. For decorative images, filters are a lightweight alternative to editing the files themselves, and they’re easy to remove later.
Import CSS from your site
Already have a style you like? Open Import CSS (copy from a site), paste a rule or just its declarations from your stylesheet or your browser’s developer tools, and press Import into the controls. This tool reads filter or backdrop-filter functions (blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia, drop-shadow) and, for backdrop filters, the background tint. Everything else, and rules for states such as :hover or media queries, is listed as skipped, and the import can be undone in one step.