Back to tools
Design

CSS Linear Gradient Generator

Preview a linear gradient and copy its CSS.

Local workspace
⌘ / Ctrl + Enter
Output

Your result will appear here

Choose your settings, then run the tool.

How to use this tool

Build a two-color background gradient without manually writing the CSS syntax. Choose endpoint colors and an angle to produce a linear-gradient value.

  1. Choose the start and end colors.
  2. Set the angle in degrees.
  3. Select Generate gradient, review the preview, and copy the CSS.

Example

linear-gradient(90deg, #000000, #ffffff)

Can it generate radial gradients or multiple color stops?

This generator produces a linear gradient with two endpoint colors. Radial gradients and extra stops require editing the resulting CSS yourself.

Is my input uploaded or saved?

No. Processing happens locally in your browser. Tool inputs and results remain in memory and clear when you switch tools or reload. Only theme and favorite IDs are stored. Your clipboard and web host have their own behavior, explained in the privacy policy.