⚡
usefultools.dev
🌈

CSS Gradient Generator – Linear, Radial, Conic

NEW

CSS gradient generator with live preview: build linear, radial or conic gradients with multiple colour stops, opacity and presets, then copy ready CSS.

Runs 100% in your browser — your input is never uploaded or stored on our servers.

Colour stops (2)

CSS

background-color: #ff996d;
background-image: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
⚡

Quick Examples

Typical inputs and the results this tool produces.

Linear
Sunset preset
linear-gradient(135deg, #ff7e5f…
Fallback
Sunset fallback
background-color: #ff996d;
Stop
#000 at 50% opacity
rgba(0, 0, 0, 0.5) 0%
Angle
Angle -90°
linear-gradient(270deg, …)
Radial
Spotlight preset
radial-gradient(circle …
📖

Overview

This CSS gradient generator lets you design a background visually and copy the exact code. Choose a linear, radial or conic gradient, add up to ten colour stops, drag their positions, adjust opacity and angle, and watch the live preview update. Repeating gradients make stripes and rings with a single toggle.

Front-end developers and designers use it to get hero backgrounds, buttons and placeholders right without guessing syntax. The output uses standard background-image syntax supported by all current browsers, with an optional solid background-color fallback calculated from the average of your colours so text stays readable if the gradient fails to load.

Everything happens in your browser. Start from a preset such as Sunset, Ocean or Color wheel, or roll a random pair of colours.

Why use this tool?

  • See the gradient while you edit it
  • Linear, radial and conic in one place
  • Opacity per stop with a checkerboard preview
  • Optional solid fallback colour
  • Clean CSS ready to paste
⭐

Features

🎨

Three gradient types

Linear with angle, radial with shape, size and centre, and conic with start angle.

🎚️

Multiple stops

Add or remove up to ten stops with colour picker, hex field, position and opacity.

🔁

Repeating mode

Switch to repeating-linear, repeating-radial or repeating-conic gradients.

✨

Presets and random

Nine ready-made gradients plus a random two-colour generator.

🧯

Fallback colour

Adds a background-color line using the average of the stop colours.

📋

Copy CSS

Copy the full CSS rule or just the gradient function.

🛠️

How to Use

1

Start from a preset

Click a preset or Random, or keep the default.

2

Choose the type

Pick linear, radial or conic and set angle, shape or centre.

3

Edit colour stops

Change colours, positions and opacity, or add and remove stops.

4

Copy CSS

Press Copy CSS and paste it into your stylesheet.

🤔

Frequently Asked Questions