CSS Gradient Generator

Linear, radial & conic gradients with live preview and copy-ready CSS.

Linear, radial & conic gradients with live preview and copy-ready CSS. Free and 100% private — runs entirely in your browser, nothing is ever uploaded.

About CSS Gradient Generator

The CSS Gradient Generator is a free, browser-based tool for building linear, radial, and conic CSS gradients visually and copying the ready-to-paste CSS. Add as many color stops as you like, set the angle, pick a preset, and watch a live preview update instantly. Use it whenever you need a hero background, button fill, or card backdrop without hand-writing gradient syntax. Everything runs 100% in your browser, so your colors and CSS are never uploaded to a server.

How to use CSS Gradient Generator

  1. Choose a gradient type at the top: Linear, Radial, or Conic. Or click a preset like Twilight, Sunset, Aurora, Ocean, or Spectrum to start from a ready-made look.
  2. For Linear and Conic gradients, drag the Angle slider (0 to 360 degrees) to set the direction or start angle. Radial gradients radiate from the center and ignore the angle.
  3. Edit each color stop with the color picker or by typing a hex value (#rgb or #rrggbb), then set its position from 0 to 100 percent.
  4. Click Add stop to add more colors, or the trash icon to remove one (a minimum of two stops is required). Invalid hex values are flagged and skipped in the output.
  5. Check the live preview to confirm the gradient looks right, then copy the generated CSS using the background or background-image copy button and paste it into your stylesheet.

Frequently asked questions

What types of CSS gradients can I create?
You can build linear, radial, and conic gradients. Linear gradients run along an angle you set, radial gradients radiate outward from the center, and conic gradients sweep colors around the center starting from a chosen angle. Switch between them with one click and the live preview updates instantly.
Can I use more than two colors in a gradient?
Yes. Start with the default two stops and click Add stop to insert more colors. Each stop has its own hex color and a position from 0 to 100 percent, so you can create smooth multi-color blends or banded looks. You can also remove stops, down to a minimum of two.
How do I copy the gradient into my project?
The tool outputs two ready-to-paste snippets: a background declaration and a background-image declaration. Each has its own copy button, so you can grab whichever fits your stylesheet and paste it directly. The angle, type, and stops are remembered in your browser between visits.
Why is my angle not changing the radial gradient?
Radial gradients radiate from the center outward, so the angle has no effect on them by design. The angle slider only applies to linear gradients (the direction of the blend) and conic gradients (the start angle of the sweep). Switch to Linear or Conic if you want angle control.
Is my data uploaded anywhere?
No. The CSS Gradient Generator runs entirely in your browser. Your colors, stops, and generated CSS never leave your device and nothing is sent to a server, which means it works offline and keeps your work private.