Design the perfect box shadow visually: drag the sliders, layer multiple shadows, then copy clean, production-ready CSS. No signup, everything stays in your browser.
Presets
Shadow layers
Active layer
Shadow color
Preview box
Box color
Live preview
Generated CSS
Copied!
How it works
Shape the shadow: move the offset, blur, spread and opacity sliders. Check "Inset" for an inner shadow.
Layer shadows: add extra layers for richer, more realistic depth, then click a layer to edit or remove it.
Copy the CSS: hit "Copy CSS" and paste the snippet straight into your stylesheet.
Negative offsets push the shadow left or up; a negative spread shrinks the shadow tighter than the box.
Multiple shadows render front to back: the first layer in the list sits on top.
100% private — everything runs in your browser, nothing is uploaded.
Rate this tool
SPONSORED
About This Tool
CSS Box Shadow Generator – Free Online Tool
Getting a CSS box-shadow to look right usually means guessing numbers, refreshing the browser, and repeating. The CSS Box Shadow Generator from Trencada removes the guesswork: drag sliders to shape the shadow, stack up to 5 layers for rich depth, preview the result live — then copy clean, production-ready CSS straight into your stylesheet.
Whether you’re polishing a button, a card, or a full landing page, this free tool gives you designer-quality shadows in seconds — no signup required.
How to Use the CSS Box Shadow Generator
Start with a preset. Click Soft, Lifted, Glow, Inner, or Sharp to jump to a professionally tuned shadow — or begin from the default and shape it yourself.
Shape the active layer. Drag the sliders for horizontal offset, vertical offset, blur radius, spread radius, and opacity. Pick a shadow color, or tick Inset to turn it into an inner shadow.
Layer shadows. Click + Add shadow layer to stack up to 5 shadows for realistic depth. Click any layer to edit it, or remove layers you no longer need (the last layer can’t be deleted).
Style the preview. Change the box color and corner radius, then switch the preview background between Light, Dark, and Grid to check how the shadow looks in different contexts.
Copy the CSS. Hit Copy CSS to grab the ready-made .your-class rule and paste it into your stylesheet. Use Reset anytime to return to the defaults.
Key Features
Five one-click presets
Start from Soft, Lifted, Glow, Inner, or Sharp — each preset is a hand-tuned combination of offsets, blur, spread, and opacity.
Up to 5 stackable shadow layers
Combine multiple shadows for richer, more realistic depth. Layers render front to back, and you can edit, reorder context by clicking, or remove any layer except the last.
Inset (inner) shadows
Toggle the Inset checkbox on any layer to create inner shadows — perfect for pressed buttons and inset panels.
Precise sliders with live values
Fine-tune horizontal and vertical offset (−100px to 100px), blur radius (0–150px), spread radius (−50px to 100px), and opacity (0–100%) with instant numeric readouts.
Color pickers
Choose any shadow color and any preview-box color with native color pickers; opacity is converted to clean rgba() values automatically.
Live preview on three backgrounds
See your shadow update in real time on light, dark, and transparency-grid backgrounds, with adjustable box color and corner radius.
Production-ready CSS output
Get a tidy .your-class rule with the complete box-shadow value — one click copies it to your clipboard.
100% private and free
Everything runs in your browser: the tool makes no network requests and uploads nothing. Free to use, no signup needed.
Why Choose Trencada?
Trencada’s CSS Box Shadow Generator is 100% client-side: we checked the tool’s code and it contains no network requests, no external APIs, and no tracking — every slider move and preview renders on your own device, so nothing you design ever leaves your browser. It’s free, needs no account, and works smoothly on desktop and mobile. Trencada builds fast, private developer tools that respect your workflow — and your data.
Related CSS & Design Tools
Designing a full interface? These Trencada tools pair perfectly with the box shadow generator:
The box-shadow property adds shadow effects around an element’s frame. It can create outer shadows, inner (inset) shadows, and multiple stacked shadows, and is one of the most common ways to add depth to buttons, cards, and modals.
A box shadow is defined by its horizontal offset and vertical offset (where the shadow sits), blur radius (how soft it is), spread radius (how much it grows or shrinks), color, and the optional inset keyword for inner shadows. This generator controls each of them with a slider or picker.
Select the layer you want to edit and tick the Inset (inner shadow) checkbox. The generator adds the inset keyword to that layer’s CSS automatically. The Inner preset is a good starting point.
Yes. Click + Add shadow layer to stack up to 5 shadows. In CSS, multiple shadows are separated by commas and render front to back — the first layer in the list sits on top. The generator builds this comma-separated list for you.
Yes. The generator outputs standard CSS — box-shadow with pixel offsets, blur, spread, and rgba() colors — which is supported by all modern browsers without prefixes.
Yes. It’s completely free with no signup, and it runs 100% in your browser — the tool makes no network requests, so nothing you design is ever uploaded or stored anywhere.
LEGAL BATES STAMP6-Digit Prefix (CASE-000001)Bottom-right 32pt safe margin with zero text overlap
TRUE SANITIZATIONDestructive Raster RedactionPurges hidden Tj text streams, OCR layers & XMP data
PAGE NORMALIZATIONUS Letter 8.5x11 (612x792 pt)Centers receipt photos & A4 scans without stretching
Frequently Asked Technical & Privacy Questions
Are my confidential PDFs uploaded to a server when I merge, compress, or redact?
No. Merge, compress, and redact run 100% locally in your browser using WebAssembly, so your files never leave your computer. Most of our tools work this way. The exceptions are Excel to PDF and PowerPoint to PDF, which send your file to our server for conversion and delete it after processing.
Why is drawing a black rectangle over text in a PDF not real redaction?
A black shape drawn in a standard viewer only sits on an annotation layer above the text. Trencada destroys the underlying text tokens and rasterizes the redacted region permanently.
How do I add sequential 6-digit Bates numbering without paying for Adobe Acrobat Pro?
Open Trencada Bates Numbering PDF tool, enter your case prefix and starting number, choose 6-digit zero padding (000001), and stamp your discovery set locally.
Saved time with Trencada? All 450+ tools are 100% free with zero paywalls, zero signups, and zero cloud uploads.Rate Trencada on Trustpilot ★