CSS Gradient Generator
Build linear, radial, and conic CSS gradients with a live preview and unlimited ...Build linear, radial, and conic CSS gradients with a live preview and unlimited color stops. Copy the background CSS or Tailwind class, or export a PN...
Updated
Preset gallery
Live preview
linearGradient settings
Color stops (2)
CSS output
.gradient {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}Tailwind class
bg-[linear-gradient(135deg,#667eea_0%,#764ba2_100%)]
Export as PNG
The image is rendered locally in your browser with a canvas. Nothing is uploaded.
Quick answer
A CSS gradient generator lets you design a color blend visually and copy the code. Pick linear, radial, or conic, add color stops, set the angle or center, and this tool writes the CSS for you, for example background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);. It also outputs a Tailwind class and can export a PNG, and it runs fully in your browser.
Everything In One Tool
Why Use CSS Gradient Generator?
Linear, Radial and Conic
Switch between all three CSS gradient types in one click. Set the angle for linear and conic, the shape for radial, and the center point for both radial and conic.
Large Live Preview
A full-width preview repaints the moment you drag a stop, change the angle, or swap the type, so you always design against the real result.
Unlimited Color Stops
Start with two stops and add up to twelve. Drag each handle along the bar or type an exact percent, and set the color with a picker or a hex field.
CSS And Tailwind Output
Copy the standard background CSS or the Tailwind arbitrary-value class. Both update live and copy with one tap, ready to paste into your project.
Export A PNG
Render the gradient to a PNG at 1080p, square, or social sizes. The image is drawn locally with a canvas, so nothing leaves your device.
100% In Your Browser
There is no server and no upload. Every gradient, copy, and export happens on your device, and no account is needed.
What You Can Build
Page And Section Backgrounds
Design full-page or hero backgrounds with smooth color transitions and copy the CSS straight in.
Buttons And Cards
Make eye-catching gradient buttons and cards for calls to action and interactive elements.
Gradient Text
Pair the output with background-clip for modern gradient headings and logos.
Social And Export Images
Export a gradient PNG for banners, thumbnails, and slide backgrounds at the size you need.
How It Works
Pick A Type Or Preset
Choose linear, radial, or conic, or click a preset from the gallery to start from a ready-made gradient. The Random button gives you a fresh idea instantly.
Add And Position Stops
Drag stops along the bar or type a position percent, then set each color with the picker or hex field. Add stops for richer multi-color blends.
Aim The Gradient
Set the angle for a linear or conic gradient, or move the center point for radial and conic. Watch the large preview update as you go.
Copy Or Export
Copy the background CSS or the Tailwind class with one tap, or export the gradient as a PNG at the size you need.
Gradient Tips
Use Analogous Colors
Colors next to each other on the color wheel, like blue to purple, create the smoothest and most natural gradients.
135 Degrees Feels Balanced
A 135 degree angle runs top-left to bottom-right, follows the natural reading direction, and is the most popular default.
Avoid Muddy Middles
When two complementary colors meet, add a middle stop so the blend does not turn into a dull gray band in the center.