Websites from ₹4,999 · Apps from ₹24,999 · 100 free tools

Free tool · Design tools

CSS Gradient Generator

Design linear, radial and conic backgrounds with this CSS gradient generator: drag colour stops, set opacity, start from 16 presets, copy the CSS and download a full HD PNG.

Drag the markers · tap the bar to add a colour

Colours

Presets

Download as an image

Everything runs in your browser. Nothing you type is sent anywhere, and it is cleared when you close this page.

Free · no sign-up · runs in your browser, nothing is uploaded

Need help fixing it?

Get a free website audit from our team

Our developers check your site's speed, SEO and mobile experience and send you a short list of fixes. No charge, no obligation.

  • Reply on WhatsApp or call, your choice
  • Websites from ₹4,999, apps from ₹24,999

Request free audit

We reply within a few working hours. No spam.

Make beautiful gradients without writing code

Gradients make buttons, banners and backgrounds look modern without heavy images. Writing the CSS by hand means guessing angles and percentages. This CSS gradient generator lets you design visually and copies clean code for you. It works for websites, landing pages, email headers made as images, presentation slides and phone wallpapers. A CSS gradient is also tiny compared with a background photo, so your page loads faster, and it stays sharp on every screen size because the browser draws it.

How to use the CSS gradient generator

  1. Pick a preset to start, or press Random for a surprise.
  2. Choose the type: linear (a straight blend), radial (from a centre point outwards) or conic (around a centre, like a colour wheel).
  3. Set the angle with the slider. For radial gradients choose circle or ellipse and the centre position.
  4. Drag the markers on the colour bar to move them, or tap the bar to add a new colour. Up to ten colours are allowed.
  5. Change each colour, its position and its opacity in the list. Lower opacity lets the page behind show through.
  6. Copy the CSS, or download the gradient as a PNG image in full HD, square, story size or 4K.

About the CSS code

The code has two lines. The first sets a plain background colour, and the second sets the gradient. Very old browsers that cannot draw gradients use the plain colour, and all modern browsers use the gradient. Paste both lines into the CSS rule for your element, for example a hero section or a button.

Design tips

  • Two or three colours usually look cleaner than many.
  • Colours that sit close together on the colour wheel, such as blue and teal, blend smoothly. Opposite colours can look muddy in the middle; add a third colour between them.
  • Check that text on top of a gradient stays readable at both ends. Our colour contrast checker helps.
  • A gradient that fades from a colour to transparent works well over photos to make text stand out.
  • Need a colour scheme first? Try the colour palette generator.

Everything runs in your browser. Nothing is uploaded, and the PNG is created on your device.

FAQ

CSS Gradient Generator: FAQs

Do CSS gradients work in all browsers?

Linear and radial gradients work in every modern browser, and conic gradients work in current versions of Chrome, Edge, Firefox and Safari. The fallback colour in the code covers very old browsers.

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

A linear gradient blends along a straight line at an angle. A radial gradient spreads out from a centre point in a circle or ellipse. A conic gradient sweeps around a centre point, like the hands of a clock.

Can I use transparent colours?

Yes. Lower the opacity of any colour stop. The code uses rgba() for those colours so the background behind shows through.

Can I download the gradient as an image?

Yes. Choose a size such as 1920 × 1080 or 1080 × 1920 and download a PNG, made in your browser.

More free tools

You might also like

Colour Contrast Checker

Check if your text and background colours are readable and meet WCAG accessibility guidelines (AA and AAA).

Design tools

Favicon Generator

Create a favicon set (ICO and PNG in all common sizes) from your logo or from text, with the HTML code to…

Design tools
New

Website Colour & Font Detector

Extract the colour palette and fonts of any website. Copy hex codes, see Google Fonts in use and get inspiration for your…

Design tools

See all free tools

Have a project in mind?

Tell us what you want to build. You get ideas, a timeline and a clear quote, free.

Chat on WhatsApp