CSS Mask Generator
Generate CSS mask-image gradients for fades and reveals.
Fade and reveal with CSS masks
mask-image lets you fade an element out at its edges, reveal it through a shape, or apply a gradient cutout — effects that would otherwise need extra images. This generator builds gradient mask CSS with a live preview of the result.
Masks are underused because the syntax is unfamiliar, but they are perfect for soft image fades and scroll edges. Adjust the gradient and copy the mask CSS (including the -webkit- prefix) to apply the effect to any element.
Copy-ready CSS
The CSS is generated live in your browser as you adjust the controls, so there is nothing to install and nothing is uploaded. Copy the ready-to-use declaration straight into your stylesheet, tweak the values to taste, and it will render exactly as it does in the preview here.
Frequently Asked Questions
What does the css mask generator do?
It generates CSS from the options you choose and previews the result directly in your browser.
Can I use the CSS in production?
Yes. Copy the generated CSS as a starting point, then review naming, browser support, and design-system fit before shipping.
Does this upload my design values?
No. The generator runs locally in your browser and does not send your input to a server.
Is this free?
Yes. It is a free browser utility with no account required.
Practical utilities for front-end design and implementation work.