What do offset, blur and spread mean?
Offset moves the shadow horizontally and vertically, blur softens its edges, and spread makes it larger or smaller than the element.
Design CSS box shadows visually with a live preview and copy the code. Free online box-shadow generator for cards, buttons and images.
A good shadow makes cards, buttons and product images look clean and clickable, while a bad one makes a page look dated. Getting the offset, blur, spread and opacity right by trial and error in CSS takes time. DrToolLab's box shadow generator gives you sliders for each setting with a live preview, so you can see exactly how the shadow looks before copying the finished box-shadow CSS. Use soft, low-opacity shadows for modern card designs, slightly stronger ones for hover states, and inset shadows for pressed buttons or input fields. The code works in every modern browser and can be pasted straight into your stylesheet, a Shopify or WordPress theme, or any page builder that supports custom CSS. Everything runs locally in your browser with nothing to install and no signup. Combine it with the gradient generator and colour picker to style complete components quickly.
Enter your details or choose your settings.
The CSS Box Shadow Generator updates the result as you change them.
Copy, download or save the result.
Private by design. Everything is generated in your browser. What you enter is never sent to a server or stored.
Offset moves the shadow horizontally and vertically, blur softens its edges, and spread makes it larger or smaller than the element.
Use a small vertical offset, a medium blur and low opacity (around 10–20%) with a dark colour.
Normal shadows have negligible impact. Very large blurs on many animated elements can affect performance on slow devices.
Yes. Copy the generated box-shadow line and paste it into your CSS.