Gradient Generator
Design linear gradients with 2+ colour stops and an angle dial — live preview and clean, copy-ready CSS.
Reviewed 17 November 2026 · Free · No account needed
How to use
- Set the angle (0–360°).
- Add or remove colour stops and drag their positions.
- Copy the generated CSS.
Example
Input: 2 stops · 135°
Output: background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
How it works
A CSS gradient is built from the colour stops you add: each stop has a colour and a position, and the browser blends between them. The declaration is ready to copy.
The stops are sorted by position and emitted as linear-gradient(angle, colour position%, …): each stop is a hex colour with an integer percentage, and the browser interpolates between them. The result is a plain CSS declaration, ready to copy.
Two stops (#4f46e5 at 0%, #7c3aed at 100%) at 135° → background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
Edge cases to know
- At least two stops are required; a single-stop gradient is rejected.
- Linear gradients only — radial and conic are not offered.
- Stops are auto-sorted by position when rendered, however you enter them, and the angle is rounded to a whole degree.
Limits & compatibility
- Linear gradients only — radial and conic are not offered.
- Stops auto-sort by position when rendered.
- Output uses hex colours and integer percentages.
Privacy
All processing runs locally in your browser. Nothing is transmitted, logged or stored.
Related tools
Questions about Gradient Generator
What kinds of gradients can I build?
Linear gradients only — radial and conic gradients are not offered. You control the angle from 0 to 360 degrees, and the tool generates plain CSS you can paste into any stylesheet. It is a focused tool for one job rather than a full gradient studio, which keeps it quick.
How many colour stops can I add?
At least two — the CSS requires a start and an end — and more beyond that. Add or remove stops freely and drag them to new positions. When the gradient is rendered, stops are automatically sorted by position, so the output stays valid even if you place them out of order.
What does the generated CSS look like?
A single clean linear-gradient declaration using hex colours and integer percentages — for example: background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%). That is the entire output: no vendor prefixes, no variables, nothing to tidy up before pasting it into your own stylesheet.
Is any of my design data uploaded?
No. The gradient maths, the live preview and the CSS output are all produced locally in your browser. Nothing is transmitted, logged or stored, and there is no upload step anywhere in the workflow — the tool needs no network connection once the page has loaded.