CSS BOX SHADOW
Create and preview CSS box shadows with offset X/Y, blur, spread, color, opacity, and inset controls.
No saved shadows yet.
Frequently Asked Questions
How does the CSS Box Shadow Generator work?
Is the CSS Box Shadow Generator free to use?
What is the difference between outset and inset shadow?
Can I copy the shadow as Tailwind CSS?
Does this tool support multiple shadow layers?
What browser do I need?
Can I save my shadow settings?
How to Use
Adjust Shadow Controls
Use the X and Y sliders to position the shadow, blur to soften it, and spread to expand it.
Choose a Color
Pick a shadow color using the color picker and adjust opacity for subtle or dramatic effects.
Toggle Inset
Switch between outset (default) and inset shadow to create inner or outer depth effects.
Preview
Watch the live canvas preview update instantly as you adjust any control.
Export
Copy the CSS box-shadow value, or get a Tailwind-compatible hint for your project.
How to Calculate
The CSS Box Shadow Generator creates standard CSS box-shadow property values by combining the user's offset, blur, spread, color, and opacity inputs into a properly formatted CSS string. The preview is rendered using the Canvas 2D API to display the shadow in real-time against a configurable background.
About the CSS Box Shadow Generator
The CSS Box Shadow Generator is a free online tool for creating, previewing, and exporting CSS box shadows. Adjust offset X, offset Y, blur radius, spread radius, color, and opacity using intuitive sliders and a color picker. Toggle between outset and inset shadows, and preview the result on a live canvas.
Built with privacy in mind, all processing happens directly in your browser. No sign-up required, no data stored, no tracking. Simply open the tool, adjust your settings, and copy the ready-to-use CSS code.
Export as raw CSS or get a Tailwind-compatible hint. Choose from preset shadows to get started quickly. Perfect for frontend developers, UI designers, and anyone building web interfaces.