CSS Gradient Generator

Design linear and radial CSS gradients with multiple colour stops and a live preview.

Runs in your browser Free
Type
135°

Color stops

Processed locally in your browser.

Eye-catching backgrounds

Gradients add depth and energy to buttons, hero sections, cards and backgrounds in modern web design. The CSS Gradient Generator lets you design a gradient visually and copy the code in one click.

Features

  • Linear (linear-gradient) and radial (radial-gradient) gradients
  • Add as many colour stops as you like and drag their positions
  • Angle and direction control
  • Live preview

CSS instead of images

Gradients made in CSS rather than image files keep pages light, stay sharp at every screen size and update with a single change. The code works in every modern browser without prefixes.

How to use CSS Gradient Generator

  1. Choose the gradient type.
  2. Add colour stops and set their colours and positions.
  3. Set the angle and check the preview.
  4. Copy the CSS into your stylesheet.

Why use this tool?

Get production-ready, lightweight gradient code without opening a design tool.

FAQ

Do gradients work in every browser?

Yes. linear-gradient() and radial-gradient() are supported in all modern browsers without prefixes.

Can I apply a gradient to text?

Yes. Use the generated background with background-clip: text and color: transparent.

Can I use transparent colours?

Yes, add rgba or semi-transparent colour stops to create overlays on images.

Related tools