CSS Box Shadow Generator — Free Online Tool

Layers

Layer 1

0px
0px
10px
0px
80%

Element

8px

Presets


        
      

How to Use the CSS Box Shadow Generator

  1. Use the sliders to adjust horizontal offset, vertical offset, blur radius, spread radius, and opacity.
  2. Pick a shadow color with the color picker.
  3. Add multiple shadow layers by clicking "Add Layer" for complex stacked shadow effects.
  4. Copy the output as CSS, React inline style, or Tailwind class syntax.

Why Use a Box Shadow Generator

CSS box shadows have five parameters (X offset, Y offset, blur, spread, color) and can be stacked in multiple layers — making the syntax error-prone to write by hand. A visual generator lets you see the shadow update in real time as you drag sliders, making it easy to get the exact depth and softness you want without trial-and-error in your editor.

The presets included cover the most common design patterns: flat cards, raised buttons, floating modals, neumorphic surfaces, and more. The React and Tailwind output modes save time if your project uses those frameworks — no need to manually convert between CSS and JavaScript object syntax.

Frequently Asked Questions