Box Shadow Generator

Box Shadow Generator visually designs a CSS `box-shadow` value by adjusting horizontal/vertical offset, blur, spread and color with sliders, letting you stack multiple shadows and copy the ready code.

box-shadow: 0px 8px 24px -4px #00000059;

How it works

  1. 1Set horizontal and vertical offset, blur and spread values in pixels.
  2. 2Pick the shadow color and opacity; optionally turn on "inset" for an inner shadow.
  3. 3Stack multiple shadows with "+ Add shadow" to build a layered depth effect.
  4. 4Copy the generated `box-shadow: ...` CSS code.

Frequently asked questions

What's the difference between blur and spread?+

Blur softens and widens the shadow's edges (can't be negative); spread grows or shrinks the shadow equally on all sides (can be negative).

Can I apply multiple shadows to the same element?+

Yes, `box-shadow` accepts multiple comma-separated shadow definitions, a common technique for layered, realistic depth effects.

When would I use an inset shadow?+

To give an element a pressed-in or carved look, e.g. for pressed-button or input-field effects.

Does the generated code work in all browsers?+

Yes, `box-shadow` is supported in all modern browsers without a vendor prefix.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/color/box-shadow-generator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Box Shadow Generator · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Color and Design Guide →

Command Palette

Search for a command to run…