Boad
boad.
/
Tools
Sign In
← Back to all tools

CSS Box Shadow Generator

Visually generate CSS box shadows and copy the code.

10px
10px
15px
-3px
25%
Preview Element
CSS Code
box-shadow: 10px 10px 15px -3px rgba(0, 0, 0, 0.25); -webkit-box-shadow: 10px 10px 15px -3px rgba(0, 0, 0, 0.25); -moz-box-shadow: 10px 10px 15px -3px rgba(0, 0, 0, 0.25);
Run 500+ lite web apps and 55+ daily utilities with 0MB download lag on Boad Super App.
Explore Boad App Store

What is the CSS Box Shadow Generator?

The Box Shadow Generator is a free visual tool for web designers. It allows you to create beautiful, modern drop shadows using intuitive sliders, and instantly outputs the exact CSS code.

The Secret to Modern Shadows

A few years ago, harsh, dark drop shadows were popular. Today, modern web design (like \"Glassmorphism\" and sleek SaaS dashboards) relies on highly transparent, highly blurred, large spread shadows. The trick is to use a very low opacity (e.g., 5% to 15%) with a large blur radius to make the element look like it is floating naturally off the page.

Understanding the CSS Syntax

The CSS property box-shadow accepts values in a specific order: x-offset y-offset blur spread color. If you see the keyword inset added to the front, it means the shadow is cast inside the element rather than outside.

How to use this tool

  • Adjust the X and Y Offset sliders to position the shadow horizontally and vertically.
  • Adjust the Blur slider to make the shadow softer or sharper.
  • Adjust the Spread slider to increase or decrease the physical size of the shadow.
  • Change the shadow color and adjust the opacity (transparency) slider for a premium look.
  • Click Copy to grab the CSS and paste it into your stylesheet.

Frequently Asked Questions

Yes! In CSS, you can stack multiple shadows by separating them with a comma. This is a pro-trick used to create incredibly smooth, realistic depth.
No. The box-shadow property is purely visual and does not affect the actual dimensions or flow of the DOM elements. It will not push other elements around.
An inset shadow flips the shadow to the inside of the box. Instead of making an element look like it is floating above the page, an inset shadow makes it look like it is carved or pressed deeply into the page.

Related Color & Design

More free, instant in-browser utilities for your workflow

View All Tools