CSS Gradient Generator โ€“ Linear, Radial & Conic

Design a CSS gradient with live preview โ€” pick colours, stops and angle, then copy the CSS or download it as an image.

Last updated:

CSS gradient generator

Gradients make buttons, banners and backgrounds look modern without heavy images. This CSS gradient generator lets you build linear, radial and conic gradients visually: choose up to six colours, drag each stop's position, set the angle, and the CSS code updates live, ready to paste into your stylesheet. Start from a preset โ€” including saffron-white-green and sunset tones โ€” or hit Random for ideas, and download the result as a PNG sized for a WhatsApp status, an Instagram post or a slide.

How to use it

  1. Pick the gradient type and angle.
  2. Set the colours and stop positions (add or remove colours).
  3. Copy the CSS or download the image.

Example

linear-gradient(135deg, #ff9933 0%, #ffffff 50%, #138808 100%) blends saffron to white to green diagonally. Find matching colours with the colour palette generator, convert codes with the colour converter, or add depth with thebox shadow generator.

Rate this tool

Frequently asked questions

What is a CSS gradient?
A smooth blend between two or more colours, drawn by the browser with no image file. linear-gradient blends along a straight line at an angle; radial-gradient blends outwards from a centre point; conic-gradient sweeps around a centre like a colour wheel.
How do I use the code?
Copy the CSS line and paste it into a rule, for example .hero { background: linear-gradient(โ€ฆ); }. It works in every modern browser without prefixes.
What are colour stops?
Each colour has a position from 0% to 100% along the gradient. Moving stops closer together makes a sharper transition; putting two stops at the same position makes a hard stripe.
Can I get the gradient as an image?
Yes โ€” download it as a PNG at a size you choose, handy for WhatsApp status backgrounds, slides or social posts.