Box Shadow Generator
Visually design CSS box shadows with live preview, then copy the ready-to-use CSS property.
Shadow Layers
Edit Selected Layer
0px
0px
8px
0px
25%
Inset Shadow
Live Preview
Background
Preview
Generated CSS
box-shadow: 0px 4px 8px 0px rgba(0,0,0,0.25);
Summary
Visually design CSS box shadows with live preview, then copy the ready-to-use CSS property.
How it works
- Use the sliders to set horizontal offset, vertical offset, blur radius, and spread radius.
- Choose a shadow color and adjust its opacity with the dedicated controls.
- Toggle Inset to switch between outer and inner shadows.
- The preview box updates instantly to reflect every change.
- Click "Copy CSS" to copy the ready-to-paste CSS value to your clipboard.
- Add multiple shadow layers using the "Add Layer" button for stacked effects.
Use cases
- Generate drop shadows for cards, buttons, and modals.
- Create inset shadows for pressed or sunken UI elements.
- Layer multiple shadows for depth and material-style effects.
- Prototype shadow styles before committing to a design system.
- Learn how individual CSS box-shadow parameters affect the result.
- Export ready-to-use CSS for React, Vue, or plain HTML projects.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu