Random Gradient Generator

Click Generate to get a random CSS gradient with live preview, then copy the CSS or tweak the angle and colors.

Gradient Controls

Color Stops

CSS copied to clipboard

Summary

Click Generate to get a random CSS gradient with live preview, then copy the CSS or tweak the angle and colors.

How it works

  1. Click "Generate Random" to create a new random gradient with 2 to 4 color stops.
  2. Choose between Linear and Radial gradient types using the type selector.
  3. Drag the angle slider or type a value to rotate a linear gradient from 0 to 360 degrees.
  4. Click any color swatch to open the color picker and fine-tune individual stops.
  5. Click "Copy CSS" to copy the complete background CSS declaration to your clipboard.
  6. Click "Shuffle Colors" to randomize only the colors while keeping the current angle and type.

Use cases

Frequently Asked Questions

Related tools

Last updated: 2026-05-28 · Reviewed by Nham Vu