Utvikling · verktøy

CSS-filtergenerator

Juster lysstyrke, kontrast, farge og uskarphet, og kopier CSS-filteret.

Kjøres i nettleseren. Ingen opplasting.
UsefulVersePreview

Om verktøyet

CSS-filtergenerator sem complicação.

Den innebygde forhåndsvisningen lages i nettleseren. CSS-filtre endrer utseendet, ikke selve bildefilen.

Veiledning

Slik bruker du CSS-filtergenerator

This tool builds a CSS filter rule from eight sliders: brightness, contrast, grayscale, hue, invert, sepia, saturation and blur. A sample card on the page changes as you move them, and the rule is written below for you to copy. It does not open or edit your photos. A CSS filter only changes how an element looks in the browser, and the original image file stays as it was.

Slik gjør du

  1. Move any of the eight sliders. Brightness, contrast and saturation start at 100 and go up to 200. Grayscale, invert and sepia start at 0 and go to 100. Hue goes from 0 to 360 degrees, and blur goes from 0 to 12 pixels.
  2. Watch the sample card with the word UsefulVerse. It uses the same filter as the text in the CSS output box.
  3. Press Copy CSS to copy the rule, or select the text by hand if your browser blocks copying.
  4. Paste the rule into your stylesheet, replace my-element with your own class, and check it on your real image.

Eksempler

Starting values

Du skriver inn
Lysstyrke
100
Kontrast
100
Gråtone
0
Fargetone
0
Invertering
0
Sepia
0
Metning
100
Uskarphet
0
Du får
CSS
.my-element { filter: brightness(100%) contrast(100%) grayscale(0%) hue-rotate(0deg) invert(0%) sepia(0%) saturate(100%) blur(0px); }

At these starting values every filter is neutral, so the picture does not change. The rule always lists all eight filters in this fixed order, even the ones that do nothing.

Kjørt med verktøyets egen kode.

A brighter, punchier picture

Du skriver inn
Lysstyrke
120
Kontrast
110
Metning
130
Du får
CSS
.my-element { filter: brightness(120%) contrast(110%) grayscale(0%) hue-rotate(0deg) invert(0%) sepia(0%) saturate(130%) blur(0px); }

Only three values were moved, so only those three show a number other than the neutral one. The other five are still written out at their neutral setting.

Kjørt med verktøyets egen kode.

A soft black and white look

Du skriver inn
Gråtone
100
Uskarphet
2
Du får
CSS
.my-element { filter: brightness(100%) contrast(100%) grayscale(100%) hue-rotate(0deg) invert(0%) sepia(0%) saturate(100%) blur(2px); }

Grayscale at 100 percent removes all colour, and a 2 pixel blur softens the edges. Because the sliders move in whole steps of 1, you cannot pick a half-pixel blur here.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Dim or tint a background image behind text so the text is easier to read.
  • Preview a hover effect, such as turning a grey logo into full colour.
  • Make an image grayscale or sepia for a vintage section without editing the file.
  • Learn what each CSS filter function does by moving one slider at a time.

Begrensninger

  • The preview is a built-in sample card, not your own image, so the look of a real photo can differ from what you see here.
  • Only eight filter functions are offered. Drop shadow, opacity and url references to SVG filters are not included.
  • All sliders move in steps of 1, with set limits such as 200 percent for brightness, 12 pixels for blur and 360 degrees for hue.
  • The filter changes how the element is shown, not the image file. Anyone who saves the image still gets the original.

Tips

  • Change one slider at a time while learning, because the filters add up and the effect of each can be hard to spot together.
  • Keep blur small when it sits on text or small icons, since heavy blur makes them unreadable.
  • Return a slider to its neutral value and read the rule again to see which part of the code it controls.

Kilder

Vanlige spørsmål

Sobre CSS-filtergenerator.

Does this change my image file?

No. It writes a CSS rule that the browser applies when it draws an element. The picture file on your computer or server is never edited, and the tool does not ask you to select or upload an image at all.

Why does the rule list filters that I did not change?

The tool always writes all eight functions in the same order. A filter at its neutral value, like brightness at 100 percent, does nothing visible. You can delete those parts by hand if you prefer a shorter rule.

Does the order of filters matter?

Yes, in CSS the filters are applied one after another in the order they are written, so a different order can look different. This tool keeps one fixed order every time, so your result is repeatable.

What does hue-rotate do?

It turns every colour around the colour wheel by the number of degrees you choose. A value of 0 or 360 leaves colours as they are. Values in between shift reds toward greens or blues, and so on.

What is the difference between grayscale and sepia?

Grayscale removes colour and leaves shades of grey. Sepia keeps a single warm brown tint, like an old photo. At 100 percent each is complete, and lower numbers mix the effect with the original colours.

Is anything uploaded?

No. The sliders, the preview and the rule all run in your browser. The tool does not send values anywhere or save them, so reloading the page puts the sliders back to their starting positions.

Hvordan bruker du CSS-filtergenerator?

Juster lysstyrke, kontrast, farge og uskarphet, og kopier CSS-filteret.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.