Create beautiful, customizable box shadows for your web projects with our free interactive generator. Adjust parameters in real-time and copy the CSS code with a single click.
box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.2);
Tip: For multiple shadows, copy each shadow and combine them with commas in your CSS.
Choose from our professionally designed box shadow presets. Click any example to copy its CSS code instantly.
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12), 0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12);
box-shadow: 5px 5px 10px #d1d1d1, -5px -5px 10px #ffffff;
box-shadow: inset 5px 5px 10px #d1d1d1, inset -5px -5px 10px #ffffff;
box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
Learn how box shadows can enhance your web designs with these practical applications.
Create depth and hierarchy by applying shadows to cards, containers, or UI components.
Common Examples:
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
Add interactive feedback by changing shadow properties on hover, focus or click states.
Common Examples:
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); transition: box-shadow 0.3s ease;
Draw attention to important dialogs by using stronger shadows to make elements stand out.
Common Examples:
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
Create the illusion of depth and dimension with strategic shadow placement.
Common Examples:
box-shadow: 0 1px 1px rgba(0,0,0,0.11), 0 2px 2px rgba(0,0,0,0.11), 0 4px 4px rgba(0,0,0,0.11), 0 8px 8px rgba(0,0,0,0.11);
Use our generator above to customize these examples to match your website's design system.
Everything you need to know about CSS box shadows and how to use them effectively.