Generate beautiful CSS box shadows, borders, and border-radius with this free online tool. Live preview and instant code copy.
box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
-webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
Web design is all about details, and nothing adds depth and polish to a UI element quite like a perfect box shadow or a smooth border radius. Our CSS Box Generator is a powerful, visual tool designed to help developers and designers generate complex CSS3 properties in seconds without writing a single line of code manually.
-webkit- and -moz- prefixes to ensure your design looks consistent across all browsers.Use the sliders to control the horizontal and vertical offset. Increase the blur radius for a softer shadow, or use the spread radius to expand the shadow's size. Toggle "Inset" for an inner shadow effect.
Round the corners of your element using the Border Radius slider. Add a border outline and pick any color you like to match your theme.
Fine-tune the shadow color and opacity. A lower opacity black shadow often looks more natural than a solid gray one. You can also change the box background color to see how it contrasts.
Once you're happy with the result, the CSS code is automatically generated in the box below. Click "Copy" and paste it directly into your stylesheet.
The box-shadow property accepts several values:
Modern web design trends (like Material Design or Apple's Human Interface Guidelines) often rely on subtle, multi-layered shadows to create depth. Instead of one harsh shadow, try using a large blur radius with a very low opacity (e.g., 0.1 or 0.15). This mimics how light behaves in the real world, creating a "floating" effect that looks clean and professional.