piko

CSS Gradient Generator

Preview a linear or radial gradient and copy the CSS background declaration.

Runs on your device. Nothing you add is uploaded.

°
CSS
background: linear-gradient(135deg, #4A4AC8, #EE6280);

How to use CSS Gradient Generator

  1. Choose a linear or radial gradient.
  2. Select the colors and set the angle for a linear gradient.
  3. Copy the CSS into your stylesheet.

Questions

How is the angle measured?
For a linear gradient, 0° points up and 90° points right. A radial gradient spreads outward from its center.
Where does the middle color appear?
With three evenly spaced color stops, the middle color appears halfway between the start and end stops.

How this works

Builds a native CSS gradient declaration from validated colors and settings.

Everything happens in this browser tab. What you type or add stays on your device, and the page has no tracking. Your last settings are kept in this browser so the tool opens the way you left it. Privacy