CSS Box Shadow Generator
Design box shadows and copy the CSS code.
What Is a CSS Box Shadow Generator?
The CSS Box Shadow Generator is a free online tool for creating custom box-shadow effects without manually calculating CSS values. Adjust horizontal and vertical offsets, blur, spread, shadow color, opacity, and inset mode while viewing the result live. It is useful for designing cards, buttons, input fields, modals, navigation elements, panels, and other UI components that need depth or elevation. Once the shadow looks right, copy the generated CSS directly into your project.
How to Use This CSS Box Shadow Generator
- 1Set the X offsetMove the horizontal offset to control whether the shadow extends left or right.
- 2Set the Y offsetAdjust the vertical offset to move the shadow upward or downward.
- 3Adjust blur and spreadIncrease blur for a softer shadow and change spread to make the shadow larger or smaller.
- 4Choose color and opacitySelect a shadow color and control how visible it should be.
- 5Choose the shadow typeEnable Inset when you want the shadow to appear inside the element rather than outside it.
- 6Copy the CSSCopy the generated box-shadow declaration and paste it into your stylesheet.
Frequently Asked Questions
Related Color & Design Tools
Color Picker
Pick any color and get its HEX, RGB, and HSL values.
Color Palette Generator
Generate a harmonious color palette from a base color.
Random Color Generator
Generate random colors with HEX, RGB, and HSL values.
Gradient Generator
Create smooth two-color linear gradients instantly.
CSS Gradient Generator
Build linear or radial CSS gradients with color stops.
CSS Border Generator
Style borders with width, style, color, and radius.
More Color & Design Tools
CSS Border Radius Generator
Round element corners with live CSS output.
CSS Button Generator
Create styled buttons and copy the CSS code.
CSS Glassmorphism Generator
Make frosted glass style panels with backdrop blur.
CSS Neumorphism Generator
Generate soft UI neumorphism shadows with CSS.
CSS Text Shadow Generator
Add depth to text with custom text shadows.
Color Contrast Checker
Check the contrast ratio between two colors.

