Free CSS Gradient Generator

Free CSS gradient generator with draggable colour stops, angle control and ready presets. Build linear, radial and conic gradients and copy the CSS instantly.

  • No upload, 100% private
  • Instant, in your browser
  • 100% free, no signup
Loading tool…
Read the complete guideHow to Create CSS Gradient Backgrounds (Linear, Radial and Conic) →

About the CSS Gradient Generator tool

Gradients add depth to buttons, hero sections and cards without loading a single image, but writing the CSS by hand means guessing angles and percentages and refreshing the page again and again. This CSS gradient generator gives you a visual editor instead. You drag colour stops along a bar, turn the angle and watch a large live preview change as you work.

It supports all three native CSS gradient types. Linear gradients blend along a straight line at any angle. Radial gradients spread out from a centre point as a circle or an ellipse. Conic gradients sweep around a point like a colour wheel or pie chart. You can add as many stops as you like, set the opacity of each one for see-through effects over a background, and switch on the repeating variant for stripes and patterns.

Not sure where to start? Choose from ready presets such as Sunset, Ocean, Tricolour or Rainbow wheel, or press Random for inspiration. The generated code includes a solid fallback colour for very old browsers, and a copy button puts it straight on your clipboard. Everything runs in your browser.

How to use CSS Gradient Generator

  1. Choose Linear, Radial or Conic at the top, and tick “Repeating gradient” if you want a repeating pattern.
  2. Set the angle with the slider or quick buttons. For radial and conic, choose the shape and centre position.
  3. Drag the round handles under the colour bar to move stops, click the bar to add a stop, and use “Remove” to delete the selected one.
  4. Change the selected stop’s colour, position and opacity, or click a preset to start from a ready design.
  5. Check the live preview, then click “Copy” under CSS code and paste it into your stylesheet.

Features

Linear, radial and conic

Build every native CSS gradient type, including repeating versions for stripes.

Draggable colour stops

Move, add and remove stops directly on a gradient bar, with keyboard arrow support too.

Per-stop opacity

Fade colours to transparent for overlays on photos and glass-style effects.

Presets and random

Twelve hand-picked gradients plus a random button to spark ideas.

Clean, copy-ready CSS

Outputs a background declaration with a solid fallback colour for older browsers.

When to use it

  • Design a hero section background for a landing page without exporting images.
  • Create a gradient button or call-to-action that matches your brand colours.
  • Add a dark-to-transparent overlay on top of a photo so white text stays readable.
  • Make a conic colour wheel, pie chart or loading spinner purely in CSS.
  • Generate subtle card backgrounds for a dashboard or portfolio.

Frequently asked questions

Do CSS gradients work in all browsers?

Linear and radial gradients work in every modern browser. Conic gradients are supported in current Chrome, Edge, Firefox and Safari. The generated code includes a solid colour fallback for anything older.

What does the angle mean in a linear gradient?

0deg points upwards, 90deg to the right, 180deg downwards and 270deg to the left. The gradient runs from its first stop towards that direction.

How do I make a transparent gradient?

Select a stop and lower its Opacity slider. The CSS will use an rgba() colour for that stop, so whatever sits behind the element shows through.

Can I use gradients as text colour?

Yes. Apply the generated background to the text element, then add background-clip: text and color: transparent in your CSS.

Are gradients better than background images?

For simple colour blends, yes. They add no HTTP requests, scale to any size without blurring and are easy to tweak later in code.

How do I make a gradient fill the whole page?

Apply the CSS to the body element and add min-height: 100vh. If the page scrolls, add background-attachment: fixed so the gradient does not repeat in bands as you scroll down.

Related tools