Output will appear here
Click in the output to select all text
Output will appear here
Click in the output to select all text
Build a CSS box-shadow value with offset, blur, spread, color, and inset controls, and copy the ready-to-use CSS.
Build a CSS border-radius value with independent per-corner controls, in pixels or percent.
Generate linear and radial CSS gradient code with multiple color stops and angle.
This CSS Glassmorphism Generator builds the frosted-glass UI effect popularized by modern design systems — a semi-transparent background, a backdrop blur applied to whatever sits behind the element, and a subtle light border — from simple controls for blur amount, background color and opacity, border opacity, and corner radius. Adjust any control and get complete, ready-to-paste CSS instantly, including the -webkit- prefix for Safari compatibility. It's a quick way to dial in a glass-panel card, navbar, or modal without hand-tuning rgba() values and backdrop-filter syntax. Everything runs locally in your browser. Scroll down to adjust the controls.
It applies a graphical effect (here, a blur) to whatever content is visible behind an element, rather than to the element itself — this is what creates the "frosted glass" look where background content is visible but softened.
Safari historically required the -webkit- prefixed version of backdrop-filter for the effect to render; including both ensures the effect works consistently across modern browsers.
It needs visible content behind the element to blur — a glass effect over a plain solid background will look subtle since there's little detail to blur into a soft haze.
0.1-0.3 is a common range for a subtle glass look; higher values make the panel more opaque and less "glassy," while very low values can hurt text readability on top of it.
backdrop-filter can be more GPU-intensive than a plain background, especially with large blur radii over large areas — test on lower-powered devices if using it extensively.