Box Shadow Generator

box-shadow: 10px 10px 5px 0px rgba(0, 0, 0, 0.5);

About this Tool

Stop guessing your CSS shadows and start designing them. Our visual Box Shadow Generator gives you an interactive playground to create the perfect shadow effect. Use simple sliders and color pickers to design complex, layered shadows, and get the production-ready CSS code instantly. It's the fastest way to add depth and polish to your UI.

The tool dynamically builds a CSS `box-shadow` string by combining your inputs for horizontal/vertical offset, blur radius, spread radius, and color. This string is applied to a preview element in real-time, giving you instant feedback.

  1. Use the sliders to adjust the Horizontal and Vertical Offsets.
  2. Control the softness of the shadow with the Blur slider.
  3. Increase or decrease the size of the shadow with the Spread slider.
  4. Choose a shadow color and adjust its opacity.
  5. Toggle 'Inset' to create an inner shadow for a 'pressed-in' effect.
  6. Copy the generated CSS code with a single click.
  • Designing modern, layered cards for a user interface.
  • Adding a subtle, realistic depth to buttons and interactive elements.
  • Creating trendy 'neumorphic' (soft UI) effects.
  • Live Visual Preview: See your shadow update in real-time.
  • Full Control: Adjust offset, blur, spread, color, and opacity.
  • Inset & Outset: Easily switch between inner and outer shadows.
  • One-Click Copy: Grab the generated CSS rule instantly.

The `box-shadow` CSS property is a powerful tool for creating depth in 2D. It allows you to apply one or more shadows to an element, each with its own position, blur, spread, and color. This generator simplifies the process of creating those layers.

Can I create multiple shadows on one element?

This version focuses on creating a single, perfect shadow layer. The ability to stack multiple shadows is planned for a future update.

What units are used?

The generator uses pixels (`px`) for all length values, which is the most common unit for box shadows.

Is this compatible with all browsers?

Yes, the `box-shadow` property is a standard part of CSS3 and is supported by all modern browsers.

All calculations and data processing for this tool are performed locally in your browser. We do not send any of your data to our servers, ensuring your information remains private and secure.

Enjoying UtilToolkits?

Support our development and help us create more amazing tools!