Linear, radial and conic CSS gradients
- Free
- No sign-up
- No upload
- Works offline
Tool facts
- Price
- Free, no sign-up, no watermark
- Are files uploaded?
- No. Everything is processed in this browser, on your device.
- Offline use
- Works without a connection once this page has loaded
- Browser
- A recent Chrome, Edge, Firefox or Safari, on computer or phone.
Check it yourself: press F12, open the Network tab, then use the tool. No request carries your data.
About CSS Gradient Generator
CSS Gradient Generator builds a linear-gradient(), radial-gradient() or conic-gradient() background visually and gives you the CSS to paste into your stylesheet. Pick colors for as many stops as you need, drag each stop to a position between 0% and 100%, lower its opacity for fades and overlays, and the large preview updates instantly so you can judge the result at a real size before you copy it.
For linear gradients you set the angle in degrees; radial gradients can be a circle or an ellipse with a movable center, and conic gradients rotate around a center point from a start angle, which is handy for color wheels and pie-chart backgrounds. Turn on Repeating to tile the pattern for stripes and rings. The output includes a solid fallback color as the first line, and all modern browsers support these gradient functions without vendor prefixes.
CSS Gradient Generator runs entirely in your browser. Your data is processed on your device and is never uploaded to Qiyi or anyone else.
How to use CSS Gradient Generator
- Choose the gradient Type: Linear, Radial or Conic, or click one of the Presets to start from a ready-made gradient.
- Edit the Color stops: pick a color, set its Position and Opacity, and use Add stop or the × button to add or remove stops.
- Adjust the Angle, Shape or Center X / Center Y, and turn on Repeating if you want a tiled pattern.
- Check the Preview, then click Copy CSS and paste the background rule into your stylesheet.
Frequently asked questions
Which browsers support these CSS gradients?
linear-gradient() and radial-gradient() work in every current browser without prefixes. conic-gradient() is supported in Chrome, Edge, Safari 12.1+ and Firefox 83+. The generated code adds a plain background color first, so very old browsers still show a solid color.
How do I make a gradient fade to transparent?
Lower the Opacity of one stop. The tool then writes that stop as an rgba() color. Fading to a transparent version of the same color (for example black at 0%) avoids the grey band you can get with the keyword transparent.
What does the angle mean in a linear gradient?
0deg points to the top, 90deg to the right, 180deg to the bottom and 270deg to the left. The gradient line runs in that direction, from the first color stop to the last.
How do I create stripes?
Place two stops with different colors at the same position for a hard edge, then turn on Repeating so the pattern repeats. For example, colors at 0%, 10%, 10% and 20% give even stripes.
Can I use the gradient as a text color or border?
Yes. Use the same gradient value with background-clip: text and color: transparent for gradient text, or as border-image-source for a gradient border.