Free CSS Gradient Generator Online

Create stunning CSS gradients with a visual editor. Generate linear, radial, and conic gradients with multiple color stops.

Last updated
%
%
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

Writing `linear-gradient(135deg, #667eea 0%, #764ba2 100%)` by hand is fine when you already know which colours and which angle you want. Most of the time, though, you are tweaking — bumping the angle two degrees, sliding a colour stop, trying a different second colour to see if it warms the whole thing up. Our free online CSS Gradient Generator gives you a visual editor for exactly that loop. Pick the gradient type (linear, radial, or conic), drop in colour stops at any position from 0% to 100%, set the angle for linear gradients or the centre point for radial ones, and watch the live preview update as you drag. The CSS code is generated underneath the preview in copy-ready form so you can paste it straight into a stylesheet, a Tailwind class, or a styled-components template literal. Multi-stop gradients are supported — add as many colour stops as you need, drag them along the bar to reposition, and remove the ones you do not want. The generator covers the three types of CSS gradient that ship with every modern browser: `linear-gradient` for the classic top-to-bottom or angled fades, `radial-gradient` for circular fades centred on a point, and `conic-gradient` for the colour-wheel style that has become popular for hero sections and interesting backgrounds. Real-world workflows: building a hero background that combines two brand colours, generating button hover states with a subtle gradient, creating a soft background pattern for a card layout, or experimenting with colour relationships before committing to a value in a design system. After generating, the [CSS Minifier](/tools/css-minifier) compresses the resulting CSS for production, and the [Color Picker](/tools/color-picker) is the right tool to choose the individual colours that go into the gradient.

How to Use CSS Gradient Generator

1

Pick a Gradient Type

Choose linear, radial, or conic. Linear is the most common — a straight fade from one colour to another along an angle.

2

Add and Position Colour Stops

Drop colour stops onto the gradient bar. Drag to reposition each stop and click to change its colour. Add as many as you need.

3

Adjust the Angle or Centre

For linear gradients, set the angle (0° is bottom-to-top, 90° is left-to-right, 135° is the popular diagonal). For radial gradients, set the centre point.

4

Copy the Generated CSS

The CSS code updates live below the preview. Click the copy button and paste straight into your stylesheet or Tailwind config.

Features

Linear, Radial, and Conic

All three modern CSS gradient types are supported, including the conic-gradient that powers colour wheels and hero section backgrounds.

Multi-Stop Gradients

Add unlimited colour stops at any position from 0% to 100%. Drag to reposition for precise control over the fade.

Live Preview

A large preview pane updates as you drag stops, change colours, or adjust the angle. No "render" button to press.

Copy-Ready CSS

The output uses the standard CSS gradient syntax that works in every modern browser. Pastes cleanly into vanilla CSS, Tailwind, SCSS, or styled-components.

Benefits of Using CSS Gradient Generator

Completely Free

Use CSS Gradient Generator without any cost, limits, or hidden fees. No premium plans needed.

No Installation

Works directly in your browser. No software downloads or plugins required.

100% Private

Your files and data are processed locally. Nothing is uploaded to external servers.

Works Everywhere

Compatible with Chrome, Firefox, Safari, Edge on desktop, tablet, and mobile.

No Sign-Up

Start using the tool immediately. No account creation or email verification.

Always Available

Access this tool 24/7 from anywhere in the world, on any device.

Frequently Asked Questions

Linear fades along a straight line at the angle you specify. Radial fades outward from a centre point in a circle or ellipse. Conic fades around a centre point like a clock face — useful for colour wheels and unusual hero backgrounds.
Linear and radial gradients work in every browser shipped in the last decade. Conic gradients arrived later (Chrome 69, Firefox 83, Safari 12.1) and are now supported in every evergreen browser. No vendor prefixes are needed.
CSS does not animate gradients smoothly because they are computed images, not interpolatable colour values. The workaround is to animate the gradient's `background-position` while keeping the colours fixed, or to use SVG or canvas for true animated gradients.
Paste the generated `background:` line into your button's CSS. For Tailwind users, the closest equivalent is `bg-gradient-to-r from-... to-...` for two-colour linear gradients; for more stops use a custom utility or arbitrary value.
Gradient banding happens when the colour transitions step too coarsely for the display's colour depth. Add intermediate stops to smooth it out, or apply a tiny bit of noise via a layered SVG pattern for the smoothest appearance on cheap monitors.
Wrap the gradient in a custom property: `--brand-gradient: linear-gradient(...);` and reference it as `background: var(--brand-gradient)`. This is the cleanest way to reuse the same gradient across multiple components.

Complete Your Developer Tools Workflow

These free tools work seamlessly with CSS Gradient Generator to handle every step of your workflow.