
Build linear or radial CSS gradients with live preview and copyable code.
Tune offset, blur, spread and color for CSS box shadows with live preview.
Your files never leave your device. Everything runs in your browser.
Box Shadow Generator is a live editor for the CSS box-shadow property. Six controls — X offset, Y offset, blur, spread, colour and opacity — update the sample card and the CSS line as you move them, and one button copies the finished declaration.
The default state produces box-shadow: 0px 12px 30px -4px rgba(0, 0, 0, 0.35);, a soft shadow falling downwards. Reading any box-shadow value is easier once you know the order of its five parts: horizontal offset, vertical offset, blur radius, spread distance and colour. So 0px 0px 20px 0px rgba(255, 0, 0, 0.5) — a verified output for the red glow preset — is a shadow with no displacement, a medium blur and no spread.
Sliders cover the practical ranges: X offset, Y offset and spread run from -50 to 50 pixels, blur from 0 to 100, and opacity from 0 to 100 percent, which is written into the colour as an rgba alpha value. Everything is computed in the page, so nothing is uploaded or saved.
Horizontal offset, vertical offset, blur radius, spread distance, then colour. The two offsets are required; blur and spread can be omitted, and the colour may be written before or after the lengths, but this tool always emits the conventional order.
Because the opacity control needs an alpha channel, and rgba expresses that directly with values such as rgba(0, 0, 0, 0.35). If you prefer hex, the equivalent eight-digit form appends the alpha to the colour by hand.
Not with the controls, but the keyword is easy to add: insert inset at the start of the copied value, before the offsets, and the browser draws the shadow inside the element.
Yes in CSS — separate them with commas, and the first shadow paints on top. The generator edits one shadow at a time, so copy each layer separately and merge the values.
Spread shrinks the shadow before it is blurred. A small negative spread, like the default -4px, keeps a shadow close to the element, which reads as more realistic than a large evenly blurred one.
No. The preview and the declaration are computed in your browser and nothing is stored or sent anywhere.
Related text tools: CSS Gradient Generator, Color Converter, Image Color Picker.
The preview and CSS are generated entirely in your browser — nothing is uploaded or stored.