# CSS Box Shadow Generator

> Compose one or two layered CSS box shadows with offsets, blur, spread, color, alpha, and inset controls plus a live preview. Copy exact CSS.

[bfotkit](/) Runs in your browserCategories ▾[All tools 307](/en/tools/)[Text tools9](/en/tools/text-tools/)[Image tools27](/en/tools/image-tools/)[PDF tools20](/en/tools/pdf-tools/)[Social media tools97](/en/tools/social-media-tools/)[Security tools8](/en/tools/security-tools/)[Coding tools25](/en/tools/coding-tools/)[CSS tools12](/en/tools/css-tools/)[Color tools6](/en/tools/color-tools/)[Miscellaneous tools103](/en/tools/miscellaneous-tools/)

[All tools ↗](/en/tools/)[EN](/en/tools/css-box-shadow-generator/)[PT](/pt-br/ferramentas/gerador-box-shadow/)[DE](/de/werkzeuge/box-shadow-generator/)[ID](/id/alat/generator-box-shadow/)[RU](/ru/instrumenty/generator-box-shadow/)

CSS TOOLS · BFOTKIT

# CSS Box Shadow Generator | BFOTKit

Compose one or two layered box shadows with full control over offsets, blur, spread, color, and inset, and copy the exact CSS.

Preview

Layering a soft ambient shadow with a tight contact shadow is the standard recipe for realistic elevation.

CSSCopy CSSReset

Everything is computed and rendered locally in this browser tab. Nothing is sent to a server.

GUIDE

## How to design realistic shadows

### Understand the four numbers

Offset X and Y move the shadow; blur softens its edge; spread grows or shrinks it before blur. A shadow at 0 0 with blur and no spread is a glow around all sides.

### Layer two shadows for depth

Real objects cast a soft ambient shadow and a tight contact shadow where they touch the surface. Enable the second shadow with a small Y offset and low blur to ground the element, and keep the first one soft and diffuse.

### Shadows carry color, not just black

Neutral gray-black shadows look flat on colored backgrounds. Try a very dark version of the page background hue at low opacity for shadows that feel natural.

HELP / FAQ

## Box shadow questions

### What does inset do?

The inset keyword draws the shadow inside the element, which reads as a pressed state, an input well, or a subtle inner highlight. It stacks with normal shadows in one property.

### Why is my shadow invisible?

Usually the offsets and blur are zero, the spread is negative enough to shrink it to nothing, or the color matches the background. The live preview reflects exactly what the browser will draw.

### Do shadows affect layout?

No. Box shadows are painted without influencing layout, so they can overflow containers. If they get clipped, check for overflow: hidden on an ancestor.

### How many shadows can I use?

The property accepts a comma-separated list of any length, but each one costs paint time. Two or three well-chosen layers are usually indistinguishable from five.

EXPLORE BY CATEGORY · BFOTKIT

## More tools like this

Pick a category to see every tool in it — then open one and discover related tools.

[All tools 307](/en/tools/)[Text tools 9](/en/tools/text-tools/)[Image tools 27](/en/tools/image-tools/)[PDF tools 20](/en/tools/pdf-tools/)[Social media tools 97](/en/tools/social-media-tools/)[Security tools 8](/en/tools/security-tools/)[Coding tools 25](/en/tools/coding-tools/)[CSS tools 12](/en/tools/css-tools/)[Color tools 6](/en/tools/color-tools/)[Miscellaneous tools 103](/en/tools/miscellaneous-tools/)

[CSS toolsCSS Gradient Generator↗](/en/tools/css-gradient-generator/)[CSS toolsCSS Border Radius Generator↗](/en/tools/css-border-radius-generator/)[CSS toolsCSS Clip Path Generator↗](/en/tools/css-clip-path-generator/)[CSS toolsCSS Cubic Bezier Generator↗](/en/tools/css-cubic-bezier-generator/)[CSS toolsCSS Loader Generator↗](/en/tools/css-loader-generator/)[CSS toolsCSS Background Pattern Generator↗](/en/tools/css-background-pattern-generator/)[CSS toolsCSS Triangle Generator↗](/en/tools/css-triangle-generator/)[CSS toolsCSS Glassmorphism Generator↗](/en/tools/css-glassmorphism-generator/)

[Browse all tools →](/en/tools/)

[bfotkit](/)[All tools](/en/tools/)[Privacy Policy](/en/privacy-policy/)[Terms & Conditions](/en/terms-and-conditions/)[About Us](/en/about-us/)[Contact Us](/en/contact-us/)

Useful tools. No fuss. © 2026 BFOTKit[bfotkit.com ↗](https://bfotkit.com/)
