Toolnova
Color & Design

CSS Box Shadow Generator

Visually design CSS box shadows with full control over offset, blur, spread, color, and opacity — then copy the finished code directly into your stylesheet.

  • 100% free
  • No signup
  • Private — in your browser
  • No watermark
Live tool · runs in your browser
Highlights

Why use CSS Box Shadow Generator?

  • Live preview updates instantly as you drag the sliders
  • Multiple shadow layers for complex, layered effects
  • Independent color, opacity, blur, spread, and inset controls per layer
  • Copy the exact CSS declaration ready to use in any project
Overview

About CSS Box Shadow Generator

Getting a box-shadow just right used to mean tweaking pixel values and hex codes by hand and refreshing the browser each time. The CSS Box Shadow Generator removes that friction by giving you intuitive sliders and a live preview that updates the moment you move a control. Adjust the horizontal and vertical offsets, dial in the blur and spread radius, pick a shadow color with its own opacity control, and toggle the inset option for inner shadows.

Need a more complex look? Add multiple shadow layers and edit each one independently — all without leaving the page. When you are happy, click the copy button to grab the complete box-shadow CSS declaration. The tool runs entirely in your browser at no cost, with no account required.

Step by step

How to use CSS Box Shadow Generator

  1. 1

    Adjust the shadow sliders

    Use the X/Y offset, blur, spread, and opacity sliders to shape your shadow. Watch the preview card update in real time.

  2. 2

    Set color and inset option

    Pick a shadow color with the color picker and check "Inset" if you want the shadow to appear inside the element.

  3. 3

    Copy the CSS

    Click the copy button next to the generated CSS and paste it into your stylesheet or component.

FAQ

Frequently asked questions

What does the Spread value do?

Spread expands or contracts the shadow before blurring. A positive spread makes the shadow larger than the element; a negative spread shrinks it.

What is an inset shadow?

An inset shadow appears inside the element's border rather than outside it, creating a pressed or sunken appearance.

Can I stack multiple box shadows?

Yes. Click "Add Layer" to create additional shadow layers. CSS supports multiple comma-separated shadows on a single property.

Does the generated CSS work in Tailwind?

Yes. You can use it as a Tailwind arbitrary value: `shadow-[4px_4px_16px_rgba(0,0,0,0.20)]` or define it in your tailwind.config boxShadow theme.

Is the tool free?

Yes, completely free with no sign-up or limits.

Related color & design

See all color & design

Browse more free tools

Explore every category in our toolbox.