๐ŸŒ…

CSS Gradient Generator

Create linear and radial CSS gradients with multiple color stops and copy the CSS code.

Built and maintained by Abdur Rehman ยท Free, no sign-up

Loading CSS Gradient Generatorโ€ฆ
๐Ÿ”’PrivateRuns in your browser โ€” nothing is uploaded.
โšกFastInstant results, no waiting in queues.
๐Ÿ’ธFreeNo sign-up, no watermark, no limits.
๐Ÿ“ฑAnywhereWorks on phone, tablet and desktop.

How to use the CSS Gradient Generator

  1. Pick the gradient type and angle
  2. Adjust the colors and stops
  3. Copy the CSS code

Linear, radial and conic gradients

Choose linear (at any angle), radial (circle or ellipse) or conic, add as many colour stops as you like and drag their positions, then copy the CSS. The code includes a solid fallback colour for very old browsers. Press ๐ŸŽฒ Random for inspiration.

More colours and transparency

  • Three or more colours โ€” click โ€œ+ Add color stopโ€ and place it, for example at 50%.
  • Transparency โ€” the colour pickers are solid, so in the copied code replace a stop with transparent or an rgba() value such as rgba(79, 70, 229, 0.5).

Gradient text

Copy the background, then add -webkit-background-clip: text; background-clip: text; color: transparent; to the same element.

Tailwind and animation

  • Tailwind CSS โ€” use bg-linear-to-r from-indigo-600 to-pink-500 (v4; bg-gradient-to-r in v3), or paste the exact CSS as an arbitrary value: bg-[linear-gradient(135deg,#4f46e5_0%,#ec4899_100%)].
  • Animated gradients โ€” set background-size: 200% 200% and animate background-position with @keyframes.

Matching an image or existing code

To match a picture, pick its colours with the Image Color Picker and enter them as stops. To edit a gradient you already have, copy its colours and angle into the controls.

๐Ÿ’ป Keep exploring Developer Tools

See all Developer Tools