Gradient Generator

Builds a CSS gradient from a type, colour stops, and an angle, with a live preview. Fast, free, and built for simple browser-based workflows.

Instant
Processing
Private
Browser First
Free
No Signup

Gradient Generator

Used by radial gradients only.
Live Preview
Advertisement

728 x 90 In-Content Ad

About This Tool

Gradient Generator is a free online tool that builds a CSS gradient from a type, colour stops, and an angle, with a live preview as you adjust each control. Set your colours, copy the generated background property, and paste it straight into your stylesheet.

It is useful when you are designing a button, hero section, or card background and want to see the gradient update in real time instead of guessing angle and colour-stop percentages by hand. Switching between linear, radial, and conic gradients on the same colours also makes it easy to compare which style actually fits the layout before committing to one in code. Stops placed close together tighten the blend, and two colours given the same Stop % meet in a hard line -- an easy way to get a split or striped background. A CSS gradient also beats a background image for this job: there is no file to export or host, it stretches to any element size without blurring, and changing a colour later means editing one line instead of redrawing a picture.

Everything runs inside your browser, so the colours and layout you are experimenting with are never sent to a server. That is useful when you are prototyping an unreleased design and do not want draft brand colours or a client's palette showing up anywhere outside your own machine. Linear and radial gradients have worked in every major browser for over a decade; conic gradients are newer, but current versions of Chrome, Edge, Firefox, and Safari all support them. If your brand palette is written in RGB or HSL, the Color Converter tool gives you the matching HEX codes.

Linear, radial, and conic gradient types from the same colour stops
Angle slider from 0 to 360 degrees for linear and conic gradients
Circle or ellipse shape option for radial gradients
Two or three colour stops, each with its own position percentage
Live preview that updates instantly as you move any control
Copy the generated background CSS property with one click

How to Use Gradient Generator

1

Pick a gradient type

Choose Linear, Radial, or Conic from Gradient Type.

2

Set the angle or shape

Drag the Angle slider for linear or conic gradients, or pick a Radial Shape when using radial.

3

Choose your colours

Set Colour 1 and Colour 2 with their Stop %, and tick Add a third colour for a three-stop gradient.

4

Copy the CSS

Watch the preview update live, then click Copy CSS to grab the background property. Reset restores the defaults.

Frequently Asked Questions

Is this tool completely free?

Yes! All our tools are 100% free to use with no hidden costs, no registration required, and no credit card needed.

Is my data safe and private?

Absolutely. All tools run entirely in your browser (client-side). Your data never leaves your device and is not sent to our servers.

Can I use this tool offline?

Yes, once the page is loaded, the tool will continue to work even if you lose internet connection since it runs in your browser.

Is there a character limit?

There is no strict character limit, but very large amounts of text (100,000+ characters) may slow down your browser.

Can I use this for commercial projects?

Yes! All our tools are free for both personal and commercial use.

What is the difference between linear, radial, and conic gradients?

A linear gradient moves in a straight line at the angle you set; a radial gradient spreads outward from a centre point in a circle or ellipse; a conic gradient sweeps colours around a centre point like a colour wheel. All three can use the same colour stops.

Why is the angle slider greyed out sometimes?

Angle only applies to linear and conic gradients -- a radial gradient has no directional angle, so the slider disables itself automatically when you switch to Radial and the Radial Shape option takes over instead.

Can I control exactly where each colour starts?

Yes. The Stop % field next to each colour sets its position along the gradient, from 0 to 100. If your stops are out of order, they are sorted automatically so the generated CSS is always valid.

How many colours can I use?

Two by default, or three if you tick "Add a third colour." That covers most CSS gradients; for more complex multi-stop gradients you would need to edit the generated CSS by hand.

What does the Copy CSS button actually copy?

A ready-to-use background declaration, such as background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);, that you can paste directly into a stylesheet or inline style.

Does Reset undo my colour choices?

Yes. Reset returns every control -- type, angle, shape, colours, and stops -- to its starting default and turns off the third colour if you had enabled it.