Interfaces and CSSRuns in your browser

CSS box-shadow Generator

Set the offset, blur, spread, color, and opacity of a card or panel shadow, then copy its CSS.

  • Offset/blur/spread
  • HEX + opacity
  • Copyable CSS
Online tool

Try the tool

Add your data, choose the settings, and get the result.

Input

Result

.shadow-card {
  box-shadow: 0px 18px 48px 0px rgba(15, 23, 42, 0.18);
}

Processing in your browser

Text and selected files are processed in the current browser and are not sent to a server to produce the result.

Reviewed: 2026-07-17
01

How to use it

  1. 1

    Enter X/Y offset, blur, and spread.

  2. 2

    Choose a HEX color and opacity from 0 to 1.

  3. 3

    Check the preview and copy the declaration.

02

What the tool can do

  • Negative X/Y offsets within the allowed range.
  • Blur up to 400 px and spread from -200 to 200 px.
  • HEX to rgba conversion for controlled opacity.
03

Common use cases

  • Choosing a shadow token for cards and dropdowns.
  • Replacing border-heavy UI with elevation.
  • Quickly checking a shadow before moving it into CSS variables.
04

How it works inside

After HEX validation, the color is written as rgba.

Each numeric parameter has an allowed range.

05

Questions and answers

How can I create a soft box shadow?

Adjust the offset, blur, spread, colour, and opacity. Check the preview, then copy the CSS for your element. The result may look different against your site's actual background.

Can I create several shadows for one element?

The form generates one shadow. If you need several, add more comma-separated values to the copied CSS. Check the final appearance on the page where the shadow will be used.