CSS Filter Generator
Your input stays in your browser and is never sent.Move sliders for nine CSS filter functions — blur, brightness, contrast, grayscale and more — and copy the CSS while watching Before and After. You can try it on your own image.
- Enter
- See the result
What is the CSS filter generator?
The CSS filter generator builds the value for the CSS filter property as you move sliders. It covers nine functions, including blur, brightness, contrast and grayscale.
On the right, the original (Before) and the filtered version (After) are shown side by side. Set the values while you watch, then copy the finished CSS as it is.
You can try it on the sample image or on your own. No sign-up or login, and it's free.
How to use the CSS filter generator
- Choose an imageKeep the sample image, or press "Use my own image" and choose one.
- Move the slidersChange a slider or its number and check how After looks.
- Copy the CSSCopy the filter CSS and paste it into your stylesheet.
Features of SOKUFU's CSS filter generator
- Nine filter functions
- blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate and sepia.
- Before and After side by side
- The original and the filtered image sit next to each other, so the change is obvious.
- Leaves defaults out
- A function you haven't moved isn't written into the CSS. If everything is at its default, the output is none.
- Try your own image
- The image you choose is shown only on your device and never sent anywhere.
- Runs in your browser
- Nothing you enter is ever sent to a server.
- Works on phones
- The layout adapts to your screen, so it works on phones and tablets too.
How the CSS filter property is written
filter takes functions separated by spaces, such as blur(2px) brightness(110%). With several functions, they are applied from left to right.
blur takes px, hue-rotate takes deg, and the rest take %. brightness, contrast and saturate start at 100%, and a larger value makes the effect stronger.
The same functions also work in backdrop-filter, which is useful for blurring what sits behind an element.
Related tools to use with the CSS filter generator
- CSS Gradient GeneratorUse it to add a gradient background.
- Image Blur & MosaicUse it to blur the image file itself and save it, instead of using CSS.
- Color Code Converter (HEX, RGB, HSL)Use it to turn a color you'll pair with sepia or hue-rotate into HEX, RGB or HSL.
CSS filter generator FAQ
Does the order matter when I combine filters?
Yes. filter is applied from left to right. This tool writes them in a fixed order — blur, brightness, contrast, grayscale and so on. To change the order, rearrange the CSS by hand.
Can I set opacity with filter too?
Yes. opacity() is one of the filter functions.
Does it work with backdrop-filter?
Yes. backdrop-filter accepts the same functions.
Are untouched sliders written into the CSS?
No. Functions at their default are left out, and if all are at default the output is none.
Is the image I choose sent to a server?
No. Everything runs in your browser, and nothing you enter leaves your device.
Related tools
- Dummy Image GeneratorMake a placeholder image on the spot by choosing its width, height, colors and text. Save it as PNG, JPG, WebP or SVG, or copy it as a data URI.
- CSS Gradient GeneratorBuild linear, radial and conic gradients by moving the angle and color stops, then copy the CSS. The CSS shown is exactly what the preview uses.
- CSS Cursor ListBrowse all 36 values you can give the CSS cursor property and try each as a real cursor. Press a card to copy cursor: value;.
- Gradient Image GeneratorTurn a linear, radial or conic gradient into an image of any size and download it as PNG, JPG or WebP. Handy for backgrounds and wallpapers.
- Image Color PickerLoad an image and press anywhere on it to get that spot's color as HEX, RGB and HSL. The five main colors of the whole image are listed too. The image never leaves your device.
- JPG to PDF ConverterCombine JPG images into one PDF. Reorder pages and pick the page size and margin. Free, no sign-up, and your images are never uploaded.
- PNG to PDF ConverterCombine PNG images, such as screenshots and diagrams, into one PDF in the order you choose. Free, no sign-up, and your images are never uploaded.
- WebP to PDF ConverterCombine WebP images, including ones saved from the web, into one PDF. Free, no sign-up, and your images are never uploaded.
- Image to PDF ConverterCombine JPG, PNG, WebP, GIF and BMP images, even mixed together, into one PDF. Free, no sign-up, and your images are never uploaded.
- Image CompressorMake JPG, PNG, WebP and HEIC images smaller. Choose a strength or a target size and compress many at once. Free, no sign-up, and your images are never uploaded.
- Image ResizerResize many images at once by pixels, by percentage, or to social media and ID photo sizes, and download them as a ZIP. Free, no sign-up, and your images are never uploaded.
- HEIC to JPG/PNG/WebP ConverterConvert iPhone HEIC photos to JPG, PNG, or WebP. Batch conversion with quality control.
- SVG to PNG ConverterConvert SVG files to PNG for free at 1x, 2x or 4x. Transparency is preserved, so logos and icons stay usable over any background.
- SVG to JPG ConverterConvert SVG files to JPG or JPEG for free. JPG cannot hold transparency, so you choose the background color and the export scale.
- WebP ConverterConvert images to WebP or WebP to JPG/PNG. Reduce file size with modern web-optimized format.
- PNG ⇔ JPG ConverterConvert between PNG and JPG formats. Adjust quality and handle transparent backgrounds.
- Bulk Image ConverterConvert a mixed folder of PNG, JPG and WebP files to one format at once, with optional resizing and a single ZIP download.
- Image CropperCut away the parts of a picture you do not need. Lock the frame to 1:1, 16:9, social media or print ratios and fine-tune it in pixels. Images never leave your device.
- Image Compare ToolCompare two images pixel by pixel and highlight only what changed. You can also view them side by side, with an overlay slider or by flipping between them, and your images never leave your browser.
- Photo Metadata & EXIF RemoverDelete GPS location, date taken and camera model from photos in one go. No re-encoding, so quality stays untouched, and your photos never leave your browser.
- Photo Date Changer (EXIF Date Taken)Change the date taken (EXIF) of many photos at once: set one date for all, or shift each by a fixed amount. Quality stays untouched, and your photos never leave your browser.
- Flip Image (Horizontal & Vertical)Mirror a picture left to right or top to bottom. Fix a back-to-front selfie or prepare iron-on artwork. Flip several JPG, PNG and WebP files at once without uploading them.
- Rotate Image (90°, 180° & Any Angle)Turn a picture 90, 180 or 270 degrees, or straighten a crooked photo one degree at a time. Rotate several JPG, PNG and WebP files at once without uploading them.
- Add Text to ImageAdd text to photos and images. Pick the size, color, outline and position while you watch the preview. Works on several JPG, PNG and WebP files at once without uploading them.
- Image WatermarkAdd a text watermark to your images. Tile it diagonally to discourage reuse, or place a single copyright line in one corner. Images never leave your device.
- Image Fill & PaintPaint over parts of an image. Fill a connected area with the bucket, paint freehand with the brush, or pick a color with the eyedropper and read its HEX and RGB values. Images never leave your device.
- Color Code Converter (HEX, RGB, HSL)Convert a color code between HEX, RGB and HSL in any direction. Every form is listed side by side, including the one PowerPoint accepts.
- RGB to HEX ConverterTurn an RGB value (59, 130, 246) into a HEX color code (#3B82F6). The forms without # and with alpha are listed too, ready to copy.
- HEX to RGB ConverterTurn a HEX color code (#3B82F6) into RGB (59, 130, 246). The R, G and B numbers PowerPoint asks for can each be copied on their own.
- Image Blur & MosaicFind faces in a photo automatically and hide them with mosaic, blur or a black box. Cover license plates or names with a rectangle or a brush. Your image is processed in your browser and never uploaded.
- Color Contrast CheckerCalculate the contrast ratio between a text color and a background color and check it against WCAG 2.x AA and AAA for normal text, large text and UI components.
- Tailwind Color GeneratorBuild the 11-step Tailwind CSS palette (50 to 950) from one base color, and copy it as @theme (v4), tailwind.config (v3) or a plain HEX list.
- AI Image DetectorCheck whether an image was made with AI by reading the generation records left in it (C2PA, XMP, Exif and PNG text). Your image is read in your browser and never uploaded.
- Background RemoverAI finds the subject of your photo and makes the background transparent, giving you a PNG. Free, no signup. Your image is processed in your browser and never uploaded.
- AI Image UpscalerEnlarge small or blurry images 2x or 4x with AI and make them sharper. Your image is processed in your browser and never uploaded.
- Image to Text (OCR)Extract text from photos, screenshots and scanned images. Works with Japanese and English. Your image is processed in your browser and never uploaded.
- Handwriting to TextRead the text in photos of handwritten memos and notes and turn it into editable text. Your image is processed in your browser and never uploaded.
- Excel to MarkdownTurn Excel (.xlsx, .xls, .csv) into Markdown tables. Each sheet gets its own heading and table, ready to copy or save as .md. Free, no sign-up, and your file is never uploaded.
- HTML to Markdown ConverterConvert HTML files (.html / .htm) or pasted HTML to Markdown, keeping headings, tables, lists, links and code. Conversion runs entirely in your browser.
- Markdown Table GeneratorBuild a Markdown table by choosing rows and columns. Paste from Excel or Google Sheets, and export as HTML or CSV too.
- Markdown to HTML ConverterConvert Markdown to HTML. The preview and HTML update as you type, with support for tables, task lists and strikethrough.
- URL to Markdown ConverterEnter a web page URL and get it back as Markdown, with headings, tables, lists and links kept. Handy for feeding pages to an AI assistant or tidying research notes.
- Digital Stamp CreatorMake round, square, or date hanko stamps and save them as transparent PNG images.
- Barcode ReaderScan a barcode from a photo or your camera and see the number and format. Supports UPC, EAN, Code 128, ITF and Codabar.
- Receipt OCR to CSVRead the date, store, total, and tax from receipt photos, fix anything in a table, and save it all as one CSV. Add many receipts at once. Images are processed in your browser and never uploaded.
- Schema Markup GeneratorCreate JSON-LD schema markup by filling in a simple form. Local business, organization, article, FAQ and breadcrumb.
- Video to GIFTurn MP4, WebM and MOV clips into animated GIFs. Set the FPS, width and trim range. It all runs in your browser, so the video is never uploaded.
- QR Code GeneratorMake a QR code from a URL, text, Wi-Fi login and more. Change the colors, dot shape and add a logo.
- QR Code ReaderRead the URL or text inside a QR code from an image or your camera, and check where a link goes before you open it.
- Online Ruler (Actual Size)Show a ruler on your screen at real-world size. Match the screen to a card you have on hand, then measure in cm and mm or in inches. Free, no sign-up.
- Drawing Prompt RouletteSpin a wheel to choose what to draw next. Over 30 prompts that pair a subject with a scene are included, and you can rewrite them for practice or events.