CSS Gradient Generator
Create multi-stop linear and radial gradients and copy the CSS code.
Gradient Builder
Linear0° points up, 90° points right. Negative values rotate counter-clockwise.
Used by the at keyword for radial and conic gradients.
Colour stops 2 stops
Preview & CSS Output
2 stopsLive preview — the CSS updates instantly as you change any control.
Generated CSS
Ready-made snippets
How to create a CSS gradient
Choose the gradient type
Pick linear for a straight sweep, radial for a spotlight or conic for a sweep around a centre point.
Set angle, shape and position
Use the angle slider for linear and conic gradients, then switch the radial shape between circle and ellipse and set the size and centre point.
Add and drag the colour stops
Add between two and six stops, pick each colour and drag the round handles on the gradient bar to place them exactly where you want.
Copy the CSS or export a PNG
Copy the plain gradient function, the background-image snippet, the background shorthand or the version with a fallback colour — or download a PNG of the gradient.
CSS gradient generator — frequently asked questions
The syntax is linear-gradient(angle, colour-stop, colour-stop). The angle comes first, then every colour stop as a colour followed by its position in percent. For example linear-gradient(90deg, #8b5cf6 0%, #22d3ee 100%) fades purple on the left into cyan on the right. Radial gradients swap the angle for a shape and size, and conic gradients use from 0deg plus an at position.
CSS technically allows any number of stops, but this builder keeps it to a manageable two to six. Each stop can sit at its own percentage, so you can build a smooth multi-colour blend or a hard two-tone edge by placing two stops at the same position.
A radial gradient radiates from a centre point outwards, like a spotlight, and is controlled by a shape (circle or ellipse), a size and a position. A conic gradient sweeps the colours around the centre point like a colour wheel, which makes it perfect for rainbow rings, spinner loaders and polar charts.
Yes. The “Copy as PNG” button renders the gradient to an HTML canvas at 1200 × 800 pixels and downloads it as a transparent-free PNG file. The image is generated locally in your browser, so nothing is uploaded and the download starts immediately.
Related Color & Design
Color Converter & Picker
Convert between HEX, RGB, HSL and CMYK with WCAG contrast ratio checks.
Open toolCSS Gradient Generator
Create multi-stop linear and radial gradients and copy the CSS code.
Open toolImage Palette Extractor
Extract the dominant colour palette and hex codes from any image.
Open tool