CSS box-shadow generator
Design CSS box-shadow values with live preview — offsets, blur, spread, opacity, and inset.
box-shadow: 0px 8px 24px -4px rgba(10, 10, 10, 0.18);Adjust the sliders to design the shadow — copy the CSS when it looks right.
About the CSS box-shadow generator
Handytool's box-shadow generator gives you sliders for offset, blur, spread, color, and opacity — and a live preview card that updates as you drag. Toggle inset shadows, dial in a color via the picker, and copy the resulting box-shadow CSS declaration straight into your stylesheet. The whole tool runs in your browser; nothing is uploaded.
CSS box-shadow generator features
- 01
Every parameter as a slider
Horizontal and vertical offsets, blur radius, spread radius, and opacity each have their own slider plus a numeric input — fine-tune by drag, then nudge by keyboard for pixel precision.
- 02
Inset shadows supported
Flip the inset toggle to switch from a drop shadow to an inner shadow — useful for pressed buttons, sunken inputs, and neumorphic surfaces.
- 03
Color + opacity, separately
Pick the base color in any hex value, then adjust opacity independently. The output uses rgba() so the color and alpha stay readable when you copy the CSS.
CSS box-shadow generator FAQ
- What does the spread value do?
- Positive spread enlarges the shadow in all directions before the blur is applied; negative spread shrinks it. It's useful for tight, defined glows when paired with a small blur.
- Can I add multiple shadows?
- This generator outputs a single shadow declaration. To layer shadows, copy the value, then paste it twice in your CSS separated by a comma — box-shadow accepts a comma-separated list.
- Why is my inset shadow invisible?
- Inset shadows draw inside the element, so they need a background color or padding to be visible. They also won't show on transparent or zero-sized elements.
- Is the preview pixel-accurate?
- Yes — the preview uses the actual CSS box-shadow property on a real element, so what you see is exactly what your stylesheet will render.
Related tools
Developer →- Live
Cubic-bezier editor
Visually design CSS cubic-bezier easing curves — drag the handles, preview the motion, and copy the CSS.
DeveloperFreeRuns locallyOpen - Live
CSS border-radius generator
Visually design CSS border-radius — uniform, per-corner, and elliptical — with live preview.
DeveloperFreeRuns locallyOpen - Live
CSS gradient generator
Build linear, radial, and conic CSS gradients — drag stops, pick colors, copy the CSS.
DeveloperFreeRuns locallyOpen
Explore other tools
All tools →- Live
PDF to JPG
Convert each page of a PDF into a sharp JPG, PNG, or WebP image right in your browser — no upload, no quality loss.
PDFFreeRuns locallyOpen - Live
Remove background
Erase the background of a photo using an in-browser AI model — no upload, your images stay on your device.
ImageFreeRuns locallyOpen - Live
Trim Video
Cut the start or end of a video with frame-level precision.
VideoFreeOpen - Live
Trim audio
Cut a section of an audio file.
AudioFreeRuns locallyOpen - Live
Markdown to HTML
Convert Markdown into clean HTML right in your browser.
DocumentFreeRuns locallyOpen