Home Color Tools Gradient Generator
🌈
Color Tool

Gradient Generator

Create beautiful CSS linear and radial gradients visually. Copy the CSS code instantly — no coding needed.

🔒 Private — runs in your browser ⚡ Live CSS preview 🎨 Linear & radial 📋 Copy-ready CSS
Generated CSS

                
Preset Gradients

📖How to Use the Gradient Generator

  1. 1
    Choose a gradient type

    Select Linear, Radial or Conic. For linear gradients, set the angle using the slider or preset direction buttons.

  2. 2
    Set your colour stops

    Pick a colour and position for each stop. Click + Add Stop to add more stops. Drag the position slider to control where each colour appears.

  3. 3
    Copy the CSS

    Click Copy CSS to copy the complete, production-ready CSS gradient code straight to your clipboard.

💡CSS Gradient Syntax Reference

FunctionUse Case
linear-gradient()Directional flow
radial-gradient()Centre outward
conic-gradient()Pie / wheel style
repeating-linear-gradient()Stripe patterns
repeating-radial-gradient()Bullseye rings

Frequently Asked Questions

What is a CSS gradient?

A CSS gradient is a smooth transition between two or more colours defined in CSS without needing an image. They are created using the linear-gradient() or radial-gradient() CSS functions.

What is the difference between linear and radial gradients?

A linear gradient transitions colours along a straight line at a given angle. A radial gradient transitions colours outward from a centre point in an elliptical or circular pattern.

Can I add more than two colour stops?

Yes — click the + Add Stop button to add as many colour stops as you need. Each stop can have its own colour and position (0%–100%) along the gradient.

Does the generated CSS work in all browsers?

Yes. The generated CSS uses the standard unprefixed syntax which is supported in all modern browsers (Chrome, Firefox, Safari, Edge). Vendor prefixes are no longer needed for production use.

How do I use a gradient as a text fill?

Apply the gradient to the background, then add -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; to clip the gradient to the text shape.

Is my data private?

Yes. All gradient generation happens in your browser using JavaScript. No data is ever sent to any server.