CSS box-shadow generator. Create custom box shadows with visual controls, multiple layers, and presets. Copy generated CSS with one click.
100% browser-based — your data never leaves your device
Create custom CSS box-shadow effects with a visual editor.
Use the sliders to control offset, blur, spread, and color for each shadow layer.
Click 'Add Layer' to create complex multi-layered shadows like floating or material effects.
Click preset buttons like Neubrutalism, Floating, or Material for quick styles.
Copy the generated box-shadow CSS value to use in your projects.
box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.15);Generate harmonious color palettes with monochromatic, analogous, complementary, triadic, and tetradic schemes.
Border Radius GeneratorGenerate CSS border-radius values with a visual preview. Create smooth corners and custom shapes for your elements.
Box Shadow GeneratorCreate custom CSS box-shadow effects with a visual editor.
CSS Gradient GeneratorCreate linear and radial CSS gradients with a visual editor.
CSS Unit ConverterConvert between CSS units: px, rem, em, pt, %, vw, vh, and more.
CSS Grid GeneratorCreate CSS grid layouts visually with customizable columns, rows, and gaps.
Flexbox GeneratorCreate flexbox layouts visually with alignment, direction, and wrapping controls.
Bezier GeneratorCreate and preview CSS cubic-bezier easing curves for animations and transitions.
A good shadow is several coordinated values, and stacking multiple layers multiplies the fiddliness. This generator keeps every layer visible and tunable:
Depth in an interface is communicated almost entirely through shadows: a card that floats, a modal that sits above the page, a button that responds to a hover. Designers adding elevation to UI cards and modals, developers creating glow effects for focus states and active elements, and teams building material-style interfaces with layered elevation will spend most of their time here.
The editor exposes the full vocabulary of box-shadow: offset X, offset Y, blur, spread, and color, all through sliders and a color picker. The multi-layer support is what lets you move past flat drop shadows into something closer to reality, combining a tight shadow close to the element with a wider, softer one farther away. Starting presets cover material, glow, inset, and soft shadows, and the inset toggle flips a shadow inside the border for that pressed or engraved look that suits form inputs and active button states.
A shadow style reveals a design language as clearly as a color does, and the components being designed are often part of an unreleased application. Uploading CSS experiments to a generator that stores them exposes the visual direction of a product that has not shipped.
This generator produces every shadow locally in your browser. The sliders, layers, and presets you manipulate generate CSS on your device alone, so interaction designs and pre-release interface states never leave your machine.
Use the sliders to set horizontal offset, vertical offset, blur radius, spread, and shadow color.
Click 'Add Layer' to stack multiple shadows for more complex effects like realistic depth.
Once satisfied, click the copy button to grab the box-shadow CSS property.
Practical examples to help you get the most out of Box Shadow Generator:
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24) Two-layer shadow creating a subtle card elevation effect.
box-shadow: 0 0 20px rgba(52,152,219,0.6) Creates a blue glow around the element — great for focus states or accent highlights.
Large blur radii (50px+) often wash out the shadow. For most UI elements, keep blur between 4-20px for a clean, professional look.
Multiple box-shadow layers can hurt rendering performance, especially during animations. Limit to 2-3 layers and avoid animating all properties simultaneously.
CSS box-shadow adds shadow effects to elements using offset, blur, spread, and color values.
box-shadow creates a rectangular shadow behind the element's bounding box, while CSS filter: drop-shadow() follows the element's outline including transparent parts.
Toggle the 'Inset' option to switch from an outer shadow to an inner shadow, which appears inside the element's border.
Adjust offset X, offset Y, blur, spread, and color with sliders and a color picker.
Stack multiple box-shadow layers for complex effects.
Start from common presets: material, glow, inset, and soft shadows.
Copy the generated box-shadow CSS with one click.
Box Shadow Generator is useful in a variety of scenarios across different workflows:
Adding depth and elevation to UI cards and modal windows
Creating glowing button effects and hover state animations
Designing material-style elevation with multiple shadow layers
Combine 2-3 shadows with different offsets and blurs for a natural, layered depth effect. A tight shadow close to the element and a wider, softer one farther away.
Inset shadows create a pressed or engraved effect, perfect for form inputs and active button states.
Explore more tools in the Design workspace:
Color Palette Generator
Generate harmonious color palettes with monochromatic, analogous, complementary, triadic, and tetradic schemes.
Border Radius Generator
Generate CSS border-radius values with a visual preview. Create smooth corners and custom shapes for your elements.
CSS Gradient Generator
Create linear and radial CSS gradients with a visual editor.
CSS Unit Converter
Convert between CSS units: px, rem, em, pt, %, vw, vh, and more.
CSS Grid Generator
Create CSS grid layouts visually with customizable columns, rows, and gaps.
Flexbox Generator
Create flexbox layouts visually with alignment, direction, and wrapping controls.