Design CSS box-shadows visually with a live preview and copy-paste output.
Craft CSS box-shadows with sliders for offset, blur, spread, colour, and opacity, plus an inset toggle — all with a live preview. Copy the ready-to-paste box-shadow rule. Runs entirely in your browser.
Upload your file using the tool above.
Adjust any settings to your preference.
Click the process button and wait for results.
Download your output using the download button.
Offset moves the shadow horizontally and vertically, implying where the light is. Blur softens the edge — zero gives a hard-edged shape, higher values a diffuse glow. Spread grows or shrinks the shadow before blurring, so a negative spread pulls it in tight for a subtle lift.
Keep it soft and subtle, offset mainly downward since light usually comes from above, and use a low-opacity black rather than grey — grey shadows look flat over coloured backgrounds. Layering two shadows, one tight and one wide and faint, mimics real light far better than a single heavy one.
Rarely at normal scale. Very large blur radii on many elements can cost during scrolling and animation, since the browser repaints them. If you are animating a shadow, animating opacity on a pseudo-element is usually smoother than animating box-shadow directly.
Yes, CSS Box Shadow Generator is completely free. No signup, no account, and no watermark on outputs. A Pro tier is available for 100 AI ops/day and larger file sizes.
CSS Box Shadow Generator runs entirely in your browser. Your file is never uploaded — it is read, processed and saved locally, so it never reaches our servers or anyone else's. You can disconnect from the internet after the page loads and it still works.
box-shadow: 0px 10px 20px -4px rgba(30, 41, 59, 0.25);The values: box-shadow takes horizontal and vertical offset, blur radius, spread radius, and a colour. inset draws the shadow inside the element instead of outside.
Tips: Subtle shadows read as more premium — try a small offset, generous blur, and a low opacity. A slight negative spread keeps the shadow tucked under the element.
Privacy: Everything runs locally in your browser. Nothing is uploaded.