CSS Shadow Generator

Generate box-shadow and text-shadow CSS values with a live preview.

Layer 1
4px
4px
8px
0px
20%
CSS
box-shadow: 4px 4px 8px 0px rgba(0,0,0,0.20);

What is the Free CSS Shadow Generator?

The free CSS Shadow Generator creates box-shadow CSS rules with a visual live preview. Each shadow layer has four sliders — Horizontal offset, Vertical offset, Blur, and Spread — plus a colour picker. Add multiple shadow layers to achieve multi-depth effects, and copy the complete box-shadow CSS in one click.

  • Design card and modal shadows for web UIs.
  • Create a subtle neumorphic or elevation effect for a component.
  • Stack multiple shadow layers for a deep 3D button effect.
  • Generate a coloured glow shadow for a hero element or badge.
  • Prototype shadow styles visually without editing CSS manually.

How to Use the Free CSS Shadow Generator

  1. 1 Adjust the Horizontal offset, Vertical offset, Blur, and Spread sliders to position and size the shadow.
  2. 2 Click the colour swatch to choose the shadow colour, including semi-transparent RGBA values.
  3. 3 Click + Add Layer to stack additional shadow layers on top of the first.
  4. 4 Watch the live preview update instantly for every change.
  5. 5 Click Copy CSS to copy the full box-shadow property value.

Key Features

  • 🌑
    Multi-layer shadows
    Stack multiple shadow layers to build complex depth effects.
  • 🎛️
    Four per-layer sliders
    Horizontal, vertical, blur, and spread — each with a dedicated slider.
  • 🎨
    Colour picker per layer
    Set any colour including semi-transparent RGBA for subtle glows.
  • 📋
    Copy CSS instantly
    One-click copy of the complete box-shadow CSS declaration.

Example Usage

Example Input
H: 0px, V: 4px, Blur: 12px, Spread: 0px, Colour: rgba(0,0,0,0.15)
Example Output
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.15);

Frequently Asked Questions about the Free CSS Shadow Generator

What is the free CSS Shadow Generator?
Generate box-shadow and text-shadow CSS values with a live preview.
Is the CSS Shadow Generator free to use?
Yes, the CSS Shadow Generator is completely free. No account, subscription, or signup is required — ever.
Does my data get uploaded anywhere?
No. The CSS Shadow Generator runs entirely in your browser. Your data is never sent to any server.
Does it work offline?
Yes. Once the page has loaded, the tool works without an internet connection.
Which browsers are supported?
All modern browsers — Chrome, Firefox, Safari, and Edge. No plugins or extensions required.
What is "spread" in a CSS box-shadow?
Spread expands or contracts the shadow in all directions. A positive spread makes it larger than the element; a negative spread makes it smaller.
Can I create an inner shadow with this tool?
Yes — toggle the "inset" option on a shadow layer to make it an inner (inset) shadow that appears inside the element's border rather than outside.

Related Free Generators