CSS Gradient Generator – Linear, Radial, Conic
NEWCSS 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.
CSS
background-color: #ff996d; background-image: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%);
Quick Examples
Typical inputs and the results this tool produces.
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
Start from a preset
Click a preset or Random, or keep the default.
Choose the type
Pick linear, radial or conic and set angle, shape or centre.
Edit colour stops
Change colours, positions and opacity, or add and remove stops.
Copy CSS
Press Copy CSS and paste it into your stylesheet.