Unsupported input
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
header • up to 320x100 / 728x90
Generate CSS box-shadow code visually
Tune offsets, blur, spread, and opacity with a live component preview.
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
CSS (Cascading Style Sheets) controls how HTML documents look, handling layout, colors, typography, and responsive behavior on every modern website.
CSS Box Shadow Generator builds the `box-shadow` property visually, with sliders for X/Y offset, blur radius, spread, color, and inset toggle. Multiple shadows can be layered for realistic depth effects.
The output is standards-track CSS supported in every evergreen browser, including layered shadows and the modern space-separated color syntax.
Choose the settings or values required to create cSS Box Shadow from the tool.
Get generated cSS Box Shadow output that is ready to copy into your project or workflow.
The tool may reject input that does not match the expected content, structure, or file type.
Fix: Confirm the tool input requirements and paste the correct type of data.
Missing fields or partial content can block processing or produce weak results.
Fix: Provide the full required input before running the tool.
Sample or placeholder values can lead to output that looks valid but is not ready for real use.
Fix: Replace placeholders with your actual values before relying on the result.
Click 'Add shadow' to stack additional layers. Material Design typically combines a tight key shadow (2px blur) with a softer ambient shadow (8–16px blur) at lower opacity. The generator handles the comma-separated syntax automatically.
Blur softens the edge — a larger blur means a more diffuse shadow. Spread enlarges or shrinks the shadow uniformly before the blur is applied, so spread: 4 makes the shadow 4px larger in every direction. Most drop shadows use blur without spread; hard-edged shadows use spread without blur.
Inset shadows render inside the element rather than outside. Use them for pressed-button states, form input inner glows, or 'inset card' depth effects. The toggle in the UI switches the output between the two styles.
No. `box-shadow` has been unprefixed in every major browser since 2012, so adding -webkit- or -moz- prefixes would just bloat the stylesheet. The output is plain CSS ready for production.
Yes — that's usually the key to a realistic shadow. 100% black (#000) shadows look cartoonish; 10–30% alpha (rgba(0,0,0,0.15)) mimics ambient light much better. The color picker has a dedicated alpha slider.
`box-shadow` itself isn't GPU-accelerated — it re-paints on every frame it animates. If you're animating shadows, the CSS output includes a commented suggestion to use `transform: translateZ(0)` and switch to a `filter: drop-shadow()` alternative for better performance.
Continue the workflow with related tools for cSS Box Shadow, adjacent input and output steps, or other utilities in the same category. You can also browse the full CSS Tools category for more options.
Generate CSS button styles visually
Generate CSS gradient code visually
Generate CSS cubic-bezier timing functions visually
Generate CSS font properties
Generate glassmorphism CSS effects
Build CSS keyframe animations from practical presets with timing controls, live preview, and reusable class output.
Convert CSS to LESS preprocessor syntax
Convert CSS to SCSS preprocessor syntax
Convert px, rem, em, and percent with live font-size context for responsive CSS sizing
Generate responsive clamp() CSS for typography and spacing with viewport-based fluid sizing
Generate light and dark theme CSS variables for design systems with media-query or data-attribute theming output.
Convert LESS to plain CSS