Gradient Generator

Gradient Generator designs a linear or radial CSS gradient from two or more colors, letting you drag the angle and color stops, then copy the ready CSS. The preview updates live.

background: linear-gradient(90deg, #3366cc, #ff6b6b);

How it works

  1. 1Choose the gradient type: linear (linear-gradient) or radial (radial-gradient).
  2. 2Add at least two color stops; set each stop's color and position (%).
  3. 3For a linear gradient, set the angle by dragging or entering degrees.
  4. 4Copy the generated `background: linear-gradient(...)` CSS code.

Frequently asked questions

How many color stops can I add?+

There's no limit; add as many stops as you like and set each one's color and % position independently, useful for multi-color transitions.

Can I change the center of a radial gradient?+

Yes, you can set the center point (like `at top left`) and shape (circle/ellipse); the result updates instantly in the preview.

Will the generated CSS work in all browsers?+

Yes, `linear-gradient`/`radial-gradient` are supported in all modern browsers, no vendor prefix needed.

Can I also download the gradient as an image?+

Copy the CSS and apply it to any element, or use the option to export it as a PNG background.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/color/gradient-generator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Gradient Generator · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Color and Design Guide →

Command Palette

Search for a command to run…