CSS Gradient Generator — Create Linear & Radial Gradients Online
Generate beautiful CSS gradients with live preview. Pick colors, choose linear or radial, adjust angles, and copy the CSS code instantly. 100% free, no sign-up.
background: linear-gradient(90deg, #ff0000, #0000ff);
What do you want to do next?
Free CSS Gradient Generator Online
OptiDrop's CSS Gradient Generator lets you create beautiful gradients for your website without any coding knowledge. Choose between linear and radial gradients, add multiple color stops, adjust the angle, and see the result in real time. When you are satisfied, copy the CSS code with a single click.
How to Use the Gradient Generator
Select a gradient type (linear or radial), pick your colors using the color pickers, and adjust the angle slider for linear gradients. You can add as many color stops as you want. The live preview updates instantly as you make changes. Click the "Copy" button to copy the generated CSS code to your clipboard.
Linear vs Radial Gradients
Linear gradients create a straight-line transition between colors, controlled by an angle. They are perfect for backgrounds, headers, and buttons. Radial gradients create circular transitions from a center point, ideal for spotlight effects and card backgrounds. Both types are fully supported by all modern browsers.
Frequently Asked Questions
Last updated: June 2026