← All Tools

What is a CSS gradient generator?

This CSS gradient generator lets you freely add colors and adjust the angle to build a linear or radial gradient in real time. You can see the result instantly as you tweak it, and once you're happy with it, copy the ready-to-use CSS code with a single click. Whenever you need a gradient for a background, button, or banner, you can get exactly what you want without calculating the code by hand.

How to use it

First choose the gradient type you want: Linear or Radial. Use the color pickers to change each color, and add more colors with the "Add color" button or remove ones you don't need. If you picked Linear, adjust the angle slider to set the gradient's direction. The preview updates instantly, and once you're happy with the result, click "Copy CSS code" to copy it right away.

When it comes in handy

Frequently Asked Questions

Is this free to use?
Yes. You can create gradients and copy the CSS code for free, with no account required.
How many colors can I add?
You can use anywhere from 2 up to 5 colors to build a variety of gradients.
How do I use the generated code?
Paste the copied code directly as the value of a CSS background property. For example: background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);