Developer Tools

CSS Gradient Generator

Build a linear or radial CSS gradient from color stops and copy the ready-to-paste declaration.

CSS Gradient Generator workspace

How to use

Pick linear or radial, set the angle for linear gradients, add color stops, then Copy CSS. Use the preview to check the blend before pasting into your stylesheet.

Example

Stops need a color and a position percent. The preview updates as you edit.

Input

linear 90deg, #2563eb 0%, #7c3aed 100%

Output

background-image: linear-gradient(90deg, #2563eb 0%, #7c3aed 100%);

How it works

Stops are sorted by position and joined into a standard CSS gradient function. Radial mode uses a circle gradient; the angle applies to linear mode.

Common errors

  • Only one stop was entered Add at least two stops so a gradient can form.
  • The CSS looked invalid Check hex colors and positions from 0 to 100.
  • You needed a conic gradient Only linear and radial are offered here.

Limitations

There is no mesh gradient editor and no export to PNG. Browser support for older gradient syntax is not polyfilled.

Privacy

The text you paste is processed in your browser. PepsTools does not receive it, store it, or send it to another service.

Questions

Is the CSS uploaded?

No. Generation stays in the browser.