Free CSS Gradient Generator
Create beautiful linear, radial and conic CSS gradients. Customize colors, angle and position. Copy CSS code instantly. Free, with no sign-up required — everything happens right in your browser, so nothing you enter is sent to a server.
💻 CSS Gradient Generator
How the CSS Gradient Generator Works
Choose a gradient type, linear, radial or conic, pick two or more colour stops and adjust the settings: the angle for a linear gradient, the shape for a radial one. The preview updates as you change values, and the CSS code beneath it is generated to match. Press Add Color Stop for more colours and Copy CSS to take the code.
A CSS gradient is a generated image that the browser draws, so it needs no file and scales to any size. Linear gradients blend colours along a straight line at an angle, radial gradients spread outward from a centre point as a circle or an ellipse, and conic gradients sweep around a centre like a colour wheel. Apply the code with the background or background-image property. Gradients that run between two very different colours can look muddy in the middle, so adding a third stop can improve the blend.
Practical Use Cases
- Create a hero-section or button background without an image file.
- Build a smooth multi-colour background for a card, banner or app screen.
- Experiment with angles and colour stops before writing the CSS by hand.
- Make a conic gradient for a pie-chart style effect or a colour wheel.
Tips for Best Results
- Add a middle stop when blending two very different colours. A direct blend can look muddy, and a third colour in between often gives a cleaner result.
- Use gradients with enough contrast for text placed over them. Check the lightest and darkest parts of the background against your text colour.
- Use a conic gradient with hard stops for pie-chart style graphics, and a radial one with a transparent end colour for soft highlights.