🫧 SUGI

Advertisement

🔲

Box Shadow Generator – CSS box-shadow code maker

Box shadow generator: adjust offset, blur, spread, color and opacity with a live preview, then copy the CSS box-shadow code. Free, no sign-up.

Advertisement

About this tool

A box shadow generator, or CSS shadow code maker, lets you design a shadow with sliders and copy the finished box-shadow line into your stylesheet.

Move the horizontal and vertical offset, blur, spread and opacity sliders, pick a shadow color, and tick Inset for an inner shadow; the white square above the code updates live and the CSS line is ready to copy.

What do the values mean? Horizontal and vertical offset move the shadow right and down (negative values move it left and up).

Blur softens the edge, spread makes the shadow bigger or smaller than the box, and opacity sets how see-through it is. For example, 0px 8px 24px 0px rgba(0, 0, 0, 0.25) gives a soft shadow below a card.

How do I make a soft, natural shadow? Use a small offset, a larger blur, no spread and low opacity such as 10 to 25 percent. What does inset do?

It draws the shadow inside the box, which suits pressed buttons and input fields. Very large blur values can slow rendering on weak devices, so keep them moderate.

To combine layered shadows, copy several lines and join them with commas in your own CSS. For backgrounds, see the CSS Gradient Generator on this site. Everything runs in your browser and nothing is sent or saved.

How to use

  1. Move the offset, blur, spread and opacity sliders and pick a color.
  2. Tick Inset if you want an inner shadow, and check the live preview.
  3. Press Copy CSS and paste the box-shadow line into your stylesheet.

Similar free tools

Made by SUGI and checked against our content guidelines · Last updated 2026-11-13 · How we make content

Advertisement