CSS Gradient Generator

Create beautiful CSS gradients with a visual editor. Use presets, adjust stops, and export as CSS, inline style, or Tailwind config.

Controls

Gradient Type
90°
Gradient Bar

Click to add · Drag to reposition · Arrow keys to fine-tune

Fine-tune selected stop
Select a stop on the gradient bar to edit it
Presets
UI
Hero
Effects

Preview

Preview

Export

All outputs update in real time
background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
background: "linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%)"
Key:
backgroundImage: {
  'gradient': 'linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%)'
}
linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%)

Explore these related free tools to enhance your productivity and workflow.

Design & UI Tools

Browse all design and UI tools including gradients, shadows, and border radius generators

Box Shadow Generator

Generate CSS box shadows with custom offsets, blur, and spread

Border Radius & Blob Generator

Create custom border radius values and organic blob shapes

Frequently Asked Questions

How do I use the visual gradient editor?

Click anywhere on the gradient bar to add a new color stop. Drag existing handles to reposition them. Click a handle to select it and edit its color below.

Can I share my gradient with others?

Yes! The URL updates automatically as you edit. Copy and share it directly—recipients will see your exact gradient configuration.

How do I export for Tailwind CSS?

Use the 'Tailwind' copy button to get a backgroundImage config snippet. Paste it into your tailwind.config.js under theme.extend.

What's the difference between linear and radial gradients?

Linear gradients transition colors along a straight line at a specified angle. Radial gradients transition colors outward from a center point in a circular pattern.