CSS Box Shadow Generator

Design soft, layered CSS box shadows with a live preview — then copy the CSS.

InstantPrivate — runs in your browserFree, no sign-up

Your details

px
-5050
px
-5050
px
0100
px
-5050
%
0%100%
Layer options
px
080

Result

How to use

  1. 1

    Move the sliders to set the offset, blur, spread, colour and opacity of the shadow.

  2. 2

    Press Add layer to stack several shadows for a softer, more realistic look — click a layer to edit it.

  3. 3

    Try a preset, then press Copy CSS.

Questions

What do the box-shadow values mean?

box-shadow: x-offset y-offset blur spread colour. Positive x moves the shadow right, positive y moves it down. Blur softens the edge and spread grows (or, if negative, shrinks) the shadow.

Why use more than one layer?

Real shadows are soft near the object and fade far away. Stacking a small sharp shadow with a large blurred one looks more natural than a single shadow.

Do I need -webkit-box-shadow?

No. Every current browser supports the plain box-shadow property.

About this Box Shadow tool

CSS Box Shadow Generator — Design soft, layered CSS box shadows with a live preview — then copy the CSS. It is one of 200 free tools on namasivayam.in, made by software engineer Namasivayam Vadivelan for everyday use in India.

Everything is calculated instantly in your browser: nothing you type or upload is sent to any server, there is no sign-up, and it works on mobile and desktop. Move the sliders to set the offset, blur, spread, colour and opacity of the shadow.

Related reading

Articles that go with this tool

All articles →

Related tools

More colour tools you may like

All 200 tools →

Results are estimates to help you plan. They are not financial, tax or medical advice.