Skip to content
toolavix

CSS Gradient Generator

Design linear, radial and conic gradients visually and copy the CSS.

  • Free
  • No sign-up

Instant results, no sign-up required.

What is a CSS gradient?

A CSS gradient is an image generated by the browser that blends two or more colors, used as a background without any image file. This CSS gradient generator builds linear-gradient(), radial-gradient() and conic-gradient() code visually: add color stops, move them, set the angle, shape and position, start from a preset and copy the finished background declaration. Everything is calculated in your browser.

How to create a CSS gradient

  1. 1

    Choose Linear, Radial or Conic, or start from a preset.

  2. 2

    Edit the color stops: change each color and drag its position, and add more stops if you need them.

  3. 3

    Set the angle for linear and conic gradients, or the shape and position for radial and conic ones.

  4. 4

    Check the live preview and copy the CSS into your stylesheet.

Key features

Three gradient types

Create linear, radial and conic gradients, each with the CSS syntax browsers support without prefixes.

Multi-stop editor

Use up to ten color stops with exact positions in percent, and remove or add stops at any time.

Presets and random

Start from ready-made gradients or press Random to explore harmonious combinations.

Copy-ready CSS

The generated background property updates live, so you can paste it directly into your project.

Frequently asked questions

How do I make a linear gradient in CSS?

Use background: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);. The first value is the direction as an angle, followed by color stops with optional positions.

What is the difference between linear, radial and conic gradients?

A linear gradient changes color along a straight line, a radial gradient radiates outward from a center point and a conic gradient sweeps colors around a center point like a color wheel or pie chart.

How do angles work in linear-gradient?

0deg points up, 90deg points right, 180deg points down and 270deg points left. You can also use keywords such as to right.

Can I use transparency in a gradient?

Yes. Use colors with alpha such as rgb(0 0 0 / 50%) or 8-digit HEX values like #00000080 in any color stop.

Do CSS gradients work in all browsers?

Linear and radial gradients work in every modern browser. Conic gradients are supported in Chrome, Edge, Firefox and Safari since 2020.

More Developer tools

View all →