CSS Gradient Generator
Build linear, radial, and conic CSS gradients visually, then copy the code. Free, no signup, no data sent to servers.
background: linear-gradient(90deg, #ff3d8f 0%, #7c3aed 100%);
Linear, radial, and conic gradients
All three accept the same list of color stops — only the direction the color travels changes.
What a color stop is
A color stop is a color plus a position (0-100%) along the gradient. Two stops is the minimum for any gradient; adding more lets you build multi-color transitions. The browser blends smoothly between each consecutive pair of stops.
Using the generated CSS
The output is a full background declaration — paste it directly into a CSS file or a style attribute. Gradients are valid anywhere a color or image value is accepted (background, border-image, mask), and render with no images or extra HTTP requests.
Frequently asked questions
Each new stop is placed 10 percentage points past the current furthest stop, capped at 100%. Once a stop is already at 100%, every stop you add after that also lands at exactly 100%, stacking several stops on top of each other at the same position instead of spreading out automatically.