Generators

CSS Gradient Generator

Design CSS gradients with a live preview and copy-ready code.

What is the CSS Gradient Generator?

Gradients blend two or more colors into a smooth transition, and they are everywhere in modern web design — hero sections, buttons, cards and backgrounds. This free CSS gradient generator lets you design linear and radial gradients visually with a live preview, then copies the exact CSS you need. No more guessing color-stop syntax or angle values.

How to use it

  1. Choose Linear for a directional blend or Radial for a glow spreading from the center.
  2. For linear gradients, drag the angle slider (0–360°) to set the direction.
  3. Adjust the two default color stops, or click + Add stop to use up to four colors.
  4. Drag each stop's position slider to control where colors blend.
  5. Watch the live preview update, then click Copy CSS to grab the code.

Key features

Real-world use cases

Practical tips

Frequently Asked Questions

What is the difference between linear and radial gradients?
Linear gradients blend colors along a straight line at an angle you choose. Radial gradients blend outward from a center point in a circle, which is great for glows and vignettes.
How many color stops can I use?
Between two and four. Two stops give a clean blend, while three or four let you build richer multi-color transitions. You can remove extra stops any time.
Will this CSS work in all browsers?
Yes. The standard linear-gradient and radial-gradient syntax is supported by all modern browsers, including Chrome, Firefox, Safari and Edge, with no prefixes needed.
What does the angle mean in a linear gradient?
The angle sets the direction of the blend: 0deg points upward, 90deg points right, 180deg points down and 270deg points left. 90deg is the classic left-to-right blend.
Can I use the gradient as a text color?
Yes — pair background: with -webkit-background-clip: text and transparent color in your own CSS. This tool gives you the gradient itself; text clipping is a one-line addition.