How do I create a box shadow?
Move the sliders and watch the preview box. Horizontal offset shifts the shadow left or right, vertical offset moves it up or down, blur softens its edges, and spread grows or shrinks it before blurring. Pick a shadow color, set its opacity, and choose outset for a normal drop shadow or inset for an inner one. The CSS box below the preview always holds the exact declaration, for example “box-shadow: 8px 8px 16px 0px rgba(0, 0, 0, 0.25);” for the defaults. Press Copy CSS and paste it into your stylesheet or a style attribute. The corner-radius slider changes only the preview shape, so you can judge the shadow on rounded cards.
What do the presets do?
Soft card is the gentle everyday shadow for cards and panels: 0px 4px 12px at 15 percent black. Lifted pushes the element higher off the page (0px 12px 24px -4px at 25 percent) and is the Sample button's choice, good for modals and floating menus. Hard offset removes blur entirely (6px 6px 0px at full opacity) for the flat, retro look used in brutalist and cartoon designs. Color glow centers a brand-blue halo (0px 0px 24px 2px, rgba(3, 189, 238, 0.6)) for buttons and highlights. Inset press draws the shadow inside the box, the classic pressed-button and input-field effect. Any slider move after a preset switches back to Custom.
How do I make a shadow look natural?
Real shadows are soft, offset mostly downward, and never pure black at full strength. Keep opacity between 10 and 30 percent, let blur be larger than the offset, and use a negative spread (like the Lifted preset's -4px) to keep the shadow from ballooning sideways. Tint the shadow with a dark version of the background or brand color instead of gray-black; colored shadows are what make modern interfaces feel designed rather than default. For depth systems, stack two shadows in your CSS (a tight dark one plus a wide soft one); generate each here, then join them with a comma in one box-shadow declaration.
Inset or outset: which one?
Outset (the default) casts the shadow outside the element, lifting it off the surface: cards, dropdowns, dialogs, floating buttons. Inset draws the shadow inside the element's border, making it look pressed in or hollow: text inputs, wells, pressed toggle states, and the inner shading of neumorphic designs. The CSS differs by one keyword at the front, “inset”, and the generator adds it for you. Note that inset shadows render above the background but below the content, so text stays readable; outset shadows can overlap neighboring elements, which is usually the point.
What are the limits?
The generator builds one shadow at a time; layered shadows are assembled by copying two generated values into one declaration separated by a comma. Offsets and spread range from -50 to 50 pixels and blur from 0 to 100, which covers interface design; print-scale or hero-section shadows may need larger numbers, editable after pasting. Colors are output as rgba() so opacity travels with the color; if you prefer hex with alpha, convert the rgba value with our color converter. The preview uses a white box on a light stage; very light shadows may look stronger on dark backgrounds, so check the final context.
Is it free and private?
Yes. The CSS box shadow generator is free, with no signup, no account and no limits. Everything runs in your browser; nothing you design is sent to a server, stored or logged. For developers, designers and anyone styling a web page, this page does the job in seconds.