CSS Gradient Generator: Linear, Radial, Conic

Make linear, radial and conic CSS gradients with as many stops as you like, copy the CSS or download a PNG.

background: #ff7e5f;
background: linear-gradient(90deg, #ff7e5f 0%, #feb47b 100%);
90°
Stops
0%
100%

Build a CSS gradient and copy the code. Choose linear, radial or conic, set the angle or the middle point, and add as many stops as you like, each with its own shade and position; Reverse flips the order. Start from ten presets such as Sunset, Ocean, Night sky, Rainbow and a full hue wheel, and the large preview updates as you drag. The CSS has a solid background shade first as a fallback, then the gradient, ready to paste into your stylesheet: linear-gradient, radial-gradient or conic-gradient work in every current browser. You can also download the gradient as a 1920 × 1080 PNG for a wallpaper, slide or social post. Your last gradient is saved in this browser. For shadows and frosted glass, try the Box Shadow Generator and Glassmorphism Generator.

Common use cases

  • Backgrounds for websites, buttons and hero sections
  • Wallpapers, slides and social images
  • Trying shade combinations before writing CSS
  • Learning how CSS gradients work

How to use

  1. Pick a preset or a gradient type.
  2. Set the angle or middle point.
  3. Change, add or remove stops.
  4. Copy the CSS or download a PNG.

FAQ

What's the difference between linear, radial and conic gradients?

Linear blends along a straight line at an angle. Radial spreads out from a point as a circle or ellipse. Conic sweeps around a point like the hands of a clock, which is good for pie-chart effects and hue wheels.

Why is there a plain background line first?

Very old browsers that don't understand gradients use the first line instead. Every current browser reads the second line and shows the gradient.

What does the angle mean?

In CSS, 0deg points up and the angle turns clockwise, so 90deg runs left to right and 180deg top to bottom.

Can I use the gradient as a picture?

Yes. Download the 1920 × 1080 PNG and use it anywhere a picture works.