CSS Box Shadow Generator
Build a shadow for a card or button by adjusting numeric values and color. The preview responds immediately to offset, blur, spread and opacity changes. Press Run to create one box-shadow layer and a matching border-radius declaration.
Key features
- Switch between an outer shadow and an inset shadow
- Set offsets from -100 to 100px, blur from 0 to 100px and spread from -50 to 50px
- Choose a six-digit HEX color and opacity from 0 to 100%
- Preview corner radius together with the actual CSS shadow
How to use
- Enter horizontal and vertical offsets, blur and spread.
- Choose a color, opacity and outer or inset direction.
- Check the preview, press Run and copy the generated CSS.
Use cases
- Create a soft outer shadow for a card grid
- Compare inset effects for inputs or pressed buttons
- Turn visual shadow choices into reusable CSS declarations
Frequently asked questions
What is the difference between blur and spread?
Blur softens the edge of a shadow. Spread expands or contracts its shape before blur is applied; a negative spread pulls the shadow inward.
Can I generate multiple shadow layers?
This tool generates one layer at a time. To combine several layers, join separately generated box-shadow values with commas in your stylesheet.
Why might it look different on my site?
Background color, element size and surrounding space affect the appearance. This preview uses a white sample on a light checkerboard. Also check the CSS on your final page.
How are numeric values handled?
Decimals are accepted within the range shown for each field and rounded to two decimal places. Empty values and values outside the allowed range show an error.
Privacy
CSS generation and preview run in your browser without sending the settings to a conversion server. Results are not automatically saved to a file or account.
Comments & questions