NattangNattang
BestsellersMarketplaceHire MePortfolio

Code Tools

JSON Formatter

Format, validate and minify JSON data

Regex Tester

Test regular expressions in real-time

Code to Image

Beautiful code screenshots for sharing

Generators

CSS Generator

Box-shadow & gradient builder with live preview

README Generator

Build GitHub README files with ease

Freelance Calculator

Calculate hourly rate for freelancers

Image Tools

Gemini Watermark Remover

Remove Gemini & Nano Banana watermarks

Articles & Guides

Articles

Tutorials, tips & insights

Free Developer Tools

Boost your workflow with our collection of free, open-source developer utilities.

Code editor with a dark theme
A developer's workspace
Explore all tools
Sign In
  1. Home
  2. Tools
  3. CSS Box-Shadow & Gradient Generator

CSS Box-Shadow & Gradient Generator

Shape shadows and gradients with sliders, watch the preview, copy the CSS.

  • Free
  • No sign-up
  • Runs in your browser

Updated Oct 2026

Presets

Shadow Layers
X-Offset5px
Y-Offset5px
Blur Radius15px
Spread Radius0px
Shadow Opacity25%
#000000
#ffffff
#f0f0f0
Color Format
CSS
box-shadow: 5px 5px 15px 0px #00000040;

What is it?

A CSS generator lets you design a visual effect with controls and copy the code it produces. This one builds box-shadow with as many layers as you need, each with offset, blur, spread, opacity and inset, plus linear, radial or conic gradients with two or more color stops. It previews live, outputs HEX or RGBA, and runs in your browser.

How to use

  1. 1Choose the Box Shadow or Gradient tab.
  2. 2Start from a preset, or adjust the sliders and color pickers yourself.
  3. 3For shadows, add layers with + and select a layer to edit it; for gradients, set the type, angle and color stops.
  4. 4Pick HEX or RGBA under Color Format.
  5. 5Press Copy to put the CSS on your clipboard, or Reset to start over.

Frequently asked questions

Is anything I make sent to a server?

No. The preview and CSS are generated in your browser, and the tool makes no network requests. Copy uses your browser's clipboard directly.

How do I add multiple box shadows in CSS?

Separate each shadow with a comma in one box-shadow declaration. In this tool, press + next to Shadow Layers and the output combines every layer into one rule.

Which box-shadow layer appears on top?

The first shadow in the list is painted on top and later ones sit underneath. Layer 1 in this tool is written first, so it ends up on top.

What does inset do in box-shadow?

inset draws the shadow inside the element's border instead of outside, which suits pressed buttons and inner glows. The Inner Light preset is an example.

Can I get HSL color output?

Not yet. The Color Format toggle offers HEX and RGBA only. In HEX mode a shadow with opacity below 100% is written as 8-digit hex, such as #00000040.

How do I move the center of a radial gradient?

The tool outputs radial-gradient(circle, ...), which is centered. After copying, add a position such as radial-gradient(circle at top left, ...) to move it.

What is the difference between linear, radial and conic gradients?

Linear blends colors along a straight line at an angle, radial spreads them outward from a center point, and conic sweeps them around a center like a color wheel.

Features

Multi-layer box-shadow
Add as many shadow layers as you need and edit each one on its own; at least one layer always remains.
Shadow controls
X and Y offset from -50 to 50px, blur from 0 to 100px, spread from -50 to 50px, opacity from 0 to 100%, plus an inset switch.
Three gradient types
Linear with an angle from 0 to 360°, conic with a start angle, and radial as a centered circle.
Color stops
Add stops at the widest gap, set each position from 0 to 100%, remove down to two, or swap a two-stop gradient.
12 presets
6 shadows (Soft Lift, Material, Sharp Edge, Neon Glow, Inner Light, Double Layer) and 6 gradients (Sunset, Ocean, Purple Haze, Rainbow, Flamingo, Aurora).
Live preview
The preview updates as you drag; on the Box Shadow tab you can also change the box and background colors to test contrast.
HEX or RGBA output
Switch the color format of the generated CSS. In HEX mode a shadow with opacity below 100% is written as 8-digit #RRGGBBAA hex.

Related tools

  • README.md GeneratorAssemble a GitHub README from toggleable sections, badges, and a tech stack picker, with live markdown preview.
  • JSON Formatter & ValidatorFormat, validate, and minify JSON with auto-fix, tree view, key sorting, and file upload/download. Runs entirely in the browser.
  • Regex Tester & DebuggerTest JavaScript regular expressions in real time with match highlighting, capture groups, replace mode, and a plain-English pattern explanation.
NattangNattang

Beautifully crafted digital products and free tools. Built in Thailand, made for creators worldwide.

FAQ

How do I get my files? After purchase, download links are sent to your email instantly.

Can I get a refund? Due to the digital nature of our products, all sales are final.

Secure Payments

Visa
Mastercard
Stripe

All transactions are encrypted and secure.

© 2026 Nattang. All rights reserved.
AboutPrivacy PolicyCookie PolicyTerms of Service