TR

Home / Generate / CSS Box Shadow Generator

🔲 CSS Box Shadow Generator

CSS Box Shadow Generator – get instant, free results right on your device.

WhatsAppTelegramX

Large blur values on many elements can slightly affect page performance. Not an official institution.

Last updated: November 2026 · Parameter year: 2026 · Methods and sources: Methodology · Editorial policy

What is CSS Box Shadow Generator?

A shadow gives an element a sense of depth and separates components such as cards, buttons, and dropdown menus from the page. In CSS, the box-shadow property is used for this.

The property takes horizontal offset, vertical offset, blur, spread, and color values, in that order. The tool lets you enter these five values and the opacity, converts the color to rgba format, and optionally adds an inner shadow (inset). Soft, diffuse shadows (for example 0 4px 12px, 15-25% opacity) usually look more natural.

Very large blur values and many elements with shadows can slightly affect rendering performance on low-end devices. Using shadows in moderation is good for both design and performance.

How to use

Fill in these fields: Horizontal offset, Vertical offset, Blur, Spread, Color, Opacity, Inner shadow. Then press the button; the result appears on the same page and your data never leaves your device.

Formula

0 4px 12px 0 rgba(0,0,0,0.25)

Example

0 4px 12px 0 rgba(0,0,0,0.25)

Worked examples and tips

Example 1: With the default values, that is, horizontal 0, vertical 4, blur 12, spread 0, black color, and 25% opacity, the tool produces the line box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.25);. It is a reliable starting point for giving cards a slight feeling of elevation.

Example 2: For a softer and wider shadow, enter horizontal 2, vertical 8, blur 24, spread -4, color #1A2B3C, and opacity 18. The result is box-shadow: 2px 8px 24px -4px rgba(26, 43, 60, 0.18);. A negative spread pulls the shadow in from the edges of the box and leaves a noticeable glow only at the bottom.

Example 3: If you set the inset shadow option to Yes, inset is added to the start of the output. For horizontal 0, vertical 2, blur 6, black, and 30% opacity, the result is box-shadow: inset 0px 2px 6px 0px rgba(0, 0, 0, 0.3);. It is useful for a pressed button or input field look.

Tips and common mistakes: Shadows in real life are not black but a dark tone of the surface; using pure black at low opacity or choosing dark navy as the color looks more natural. The vertical offset should be larger than the horizontal, because light usually comes from above. Many large blurred shadows can slow down the page. If you leave the opacity too high, the card looks like a stuck-on stain.

Frequently asked questions

CSS Box Shadow Generator – how to use it?

Fill in the fields and press the button; the result appears instantly. Example: 0 4px 12px 0 rgba(0,0,0,0.25)

CSS Box Shadow Generator – is it free, and is my data stored?

Yes, it is free and requires no sign-up. Because processing happens in your browser, the information you enter is not sent to a server.

Related guide

Related tools

🔐Password GeneratorGenerate a secure, random password. The password is generated on your device and is not stored.🆔UUID GeneratorGenerate a random UUID v4.🎲Random Number GeneratorRandom Number Generator – get instant, free results right on your device.🎟️Random Picker / DrawRandom Picker / Draw – get instant, free results right on your device.▦QR Code GeneratorQR Code Generator – get instant, free results right on your device.📶Wi-Fi QR Code GeneratorWi-Fi QR Code Generator – get instant, free results right on your device.