CSS Box Shadow & Border Radius Generator
Design layered shadows and rounded corners with a live browser preview. Tune inset or outer shadows, borders and colors, then copy CSS in pixels or rem units.
Box & shadow layers
Corner radii (px)
Shadow layers · first is on top
Edit selected layer
Negative offsets move left/up; negative spread contracts the shadow. Blur cannot be negative. Browser CSS scales overlapping corner radii to fit the box.
See preview ↓Live box preview
Start with a preset.
Preview uses your pixel dimensions and scales down on narrow screens. Large outer shadows may clip at the preview boundary. Rem exports match these dimensions when your project’s root font-size equals the assumption above. Preview background/caption are not in the exported CSS.
Back to settings ↑CSS is generated locally. No processing upload or saved design history. Website ads and analytics follow our privacy information.
Using CSS Box Shadow & Border Radius Generator
Build a reusable box style with browser-rendered shadows and explicit corner controls.
- Choose a soft-card, glow, inset or hard-offset preset. Adjust dimensions, colors, border and four corners.
- Select each shadow layer to edit offsets, blur, spread, opacity and inset. Add, exclude or reorder up to eight layers; first is on top.
- Check the preview on a light/dark/checkered background, then copy/download CSS or a settings JSON record.
Example
Use Soft card for two subtle outer shadows, then adjust the corner radius. Use Inset surface for opposing light/dark inner shadows, or Purple glow for layered color lighting.
Questions & answers
How do multiple layers stack?
The first shadow in CSS is painted on top. Move earlier or later to control order, and exclude a layer temporarily without removing its settings. Up to eight layers are supported.
What is inset?
Inset shadows appear inside the box border, over the background and below its content. Outer shadows appear outside the box. Both follow its border radius.
What do offsets and spread mean?
Positive X/Y moves right/down; negative moves left/up. Positive spread expands a shadow and negative spread contracts it. Blur is nonnegative and softens the edge.
Can each corner be different?
Yes. Controls follow top-left, top-right, bottom-right, bottom-left order. Browser CSS proportionally reduces overlapping radii to fit; the entered values remain in the exported rule. Elliptical and percentage-radius syntax is not provided.
Why can a large shadow look clipped?
The preview is a bounded workspace. Large offsets, spread or blur can extend beyond it. The CSS retains your full values; test it in your project’s layout, especially where parent overflow may clip shadows.
How do rem exports work?
Pixel inputs are divided by your assumed root font-size. The preview uses pixel dimensions; the exported rem values match when your project root font-size equals that assumption. Values round to four decimal places.
Does the preview background export?
No. The surrounding background and preview caption are demonstration settings. CSS includes the box size, border, fill, text color, corner radii and enabled shadow layers.
Can I download an image?
This tool exports working CSS and settings JSON. It does not render a PNG; the live preview uses actual browser CSS so shadow behavior can be checked directly.
Is the design uploaded?
CSS generation runs locally with no processing upload or saved design history. Website ads and analytics follow the privacy information.
Help improve this tool
Report a problem or suggest an improvement
Describe the issue without pasting private tool input. Feedback goes to our admin inbox.
