Skip to content
DeveloperPK

CSS Gradient Generator

Design linear and radial gradients and copy the CSS.

Colour stops

0%
100%

Presets

How to use the CSS Gradient Generator

  1. 1

    Choose a gradient type: linear, radial or conic.

  2. 2

    Pick colours and drag each stop to set where it sits, or start from a preset.

  3. 3

    For linear and conic gradients, set the angle with the slider.

  4. 4

    Copy the CSS and paste it into your stylesheet.

About this tool

CSS gradients draw smooth colour transitions without any image file, so they load instantly and stay sharp at every screen size. They are used for hero backgrounds, buttons, cards and overlays.

A linear gradient runs in a straight line at the angle you choose, a radial gradient spreads out from the centre, and a conic gradient sweeps around a point like a colour wheel.

The generated code includes a solid colour fallback line first, for the rare browser that cannot draw gradients.

Frequently Asked Questions

Do CSS gradients work in all browsers?

Linear and radial gradients work in every modern browser. Conic gradients work in all current browsers too.

How do I add a gradient to text?

Set the gradient as the background, then add background-clip: text and color: transparent to the element.

Can I use more than two colours?

Yes. Add up to eight colour stops and position each one along the gradient.

Related Developer tools

  • Developer

    JWT Decoder

    Read the header and payload of a JSON Web Token and check its expiry.

    Use tool
  • Developer

    Regex Tester

    Test regular expressions with highlighted matches and capture groups.

    Use tool