All tools

CSS Gradient Generator

Build linear and radial CSS gradients with multiple color stops and angle control.

Browser onlyYour input is processed in this browser and is not sent to SpeedyTools servers.
Share:
Preview
background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);
Controls
%
%
About CSS gradients

A CSS gradient is an image the browser draws that blends between two or more colors. It can be linear, along a line, or radial, outward from a center point. Sites use gradients for backgrounds, buttons and other visual effects.

Because the browser draws them, gradients need no image files. You can layer them with other backgrounds or animate them with other CSS properties.

Features
Linear and radial gradient support
Multiple color stops with position control
Angle control for linear gradients
Live preview with CSS output
Preset gradients to start from
Copy CSS to clipboard
Common use cases

Web design

Background gradients for websites and landing pages

CSS development

CSS you can paste straight into a stylesheet

UI components

Gradient fills for buttons, cards and other elements

Brand assets

Reuse the same gradient across marketing materials

Frequently asked questions

How do I create a CSS gradient?

Pick a gradient type, then set the colors, stop positions and angle with the controls. The preview updates as you go. Copy the generated CSS and paste it into your stylesheet.

What is the difference between linear and radial gradients?

A linear gradient changes color along a straight line at the angle you set. A radial gradient changes color outward from a center point in a circle. Linear gradients are more common for backgrounds. Radial gradients suit spotlight and circular effects.

Can I use multiple colors in a gradient?

Yes. Add as many color stops as you need. Each stop has a color and a position from 0% to 100%, and the browser blends between the stops in order.

How do I make a gradient transparent?

Use rgba() or hsla() values for your color stops. For example, rgba(255,0,0,0) is fully transparent red. You can also use the transparent keyword, which equals rgba(0,0,0,0).

What browsers support CSS gradients?

All current browsers support CSS gradients, including Chrome, Firefox, Safari, Edge and Opera. Gradients are plain CSS and need no JavaScript.

Private by default

The tool builds gradients in your browser and sends nothing to a server.