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);

Free browser-based tool · Runs 100% on your device · Last updated

What is the 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 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 CSS Shadow Generator

What is the CSS Shadow Generator?
The CSS Shadow Generator is a free online tool that lets you generate box-shadow and text-shadow CSS values with a live preview. It runs entirely in your browser, so there is nothing to install and nothing is uploaded to a server.
Is the CSS Shadow Generator free?
Yes — the CSS Shadow Generator is completely free, with no account, subscription, signup, or usage limits.
Is my data uploaded or stored?
No. The CSS Shadow Generator processes everything locally in your browser. Your input is never uploaded, saved, or shared with any server.
Does the CSS Shadow Generator work offline?
Yes. Once the page has finished loading, the CSS Shadow Generator works without an internet connection.
Which browsers does the CSS Shadow Generator work in?
The CSS Shadow Generator works in all modern browsers, including Chrome, Firefox, Safari, and Edge — no plugins or extensions needed.
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