πŸ–ŒοΈ CSS Gradient Generator β€” Linear and Radial

Choose gradient type, set colors and direction, then copy the generated CSS for use in any stylesheet.

Design Free Β· no sign-up Added 2026-10-20
Input
Result

Private by design. This tool runs entirely in your browser β€” nothing you enter or add is uploaded to any server.

How it works

  1. Select linear or radial gradient.
  2. Adjust the angle (for linear) and enter two hex colors.
  3. Click Generate CSS to get the background property ready to paste.

Examples

  • linear-gradient(90deg, #4f46e5, #ec4899) creates a left-to-right blend.
  • radial-gradient(circle, #4f46e5, #ec4899) centers the first color.
  • Use any valid CSS color values including rgb() or named colors.

Frequently asked questions

Does this support more than two colors?

This simple version generates two-stop gradients. For complex multi-stop gradients you can edit the output CSS.

Is the preview accurate?

The generated CSS matches standard browser linear-gradient and radial-gradient syntax.

Can I use it offline?

Yes. Everything runs locally in your browser with no network requests.

More Design tools β†’