Gradient Generator: CSS Code and Wallpapers

Design smooth colour gradients for websites, apps, slides and wallpapers. Start from a preset or build your own with up to six colour stops, then copy ready-to-use CSS or download a high-resolution image.

100% free No upload No watermark Works on mobile

Preview

CSS

Presets

How to use the Gradient Generator

  1. Start from a presetPick one of the ready-made gradients, or press Random for inspiration.
  2. Choose the typeLinear, radial or conic, and set the angle for linear and conic gradients.
  3. Edit colour stopsChange colours and positions, and add up to six stops or remove ones you don’t need.
  4. Copy or downloadCopy the CSS for your website, or download a PNG wallpaper at desktop, phone or social sizes.

Features

  • Linear, radial and conic

    Every modern CSS gradient type, with live preview.

  • Up to six colour stops

    Precise colours and positions for smooth or striped effects.

  • Ready-to-use CSS

    Copy a clean background declaration with a solid fallback colour.

  • Wallpaper downloads

    High-resolution PNGs up to 4K for desktops, phones, stories and headers.

  • Anti-banding grain

    Subtle noise removes the visible stripes that gradients often show.

  • Free and private

    Runs entirely in your browser; use your gradients anywhere.

Make beautiful gradients in seconds

Gradients are a staple of modern design: app backgrounds, landing page heroes, buttons, slides, social graphics and phone wallpapers all use smooth colour blends to add depth and energy. This gradient generator lets you design one visually and take it anywhere, either as CSS code for the web or as a high-resolution image for everything else.

Linear, radial and conic gradients

  • Linear gradients blend colours along a straight line. The angle sets the direction: 90° runs left to right, 180° top to bottom, and 135° is the popular diagonal.
  • Radial gradients spread outward from the centre in a circle, great for spotlights and soft glows.
  • Conic gradients sweep around the centre like a colour wheel, useful for pie-chart effects and vivid abstract backgrounds.

Using the CSS

The copied code sets a solid background-color fallback followed by background-image with your gradient, supported by every current browser. Paste it into any CSS rule, such as a hero section or a button. For text gradients, add -webkit-background-clip: text and a transparent text colour.

Why add grain?

Smooth gradients between similar colours can show visible bands, especially on large screens and after compression. The anti-banding option adds very fine, almost invisible noise to the downloaded image, which hides the steps and makes the gradient look perfectly smooth. Grain makes PNG files several times larger, so it is off by default; switch it on for big wallpapers and leave it off for small, flat graphics.

Need a matching solid colour from a photo? Grab it with the Colour Picker. Want to show off a screenshot on your new gradient? Try the Screenshot Beautifier.

Picking colours that work together

Gradients look most natural when the colours are neighbours on the colour wheel, such as blue to purple or orange to pink. For high-contrast pairs, add a third stop in between to avoid a muddy middle. Keep text readable by placing it over the darker end, or add a semi-transparent overlay. The presets are a good starting point for brand-friendly combinations.

Gradient Generator FAQ

Choose a type and angle, set your colour stops, then press Copy CSS and paste the code into your stylesheet.

Yes. Pick a size such as Full HD, 4K, phone wallpaper or story and press Download PNG.

Up to six colour stops here, each with its own position from 0% to 100%.

A gradient whose colours rotate around a centre point, like a colour wheel, instead of running in a line.

That is colour banding. Switch on Anti-banding grain before downloading to hide it; the file will be larger.

Yes. Gradients you create are free to use in any project.

Private by design. Your images are processed in your browser and never uploaded.