CSS Box Shadow Generator

Build CSS box-shadow declarations from selected offsets, blur, spread and color.

Your workspace

Server processing

Review the example values, then run the tool.

This tool generates CSS box-shadow declarations by applying your chosen horizontal and vertical offsets, blur radius, spread, and color.

Generating a box-shadow declaration

  1. Adjust the horizontal and vertical offset sliders to position the shadow relative to your element.
  2. Set the blur and spread values to control the shadow's softness and size, then select a color and shadow type.
  3. Copy the generated CSS declaration string for use in your stylesheet.

Understanding shadow controls

The horizontal and vertical offsets determine the shadow's direction, while blur creates the transition effect. The spread value expands or contracts the shadow size. You can choose between an outer shadow, which appears behind the element, or an inset shadow, which appears inside the element's border.

Processing and limits

This tool processes your configuration on the server to output the CSS string. The generated code is escaped and not executed. All submitted jobs and results expire after 15 minutes, so ensure you save any code you intend to use.

Specific example

x: 10, y: 10, blur: 5, spread: 0, color: #00000033, inset: Outer

box-shadow: 10px 10px 5px 0px #00000033;

Frequently asked questions

Can I use color formats other than hex?

The tool accepts standard CSS color strings. Ensure your input is a valid CSS color format.

Does this tool render the shadow visually?

No, this tool provides the CSS declaration text only. You must apply this code to your own elements to see the visual effect.

Continue your workflow