KickSolve • Free • Private

CSS Gradient Generator

Design linear, radial and conic gradients with a live preview. Add color stops, tweak the angle, then copy the CSS or download the gradient as a PNG.

Linear, radial and conicCopy CSS or download PNGNever uploaded
Color stops
Stops are written to the CSS in position order, whatever order they appear here.

CSS code

Paste this into your stylesheet.

How to use Gradient Generator on KickSolve

Three quick steps, no account needed.

Pick a type and colorsChoose linear, radial or conic, then edit the color stops or start from a preset.
Adjust angle and stopsChange the angle, center and stop positions. The preview updates live.
Copy the CSSCopy the ready-to-use CSS, or download the gradient as a PNG image.

Why choose KickSolve

Built for speed, privacy and clean results.

Private by designYour gradient is built in your browser. Nothing is sent anywhere.
Live previewEvery change shows instantly in a large preview.
Presets and randomStart from 10 curated presets or press Random for fresh ideas.
Clean CSSStandard CSS that works in modern browsers, with an optional fallback color.

What you can do with Gradient Generator

Everything this tool offers.

Linear gradientSet any angle from 0 to 360 degrees.
Radial gradientCircle or ellipse with a custom center point.
Conic gradientSweep colors around a point, great for pies and color wheels.
Multiple color stopsAdd up to 8 stops with exact positions.
PresetsTen ready-made gradients to start from.
Random gradientOne click for a new color combination.
Copy CSSChoose background or background-image, with a fallback line.
Download PNGExport 1920x1080, square or phone-size images.

About Gradient Generator on KickSolve

How CSS gradients work and how to get the most from them.

How CSS gradients work

A gradient is an image the browser draws for you, so it goes in background or background-image, not background-color. It is defined by a type, a direction or center point, and a list of color stops. Because it is generated by CSS, it is resolution independent and adds no image download.

Linear, radial and conic

A linear gradient blends along a straight line set by an angle: 0deg points up, 90deg right, 180deg down and 270deg left. A radial gradient spreads outward from a center point as a circle or an ellipse. A conic gradient sweeps around a center like the hand of a clock, which suits pie charts and color wheels.

Color stops and hard edges

Each stop is a color and a position. The colors blend between neighboring stops. Put two stops at the same position and you get a hard edge instead of a blend, which is how stripes and pie slices are made.

Tips for smooth, readable gradients

Blending two very different colors can look muddy in the middle, so add a stop between them or pick colors close in hue. If text sits on a gradient, test the lightest and darkest parts with the Contrast Checker. Need the colors in another format? Use the Color Converter.

Browser support

The standard linear-gradient() and radial-gradient() work in every current browser without a vendor prefix, and conic-gradient() has worked in all major browsers since late 2020. Shrink your finished stylesheet with the HTML, CSS and JS Minifier, and if you export a PNG, run it through Compress Image to cut the file size.

CSS gradient direction keywords

How angles and keywords line up.

KeywordAngleDirection
to top0degBottom to top
to top rightvariesBottom-left corner to top-right corner
to right90degLeft to right
to bottom rightvariesTop-left corner to bottom-right corner
to bottom180degTop to bottom (the default)
to left270degRight to left

Frequently asked questions

Quick answers.

How do I create a CSS gradient?

Choose a type, edit the colors and angle, then copy the CSS from the code box and paste it into your stylesheet as the background of an element.

How do I add more than two colors?

Press Add stop. You can use up to 8 stops, and each one has its own color and position.

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

Linear gradients blend along a line, radial gradients spread out from a center point, and conic gradients sweep around a center point.

How do I make a hard edge or stripes?

Give two neighboring stops the same position, for example one color at 50% and the next color also at 50%. The colors then change sharply instead of blending.

Do I need the -webkit- prefix?

No. Modern browsers support the standard syntax. If you want a solid color for very old browsers, turn on the fallback color line and it adds a background-color before the gradient.

Can I use a gradient on text or a border?

Yes. For text, use the gradient as the background with background-clip: text and a transparent text color. For borders, use border-image or a gradient background behind padded content. Copy the generated gradient value into those properties.

Can I download the gradient as an image?

Yes. Press Download PNG and choose a size. PNG export of conic gradients needs a recent version of Chrome, Edge, Firefox or Safari.

Is my data uploaded?

No. Everything runs in your browser and nothing is sent to a server.

More free tools from KickSolve

Related tools.