Initializing, please wait a moment

Drag the sliders to shape the shadow, pick a color, and the CSS box-shadow declaration updates live in the box below - no upload, nothing leaves your browser.

  1. Set the horizontal and vertical offset to move the shadow left/right and up/down.
  2. Set blur radius to soften the edge and spread radius to grow or shrink the shadow shape.
  3. Pick a shadow color and opacity, then check "Inset" for an inner shadow instead of a drop shadow.
  4. Copy the generated CSS line straight into your stylesheet.

CSS Box-Shadow Generator


The CSS Box-Shadow Generator turns slider positions into a ready-to-paste box-shadow line: set the horizontal and vertical offset, blur radius, spread radius, shadow color and opacity, and an inset toggle, then copy the result.

Every change updates the preview swatch and the generated CSS text instantly - there is no separate "Generate" click and nothing is uploaded, since the whole calculation runs in your browser.

Use this tool when you want a drop shadow or an inner (inset) shadow on a card, button, or panel. It is not for building a color gradient background - the CSS Gradient Generator covers multi-color animated gradients with vendor-prefix fallbacks; the two tools produce different CSS properties for different visual effects.

Negative offset values push the shadow left or up; positive values push it right or down. A larger blur radius softens the edge into a glow, while spread radius grows or shrinks the shadow shape independently of the box itself. Checking Inset flips the shadow to render inside the element's border instead of behind it - useful for a pressed-button or recessed-panel look.

← Back to Developer Tools

Related tools:

  • MD5 converter - Free online MD5 hash generator and MD5-to-text reverse lookup.
  • Convert PDF to TEXT online - Extract text from PDF online for copying and editing.
  • Text To HTML Editor - Text to HTML editor online - write in a WYSIWYG view and watch the generated HTML update live, with
  • CSS Gradient Animator Generator - CSS gradient generator - build animated linear gradients with live preview; copy ready-to-paste CSS
  • CSS Minifier - Minify CSS online for faster page loads.
  • CSS UnMinifier - CSS unminifier online - beautify minified CSS with proper indentation, line breaks, and readable
  • JavaScript Minifier - JavaScript minifier online free - paste your JS, click Minify, and copy the compressed code.
  • JSON Parser By Tree View - Paste JSON to validate, format, and view it in a tree.
  • JavaScript UnMinifier - JavaScript unminifier online - reformat minified JS with indentation and line breaks for
  • Keyboard Test - Keyboard test online - press each key to highlight it, spot non-working keys, and verify Num Lock,
  • Text Diff - Text diff online - compare two text blocks and highlight added, removed, and changed characters,
  • Developer Tools - Developer tools to parse JSON, minify or unminify CSS/JS, compare text, and generate MD5 hashes.

Tags: #developer

Related guides:

Loading reviews...

Frequently Asked Questions

What does the CSS Box-Shadow Generator do?

It builds a single box-shadow CSS declaration from six controls - horizontal offset, vertical offset, blur radius, spread radius, shadow color with opacity, and an inset toggle - and shows a live preview swatch plus the copyable CSS text as you adjust each slider.

How is this different from the CSS Gradient Generator?

The Box-Shadow Generator produces a box-shadow line for drop or inset shadows on elements like cards and buttons. The CSS Gradient Generator produces a background gradient with animation keyframes for multi-color backgrounds - a different CSS property for a different visual effect.

What does the "Inset" checkbox do?

Checking Inset switches the shadow from a drop shadow (rendered outside the element, behind it) to an inner shadow (rendered inside the element's border) - useful for a pressed-button or recessed-panel look.

Does anything get uploaded when I use this tool?

No. The offset, blur, spread, color, and opacity values are read directly from the sliders in your browser and the CSS text is generated locally - nothing is sent to a server.