Box Shadow Generator
Build CSS box shadows visually with offset, blur, spread, color and inset, including layered shadows.
Tool
Was this tool useful?
About this tool
About Box Shadow Generator
Create soft, realistic shadows for cards and buttons. Stack several shadows for depth and copy the CSS.
How it works
box-shadow: [inset] x-offset y-offset blur spread color, …
Example
0 10px 30px -5px rgba(0,0,0,.2) creates a soft floating card shadow.
How to use this tool
- Adjust offset, blur, spread and color.
- Add more layers for smoother shadows.
- Copy the box-shadow CSS.
Frequently asked questions
Why use multiple shadows?
Layering a tight dark shadow with a wide soft one looks more natural.
Does box-shadow affect layout?
No, shadows do not take up space or move other elements.
Does the Box Shadow Generator send my data to a server?
No. The Box Shadow Generator runs entirely in your browser using JavaScript, so tokens, code and data you paste stay on your device. You can even use it offline once the page has loaded.