Gradient Generator

Design a gradient visually and copy the CSS.

Loading tool…

What the Gradient Generator does

Choose a gradient type, set the angle, and add as many color stops as you like. The preview updates live and the CSS is ready to copy, including a solid-color fallback line.

You can also download the gradient as a 1200 × 630 PNG image.

How to use it

  1. Pick the type and angle.
  2. Set the colors and positions of each stop.
  3. Copy the CSS or download the PNG.

Practical examples

  • A blue-to-purple hero background.
  • A conic gradient for a color wheel.

Features

  • Linear, radial and conic
  • Unlimited stops
  • CSS copy and PNG download

Limitations

  • The PNG export approximates CSS rendering, and conic gradients in PNG require browser support for canvas conic gradients.
  • Opacity stops are not included.

Privacy

This tool runs entirely in your browser. What you type is not sent to our servers and is discarded when you close or reload the page.

Frequently asked questions

How do I use the CSS?

Paste the two lines into a rule such as .hero { … }. The first line is a fallback for very old browsers.