CSS Gradient Generator

LocalRuns in your browser; files and input stay on this deviceFreeFree to use

Design linear and radial CSS gradients visually. Add color stops, set the angle, and copy production-ready CSS — all in your browser.

Input
0%
100%
CSS code
background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
Runs in your browser; files and input stay on this device

About CSS gradients

CSS gradients render smooth transitions between two or more colors without a single image request, keeping pages fast and crisp at any resolution. This generator lets you build linear and radial gradients with unlimited color stops, adjust the angle and each stop position with live preview, and copy the exact background rule to drop into your stylesheet. Everything is computed in the browser.

How to use CSS Gradient Generator

  1. 1Choose a linear or radial gradient.
  2. 2Set the angle for a linear gradient, then add colors and position each stop.
  3. 3Check the live preview and copy the generated background rule.

Frequently asked questions

What is a color stop?
A stop assigns a color to a position along the gradient. The browser blends between consecutive stops.
What does the angle control?
For linear gradients, the angle sets the direction of the color transition. It does not apply to radial gradients.
Does a CSS gradient require an image file?
No. The copied CSS instructs the browser to render the gradient directly.