CalcaTools

CSS Box Shadow Generator

A free visual tool to generate CSS box-shadow code. Adjust offset, blur, spread, and color with sliders, then copy the ready-to-use CSS.

Last updated: June 2026 · Free · No sign-up required

5px
5px
15px
0px
0.20
CSS Code

Frequently Asked Questions

What is the difference between blur and spread in box-shadow?

Blur radius determines how soft or fuzzy the edges of the shadow will be. Spread radius expands or contracts the overall shape of the shadow in all directions before the blur is applied.

What does the 'Inset' checkbox do?

The inset keyword changes the shadow from an outer shadow (which makes the element look raised) to an inner shadow (which makes the element look sunken or pressed into the background).

How do I use rgba() color in CSS?

The rgba() function stands for Red, Green, Blue, and Alpha (opacity). Alpha is represented by a decimal value between 0 (completely transparent) and 1 (fully opaque), which allows you to create realistic, semi-transparent shadows.

Quick reference

ValueControls
offset-xhorizontal shadow position
offset-yvertical shadow position
blursoftness of the edge
spreadhow far the shadow grows
insetshadow inside the element

Interpretation guide

EffectRecipe
Subtle card0 1px 3px rgba(0,0,0,.12)
Floating0 10px 25px rgba(0,0,0,.15)
Inner shadowinset 0 2px 4px rgba(0,0,0,.2)

Formula & methodology

Formula: box-shadow: offset-x offset-y blur spread color (prefix with inset for inner shadows)

The generator builds a CSS box-shadow from sliders for offset, blur, spread and colour, with a live preview of the depth effect.

  1. Set horizontal and vertical offsets to place the shadow.
  2. Increase blur for softness and spread for size.
  3. Choose a colour and opacity (rgba).
  4. Copy the generated box-shadow declaration into your CSS.

Worked example: 0 10px 25px rgba(0,0,0,0.15) creates a soft floating-card shadow.

Frequently asked questions

What does CSS box-shadow do?
It adds a shadow around an element. The values set horizontal and vertical offset, blur, spread, and colour.
What is the order of box-shadow values?
offset-x, offset-y, blur, spread, then colour. Add the keyword inset to draw the shadow inside the element.
How do I make a soft, subtle shadow?
Use a small offset, moderate blur, no spread, and a low-opacity colour, e.g. 0 1px 3px rgba(0,0,0,0.12).
Can I add multiple shadows?
Yes. Separate each shadow with a comma to layer several for richer depth.
What is an inset shadow?
Adding inset draws the shadow inside the element’s border, creating an inner or pressed-in look.