Websites from ₹4,999 · Apps from ₹24,999 · 100 free tools

Free tool · Design tools

CSS Box Shadow Generator

Build soft, layered or neumorphic shadows with this CSS box shadow generator. Adjust offset, blur, spread, colour and opacity on a live preview, then copy the CSS or a Tailwind class.

Presets

Layers

Everything runs in your browser. Nothing you type is sent anywhere, and it is cleared when you close this page.

Free · no sign-up · runs in your browser, nothing is uploaded

Need help fixing it?

Get a free website audit from our team

Our developers check your site's speed, SEO and mobile experience and send you a short list of fixes. No charge, no obligation.

  • Reply on WhatsApp or call, your choice
  • Websites from ₹4,999, apps from ₹24,999

Request free audit

We reply within a few working hours. No spam.

Shadows that make your design feel real

A good shadow lifts cards, buttons and pop-ups off the page and shows people what they can click. A bad one looks heavy and dated. This CSS box shadow generator lets you see the result as you move each slider, combine several shadow layers for a natural look, and copy code that works in every modern browser. It is handy for designers, developers and anyone editing a WordPress theme or landing page by hand.

How to use the CSS box shadow generator

  1. Start with a preset: soft card, subtle, elevated, neumorphism light or dark, glow, inner shadow or hard offset.
  2. Pick a layer and move the sliders: Move right and Move down shift the shadow, Blur softens it, Spread grows or shrinks it, and Opacity sets how dark it is.
  3. Change the shadow colour, or tick Inset for a shadow inside the box.
  4. Add up to six layers. Real shadows are a mix of a small sharp shadow and a large soft one.
  5. Set the preview background, box colour and corner radius to match your website.
  6. Copy the CSS, or copy the Tailwind class if your project uses Tailwind CSS.

Tips for natural shadows

  • Keep the opacity low, often between 5% and 20%. Strong black shadows look harsh.
  • Use a dark blue or grey instead of pure black. It blends better with most designs.
  • Light usually comes from above, so move shadows down more than sideways.
  • A negative spread keeps a large blur from spilling out at the sides.
  • For neumorphism, the box and the background must be the same colour. Use it carefully: the low contrast can make buttons hard to see for some people.
  • Bigger shadows suggest higher elements. Use small shadows for cards and larger ones for menus and dialogs.

About the Tailwind class

The Tailwind output uses an arbitrary value such as shadow-[0_10px_30px_-6px_rgba(15,23,42,0.18)], with spaces written as underscores. Arbitrary values work in Tailwind CSS version 3 and newer. If you also changed the corners, a matching rounded-[16px] class is added.

The generator runs in your browser. Nothing is uploaded or stored. For text and background colours that stay readable, see our colour contrast checker.

FAQ

CSS Box Shadow Generator: FAQs

What do blur and spread mean in box-shadow?

Blur controls how soft the edge of the shadow is: 0 gives a sharp edge. Spread makes the whole shadow bigger (positive values) or smaller (negative values) before it is blurred.

How do I add more than one shadow?

Press "Add layer". The CSS lists all layers separated by commas, and the first layer is drawn on top.

What is an inset shadow?

An inset shadow is drawn inside the box instead of outside, so the box looks pressed in. It is useful for input fields and pressed buttons.

Does the Tailwind class work in every Tailwind version?

The arbitrary value syntax works in Tailwind CSS v3 and newer. In older versions, add the CSS to your stylesheet instead.

More free tools

You might also like

Colour Contrast Checker

Check if your text and background colours are readable and meet WCAG accessibility guidelines (AA and AAA).

Design tools

Favicon Generator

Create a favicon set (ICO and PNG in all common sizes) from your logo or from text, with the HTML code to…

Design tools
New

Website Colour & Font Detector

Extract the colour palette and fonts of any website. Copy hex codes, see Google Fonts in use and get inspiration for your…

Design tools

See all free tools

Have a project in mind?

Tell us what you want to build. You get ideas, a timeline and a clear quote, free.

Chat on WhatsApp