Converters & Dev

CSS Gradient Generator

Pick the colours, the type and the angle, and copy the CSS. Linear, radial and conic are all here, with up to five stops and a live preview.

Your gradient

Preview

The three kinds of gradient

Colour stops

Each stop is a colour and a position in per cent. Two stops give a straight blend; adding a third in the middle lets you steer the transition. Putting two stops at the same position creates a hard edge instead of a blend, which is how stripes are made.

How to use the generator

  1. Choose the type and set the angle for linear and conic gradients.
  2. Set the number of stops, then pick each colour and drag its position.
  3. Copy the CSS. The snippet includes a plain background colour as a fallback for very old browsers.

Using gradients well

Browser support

Linear and radial gradients work everywhere, including browsers ten years old. Conic gradients need a browser from 2020 or later, which now covers almost everyone — but keep a plain colour behind them if your audience uses old devices.

Frequently asked questions

How do I make a CSS gradient?

Set the type, the angle and the colour stops above, then copy the generated background property into your stylesheet. The preview shows exactly what the browser will paint.

What angle is a left-to-right gradient?

90deg. In CSS, 0deg points upwards and the angle turns clockwise, so 180deg goes top to bottom and 135deg runs from the top left corner.

Can I use a gradient as text colour?

Yes — put the gradient on the background and add background-clip: text with a transparent text colour. Keep a solid colour as a fallback, since the effect is unreadable if it does not apply.