100% free · No login · No subscription · No installation

CSS Gradient Generator

Create CSS gradients and copy ready code — 100% free, no login.

Category: Developer Tools

Gradient

Preview and CSS update instantly. Everything stays local.

Color stops
Presets

How to use this generator

  1. Choose linear, radial or conic, then set the angle (or the radial shape).
  2. Adjust the color stops: values are percentages along the gradient line, sorted automatically.
  3. Copy the CSS and drop it into any background property; the preview above is exactly what it renders.

About this tool

Gradients are declared in CSS as a list of color stops with positions. This generator keeps the stops validated (hex colors, 0–100 percent positions), sorts them, and composes a single background value for linear, radial and conic gradients. The preview is painted with the very same string that lands on your clipboard, so what you see is what you ship.

Up to eight color stops are supported, which is enough for rich effects while staying fast and readable. The presets are starting points — recolor or reposition them freely.

  • Build linear, radial and conic gradients.
  • Add, remove and position color stops.
  • Control the gradient angle where the type supports it.
  • Preview transitions live at any size.
  • Copy one-liner CSS that works as-is.
  • Start from useful preset gradients.

Frequently asked questions

When should I use radial instead of linear gradients?

Linear gradients blend colors along a straight direction and suit buttons, banners and section backgrounds. Radial gradients blend outward from a center point, which suits glows, spotlights and circular badges.

What is the angle in a conic gradient?

For conic gradients the angle sets where the sweep starts: 0deg points up and the colors rotate clockwise. In linear gradients the angle is the direction the colors travel, so 90deg runs left to right.

Can the generated CSS be used as-is?

Yes. The output is a single background property value with sorted, clamped stops and standard syntax that every modern browser supports. Paste it behind background: in your stylesheet or inline.

How are color stops ordered?

They are sorted by percentage before output, so even if stops are entered out of order the final CSS is valid. Positions are percentages from 0 to 100 of the gradient line.