CSS gradients are one of the most visually impactful tools in web design — but writing gradient syntax by hand is slow and unintuitive. Our free CSS Gradient Generator lets you build beautiful linear, radial, and conic gradients with a visual editor, live preview, and instant CSS code copy. No more guessing hex codes or direction angles.
Types of CSS Gradients
- Linear Gradient — Transitions between colours along a straight line at any angle. The most commonly used type for backgrounds, buttons, and hero sections. Syntax: linear-gradient(135deg, #color1, #color2)
- Radial Gradient — Radiates outward from a centre point in an elliptical or circular pattern. Great for spotlight effects, glassmorphism, and soft backgrounds.
- Conic Gradient — Rotates colours around a centre point like a colour wheel. Used for pie charts, progress indicators, and creative backgrounds.
How to Use the Gradient Generator
- Open the CSS Gradient Generator
- Select gradient type: Linear, Radial, or Conic
- Set the angle or direction using the slider
- Click colour stops to change colours using the colour picker
- Add more colour stops for multi-colour gradients
- The live preview updates instantly
- Click Copy CSS to copy the complete CSS code
Multi-Stop Gradients
Real-world gradients rarely use just two colours. Our tool supports unlimited colour stops — each with its own colour and position percentage. This lets you create complex gradients like sunrise effects, aurora backgrounds, and brand-specific colour transitions. Click the plus button to add a stop, drag to adjust its position, and click the colour swatch to change its colour.
15 Ready-to-Use Preset Gradients
Not sure where to start? The Preset Gradients section shows 15 beautiful pre-built gradients that are ready to use. Click any preset to instantly load it into the editor — then customise as needed. Presets include popular combinations like purple-blue, pink-orange, ocean teal, warm sunset, and more.
Build Your Gradient Now
Open the free CSS Gradient Generator, pick your colours and type, and copy the CSS code to use in any website or app. No login, no installation required.