CSS gradient generator

Processed in this browser

Text limit: 2000000 characters

This tool never uploads your input.

Build a linear or radial gradient and copy the `background-image` CSS in this tab. Box shadows and unit conversion are sibling tools, not this URL.

A hero needs a gradient and you want the CSS, not a Figma file. That is this page.

Box shadow generator is shadows. Color palette generator is swatches. Contrast checker if text sits on the gradient — sample the actual pixels.

How to use it

  1. Pick linear or radial. Add stops.
  2. Copy the CSS. Fence it in docs:
.hero { background-image: linear-gradient(135deg, #222, #666); }
  1. Test in dark mode; pretty gradients still fail contrast.

Honest limits

  • Not mesh-gradient art.
  • Not a brand kit.
  • Older IE syntax is not the pitch.

This is a local CSS helper, not a design suite.

FAQ

Can I export PNG?

This emits CSS. Screenshot or use a design tool if you need a raster.

Box shadow?

Box shadow generator.

px vs rem?

CSS unit converter — not this page.

Is this Tailwind?

We copy CSS. You can rewrite it as Tailwind utilities yourself.

Is the CSS uploaded?

No.

Related tools