Back to Color & Design

CSS Gradient Generator

Create linear and radial CSS gradients with a live preview.

0%
100%
background: linear-gradient(90deg, #1a5fff 0%, #00b4ff 100%);

Related Guide

CSS Gradient Generator: How to Build Linear and Radial Gradients

Read Guide →

About This Tool

Free CSS gradient generator — visually build linear or radial gradients with multiple color stops, adjustable angle, and a live preview, then copy the exact CSS `background` code ready to paste into your stylesheet. No sign-up, no upload, entirely browser-based. Web designers and front-end developers use gradients constantly for hero sections, buttons, cards, and backgrounds, but hand-writing gradient syntax with the right angle and color-stop percentages is tedious and error-prone. This tool lets you add and remove color stops, drag to reposition them, switch between linear and radial modes, and rotate the angle with a slider — the CSS updates live so what you see is exactly what you get.

How to Use

  1. 1

    Choose a gradient type

    Select linear or radial.

  2. 2

    Add and adjust color stops

    Add multiple colors, drag their position, and set the angle (for linear gradients).

  3. 3

    Copy the CSS

    Copy the generated `background: linear-gradient(...)` or `radial-gradient(...)` code directly into your CSS.

Frequently Asked Questions

What is the difference between linear and radial gradients?+
A linear gradient transitions colors in a straight line at a chosen angle. A radial gradient transitions colors outward from a center point in a circular or elliptical shape.
How many color stops can I add?+
You can add as many color stops as you need — each with its own color and position percentage along the gradient.
Is the generated CSS compatible with all browsers?+
Yes, `linear-gradient()` and `radial-gradient()` are standard CSS3 and supported in all modern browsers.

Related Tools

Color Palette Generator

Try it free →

Box-Shadow Generator

Try it free →

Border-Radius Generator

Try it free →

CSS Minifier

Try it free →