Box Shadow Generator
Move the sliders and the sample changes with them. Stack layers when one shadow is not enough — that is how the soft, believable depth of real interfaces is made.
Shadow
Layers
A text shadow has neither spread nor an inner mode — CSS does not accept them, and an extra value voids the whole declaration.
Presets
- Free
- Files never leave your device
- No sign-up
- No file limit
How to use
- Choose what you are shadowing: a block or text.
- Set the offset, blur and colour — the sample redraws instantly.
- Add a layer if you need depth: two or three faint shadows read better than one heavy one.
- Copy the CSS line under the controls.
Good to know
Why text shadow has fewer settings
The text-shadow property takes only offset, blur and colour. Spread and the inner mode belong to box-shadow alone, and one extra value makes the whole declaration invalid — the browser drops it silently and the shadow simply disappears. Switching to text mode hides those two controls instead of hoping they will be ignored.
Several faint layers beat one heavy one
A real shadow is not uniform: it is dense right under the object and dissolves as it moves away. One shadow with a big blur gives a grey halo, while two or three layers with different offsets and low opacity give the depth you see in well-made interfaces. The tool keeps every layer separate, and the copied line lists them in order.
Frequently asked questions
What does spread do?
It grows or shrinks the shadow before the blur is applied. A negative value pulls the shadow in, so it does not stick out on the sides — that is the trick behind the tidy shadows on cards, where the glow should stay under the block rather than around it.
How do I make an inner shadow?
Tick «Inner shadow» — the keyword inset appears at the start of the line and the shadow moves inside the block. It is used for pressed buttons and input fields, where the depth should read as a dent, not as a lift.
Why is my shadow invisible?
Most often the opacity is at zero, or the offset and blur are both zero, so the shadow hides exactly behind the block. It also disappears if the element has overflow: hidden on its parent and the shadow falls outside the visible area.
Will it work in every browser?
Yes. Both box-shadow and text-shadow have been standard for years and need no prefixes; the values this tool produces are plain CSS with no vendor extensions.
Related tools
- CSS Gradient Generator Drag the sliders and watch the panel above change with them. When it looks right, copy the line…
- Colour Palette Generator Pick a starting colour and the tool works out the rest of the set by the colour wheel. Click an…
- CSS Formatter Paste a stylesheet — even one that arrived as a single line — and read it again. Each declarati…
- CSS Minifier Paste a stylesheet and get it back compressed. The counter under the box shows the size before…
- Colour Converter Type a colour in any common notation — #1f5fd6, 1f5fd6, #1f5, rgb(31, 95, 214) — and all the ot…
- Password Generator A new password is generated the moment this page loads, using your browser's cryptographic rand…
- QR Code Generator Type a link or any text and the code appears as you type. Download it as a PNG for a screen or…
- UUID Generator Press the button and get identifiers you can paste straight into a database, a config or a test…