ecsot
ToolsCategoriesBlogAboutContact
ecsot

Easy Conversions, Simple Online Tools

Useful things. Made simple.

A growing collection of simple, thoughtful online tools for everyday digital tasks.

© 2026 ecsot. All rights reserved.

Product

  • All Tools
  • Categories
  • Blog
  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Stay updated

New tools, useful updates and more.

Featured On
Launched on MarketingDBLaunched on MarketingDB

© 2026 ecsot. All rights reserved.

Made with ♡ for a simpler internet.

HomeToolsDesignCSS Box Shadow Generator

CSS Box Shadow Generator

Design modern, multi-layered realistic CSS box shadows with interactive blur, spread, and physics-based ambient diffusion. Features multi-layer stacking, inset inner shadows, neumorphic presets, and instant CSS and Tailwind export. 100% private in-browser.

FastInstant CSS generation
Private100% in-browser
Free to useFull multi-layer & physics support
Canvas Background:
Radius:16px
Elevation Preview

Accessible Card Component

Real-time rendering of physical light falloff, blur dispersion, and ambient occlusion.

Radius: 16px
View Details

Smooth Shadow Physics Engine

Generate 4 mathematically stacked layers using power-curve ambient diffusion.

Elevation LevelLevel 3
Light Source Angle90°
Shadow Tint
#000000

Shadow Layers (2)

Multi-layer stacking generates realistic, non-muddy ambient shadows.

Layer 1
Layer 2
Editing Layer Settings
Offset X0px
Offset Y10px
Blur Radius15px
Spread-3px
Shadow Color
Layer Opacity10%

Curated Shadow Presets

Professional multi-layer elevations used in top design systems and web apps.

Export Box Shadow Code

Production-ready CSS rule declarations, Tailwind arbitrary classes, and configuration snippets.

/* CSS Box Shadow generated via ECSOT */
.elevated-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -4px rgba(0, 0, 0, 0.1);
}

How the CSS Box Shadow Generator Works

Multi-layered CSS box-shadow generation following physical light diffusion models.

1

Stack Multiple Shadow Layers

Modern realistic shadows use 2 to 5 layered shadows. Add, duplicate, or customize individual layers with independent offsets.

2

Adjust Offsets, Blur & Spread

Fine-tune horizontal (X) and vertical (Y) shift, gaussian blur radius, and spread expansion to achieve optical elevation.

3

Simulate Real-World Physics

Use the smooth physics engine to automatically compute power-curve light falloff and ambient occlusion at any light angle.

4

Copy CSS or Tailwind Snippets

Instant one-click export for standard CSS, Tailwind CSS arbitrary values, and tailwind.config.js theme extension objects.

The Physics of Smooth Multi-Layered Box Shadows

In the physical world, light never casts a harsh, single-radius blur. Natural shadows consist of multiple components: a sharp, dark contact shadow right beneath the object (ambient occlusion), accompanied by a broad, faint, diffused penumbra cast into the surrounding room.

1. Contact Shadow

A tight, short-distance layer (e.g. 0 1px 3px rgba(0,0,0,0.12)) that firmly grounds the element to the surface and prevents floating blurriness.

2. Ambient Penumbra

A wider, soft diffusion layer (e.g. 0 12px 24px -4px rgba(0,0,0,0.08)) that creates optical elevation and depth without adding visual dirt or muddiness.

3. Negative Spread

Applying a negative spread radius (e.g. -4px) shrinks the shadow footprint, ensuring that the sides of elevated cards remain crisp and uncluttered.

Box Shadow Syntax Breakdown

box-shadow: [inset] offsetX offsetY blurRadius spreadRadius color;
  • offsetX / offsetY: Distance the shadow is shifted along the horizontal and vertical axes.
  • blurRadius: Gaussian blur dispersion distance (0px produces hard edges).
  • spreadRadius: Expands (positive) or contracts (negative) the shadow shape in all directions.
  • inset: Renders the shadow on the interior of the element rather than the exterior.

Explore More Design & Web Utilities

Explore complementary utilities designed to speed up your workflow.

View All Tools
design

CSS Gradient Generator

Craft modern linear, radial, and conic CSS gradients with multi-stop tracks and SVG export.

Open tool
design

WCAG Contrast Checker

Verify color contrast accessibility against WCAG 2.1 and 2.2 standards with real-time AA/AAA checks.

Open tool
design

Color Format Converter

Convert color codes seamlessly between HEX, RGB, HSL, HSV, CMYK, and modern CSS OKLCH.

Open tool