Skip to content

Gradient Generator

Build CSS linear and radial gradients visually and copy the code.

Colour stops

Quick Tool Overview

The Gradient Generator builds CSS linear and radial gradients visually and gives you the code. The preview fills a large area so you see the gradient the way it will actually look as a page or hero background, rather than in a thumbnail.

What it does
Builds CSS gradients visually and outputs the code
You give it
Colour stops, a gradient type and an angle
You get back
A ready-to-paste CSS background-image declaration
Best for
Hero sections, buttons, cards and page backgrounds
Color Tools Free, unlimited use No sign-up Runs in your browser

About the Gradient Generator

Pick your colours, drag the angle, and copy the CSS. The preview fills a large area so you see the gradient the way it will actually appear as a page or hero background, rather than in a thumbnail.

Both linear and radial gradients are supported, with control over the angle and as many colour stops as you need. A randomise button is there for when you want a starting point rather than a blank canvas. The generated CSS is a single standard background-image declaration — no vendor prefixes, because no browser in use still needs them.

Key features of the Gradient Generator

Linear and radial

Both gradient types are supported, with full control over the angle for linear gradients.

As many colour stops as you need

Add stops beyond the usual two when a gradient needs a midpoint to look right.

Full-size preview

The gradient is previewed across a large area, which is the only way to judge how it will read as a background.

Randomise for a starting point

One click generates a fresh combination when you want somewhere to begin rather than a blank canvas.

Clean, modern CSS

The output is a single standard background-image declaration with no vendor prefixes, because no browser in use still needs them.

How to use the Gradient Generator

  1. 1

    Choose your colours

    Set the start and end colours, and add extra stops if you want more transition points.

  2. 2

    Set the type and angle

    Switch between linear and radial, and drag the angle control to aim the gradient.

  3. 3

    Copy the CSS

    The declaration updates live. Copy it into your stylesheet.

Frequently asked questions

The angle points in the direction the gradient travels toward. 0deg runs bottom to top, 90deg runs left to right, and 180deg runs top to bottom.

Reviews of the Gradient Generator

What people who use the Gradient Generator think of it. Reviews come from visitors and are posted as written.

No ratings yet

Yours would be the first.

  • 5 0 reviews rated 5 stars
  • 4 0 reviews rated 4 stars
  • 3 0 reviews rated 3 stars
  • 2 0 reviews rated 2 stars
  • 1 0 reviews rated 1 star

Write a review

Used this tool? Your rating helps the next person decide.

Your rating

Plain text only — links, email addresses and HTML are not accepted. Your name and review are shown publicly; nothing else is collected. See the privacy policy.

0 reviews

Newest first

No reviews yet

Be the first to rate the Gradient Generator. It takes half a minute and no account.

Write the first review

More color tools