CSS Gradient Generator

Runs in your browserDesign Tools#CSS

Make linear, radial and conic CSS gradients with draggable stops. Copy CSS or Tailwind, or share a link.

Backdrop
background: #6366f1;
background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%);

Presets

Type

Gradient type

Colour stops

Drag a stop to move it, click the bar to add one. Up to 10 stops.

How to use, limits & privacy

About CSS Gradient Generator

Create linear, radial and conic CSS gradients with draggable colour stops. Each stop has a hex colour, opacity and position; linear and conic gradients have an angle dial, and radial ones a shape and a centre you can drag. Start from presets or Random, copy CSS or Tailwind, and share the gradient with a link. It runs in your browser.

How to Use

1

Pick a type or preset

Click a preset or Random, or choose Linear, Radial or Conic under Gradient type.

2

Edit the colour stops

Drag stops along the bar, click the bar to add one, and select a stop to set its Colour, Opacity and Position. Turn the Angle dial or drag the centre on the preview.

3

Copy or share

Choose CSS or Tailwind and click Copy, or click Copy link to share this exact gradient.

Privacy & Processing

  • Mode: local
  • Files Leave Browser: Local tool processing; review details below
  • Max Input Size: Device memory limits
  • Account Required: No
  • Data Stored Locally: Nothing is saved in this browser; the gradient lives only in the page address.
  • Network Processing: Assets or models may require an initial download

Everything runs in your browser. A backdrop image you choose stays on your device and is never uploaded; a shared link contains only the gradient settings.

Rules & Limitations

  • Between 2 and 10 colour stops.
  • The CSS starts with a solid colour line for apps without gradient support, such as some email clients.
  • No -webkit- line is added: all current browsers support unprefixed gradients.
  • The gradient is kept in the page address (after #), so the link reopens it; it is not saved anywhere else.

Top Suggestions

  • Hero and button backgrounds for websites
  • Dark overlays that make text readable on photos
  • Conic gradients for colour wheels and pie-style rings
  • Sending a gradient to a teammate as a link

CSS Gradient Generator FAQ

How do I create a CSS gradient?

Use background: linear-gradient(90deg, #6366f1 0%, #ec4899 100%); where the angle sets the direction and each colour has a position. Build it visually here, click Copy and paste it into your rule.

What is the difference between linear, radial and conic gradients?

A linear gradient changes colour along a straight line at an angle. A radial gradient spreads out from a centre as a circle or ellipse. A conic gradient sweeps around a centre like the hands of a clock, which suits colour wheels and pie charts.

How do I make a transparent gradient?

Lower the Opacity of a stop and the code uses rgba(), for example rgba(0, 0, 0, 0) to rgba(0, 0, 0, 0.75). The Photo fade preset does this, and the checkerboard or Photo backdrop shows what will show through.

Can I share a gradient I made?

Yes. Click Copy link: the gradient is stored in the address after the # sign, so anyone who opens the link sees the same gradient. Nothing is stored on a server.

Do I still need -webkit-linear-gradient?

No. Every current browser supports the standard syntax. The old prefixed form also measured angles differently, so 90deg pointed another way, which is why this tool leaves it out.

How do I use a gradient in Tailwind CSS?

Open the Tailwind tab and copy the class, such as bg-[linear-gradient(90deg,#6366f1_0%,#ec4899_100%)]. It works in Tailwind CSS v3 and v4 without changing your config.