CSS Gradient Generator

Build linear and radial gradients visually — add color stops, tweak the angle, and copy the CSS the moment it looks right.

🔒 100% private — nothing is uploaded

How the gradient generator works

Everything renders live in your browser — pick colors, drag the angle, and the CSS is written for you.

1

Choose a type

Switch between a linear gradient with an adjustable angle or a radial gradient with a shape and origin.

2

Add color stops

Add as many stops as you like, set each color, and slide its position. Two stops minimum — the rest is up to you.

3

Copy or download

Grab the ready-to-paste background declaration, or export a PNG of the gradient for mockups.

About CSS gradients

A linear gradient blends colors along a straight line. The angle sets the direction: 0deg points straight up, 90deg points to the right, and the values increase clockwise. A radial gradient blends outward from a center point, shaped as a circle or an ellipse.

Each color stop is a color plus an optional position from 0% to 100%. The browser smoothly interpolates between them. Because a gradient is just a value for the CSS background property, you can drop the generated code straight into a stylesheet, an inline style attribute, or a component.

🔒

Private by design. Every color and preview is computed right here in your browser. Nothing you build is ever uploaded, saved, or sent anywhere.

Frequently Asked Questions

What's the difference between linear and radial gradients?
A linear gradient blends colors along a straight line at whatever angle you set. A radial gradient blends outward from a center point as a circle or ellipse. You can switch between the two with one click.
How many color stops can I add?
You can use anywhere from two up to ten color stops. Each stop has its own color and a position from 0% to 100%, and the preview updates live as you add, move or remove them.
How do I use the generated code?
Copy the background value and paste it straight into your stylesheet, an inline style attribute, or a component. It's a standard CSS value that works anywhere a background does.
Can I download the gradient as an image?
Yes. Click Download PNG to export the gradient as an image, which is handy for mockups, slides or backgrounds where you can't use CSS directly.
What do the angle presets and randomize buttons do?
The angle chips jump to common directions like up, down, left and right. Randomize shuffles the colors (and angle) for quick inspiration, and Reverse flips the order of your stops.
Is my data uploaded anywhere?
No. Every color and preview is computed right here in your browser. Nothing you build is ever uploaded, saved, or sent anywhere.