utility tools

CSS Gradient Generator - Linear & Radial

Create beautiful CSS gradients with live preview. Linear and radial gradients with custom colors.

Gradient Preview

Gradient Settings

CSS Code

background: linear-gradient(90deg, #ff6b6b, #4ecdc4);

How to Use CSS Gradient Generator

  1. 1

    Select two colors using color pickers.

  2. 2

    Choose gradient type (linear or radial).

  3. 3

    For linear gradients, select direction.

  4. 4

    Copy CSS code or download as PNG image.

Frequently Asked Questions

How do I use the CSS code?

Copy the generated CSS and apply it to any element's background property in your stylesheet.

Can I use more than 2 colors?

This tool supports 2-color gradients. For multi-stop gradients, you can manually edit the CSS code.

What browsers support CSS gradients?

All modern browsers support CSS gradients. For IE9 and older, use a fallback solid color.

Share this tool

Share this tool with others

Related Tools

CSS Gradient Generator | Free Online Tool 2026