CSS Box Shadow Generator With Live Preview
Design a CSS box shadow with sliders, stack several shadows, try presets and copy the code.
box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.12); border-radius: 12px;
Design a CSS box shadow with sliders and see it on a live preview box. Set how far the shadow sits across and down, the blur, the spread, its shade and opacity, and tick Inset to put it inside the box. Stack up to six shadows for softer, more realistic depth, and start from presets: Soft, Subtle, Layered, Floating, Hard, Glow, Inner and Soft UI, the raised look also called neumorphism. Change the box and background shades and the corner radius to match your design. The CSS updates as you go, with each shadow on its own line, and copies with one click. Your settings are saved in this browser. For backgrounds, try the CSS Gradient Generator; for the frosted glass look, the Glassmorphism Generator.
Common use cases
- Cards, buttons and pop-ups that need depth
- Matching a shadow from a design mock-up
- Trying layered and inner shadows quickly
- Learning what each box-shadow value does
How to use
- Pick a preset or adjust the first shadow.
- Add more shadows to layer them.
- Set the box, background and corner radius.
- Copy the CSS.
FAQ
What do the box-shadow values mean?
In order: how far across (x) and down (y) the shadow sits, the blur radius, the spread (which grows or shrinks it), and the shade. Add inset at the start to draw it inside the box.
How do I make a shadow look natural?
Use a low opacity, a larger blur and a downward offset, or stack two or three shadows of increasing size. Pure black at full strength rarely looks right.
Can I have more than one shadow?
Yes. CSS accepts a list of shadows separated by commas, drawn with the first one on top. This tool stacks up to six.
Does box-shadow slow a page down?
A few shadows don't. Very large blurs on many elements, or shadows that animate, can make scrolling less smooth on slow phones.
Related tools
- CSS Gradient Generator: Linear, Radial, ConicFree CSS gradient generator: build linear, radial or conic gradients, add stops, start from a preset, then…
- Glassmorphism Generator: Frosted Glass CSSFree glassmorphism CSS generator: set the blur, tint, saturation, border and corners for a frosted glass…
- Chmod Calculator: Unix File PermissionsChmod calculator: tick read, write and execute to get 755-style numbers and rwxr-xr-x letters, or type one to…
- Unzip Files Online: Open a ZIP in Your BrowserUnzip files online without uploading them: open a .zip, see every file and folder, preview pictures and text…
- Zip Files Online: Make a ZIP File FreeZip files online for free: add files or a whole folder, keep the folder structure, choose how hard to…
- Regex Cheat SheetRegular expression syntax reference with a live tester: click any token to see what it matches.
- Color Palette GeneratorIn Generators