Create beautiful linear, radial, and conic CSS gradients with multi-stop colors, real-time preview and instant CSS code copy.
Our free CSS gradient generator is the most complete online tool to create, customize, and export CSS gradients for your web projects. Generate linear gradients, radial gradients, and conic gradients with multiple color stops, full opacity control, angle and direction settings, and instant CSS code output — all in real-time with no signup required.
CSS gradients are one of the most powerful design tools available to web developers and designers. They allow you to create smooth color transitions, vibrant backgrounds, stylish buttons, card headers, text effects, borders, and much more — all without a single image file. Our generator makes it effortless to experiment with colors and get production-ready CSS code in seconds.
Whether you are building a landing page, a SaaS dashboard, a mobile app UI, or a personal portfolio — our gradient generator provides everything you need: 20+ stunning preset gradients, live mockup previews for buttons, cards and backgrounds, multiple CSS format variants, and the ability to copy a single gradient value or the full CSS block ready to paste into your stylesheet.
Select from Linear (straight direction), Radial (circular from center outward), or Conic (rotating around a center point) gradient types. Each has its own unique visual effect and use case.
For linear gradients, choose a preset direction (top to bottom, left to right, diagonal) or dial in a custom angle from 0° to 360°. For radial gradients, choose the shape (ellipse or circle) and position. For conic, set the start angle.
Add as many color stops as you want. For each stop, pick a color using the color picker, set the position percentage using the slider, and adjust the opacity individually. Drag stops to reorder them.
Every change instantly updates the live preview panel, button mockup, card mockup, and background mockup — so you can see exactly how your gradient will look in a real UI context before copying the code.
Click "Copy CSS" to copy just the gradient value, or "Copy Full" to copy the complete CSS property block including background and background-image declarations. Multiple format variants are available — standard, with -webkit- prefix, as a CSS variable, and as a background shorthand.
Linear, radial, and conic gradients — all with full control over shape, angle, position and direction.
Add unlimited color stops with individual color pickers, position sliders, and per-stop opacity control.
One-click preset gradients covering popular styles — sunset, ocean, neon, pastel, dark mode and more.
See your gradient applied to a background, button, and card header — just like it will look in a real UI.
Copy as a gradient value, full CSS block, CSS variable, or background shorthand — ready for any workflow.
All generation happens in your browser. No data sent to any server. No signup. Forever free.
Linear gradients transition colors along a straight line. You control the direction — left to right, top to bottom, or any custom angle. They are the most common gradient type and are used for backgrounds, buttons, hero sections, and text effects. The CSS syntax is linear-gradient(direction, color1, color2, ...).
Radial gradients radiate outward from a center point in a circular or elliptical shape. They are perfect for spotlight effects, glowing elements, vignettes, and circular UI components. The CSS syntax is radial-gradient(shape at position, color1, color2, ...).
Conic gradients are the newest CSS gradient type. Colors rotate around a center point like a color wheel or pie chart. They are used for progress indicators, pie charts, color wheels, and unique decorative effects. The syntax is conic-gradient(from angle, color1, color2, ...).
Adding the repeating- prefix to any gradient type creates a tiling pattern — useful for stripes, geometric patterns, and decorative backgrounds. Our tool includes a toggle for this option so you can instantly see the repeating version of any gradient you create.