Free · Private · No signup
Free browser tools — zero uploads, zero signup, zero limits. Explore all tools →

Enter to search · Esc to close

Free · Linear, Radial, Conic & Text · CSS + Tailwind + PNG

Free Gradient Generator Online

The all-in-one free online gradient generator — create linear, radial, conic, and text gradients. Get instant CSS code, Tailwind classes, and download your gradient as a PNG or SVG. No signup, no limits.

Gradient Generator — ⟋ Linear
Color Stops
Direction & Angle
°
CSS background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);
Tailwind bg-gradient-to-br from-[#9333ea] to-[#06b6d4]
Presets:
100% browser-based· Linear, Radial, Conic & Text modes· CSS + Tailwind + PNG export· No signup required
CSS background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);
What You Can Create

Four Gradient Modes in One Free Tool

From simple two-color backgrounds to animated text effects — this online gradient generator covers every modern CSS gradient type, plus PNG and SVG export for design assets.

Linear Gradient Generator

CSS linear-gradient()

Set any angle from 0–360° or use 8 direction presets. The most common gradient type for website backgrounds, buttons, and cards. Instant CSS and Tailwind output.

Radial Gradient Generator

CSS radial-gradient()

Circle or ellipse shape with a movable center point. Ideal for spotlight effects, glowing buttons, and hero section backgrounds. 5 position presets included.

Conic Gradient Generator

CSS conic-gradient()

Colors sweep around a center point — great for pie charts, color wheels, and starburst patterns. Control the starting angle and add multiple color stops.

🅣

Text Gradient Generator

background-clip: text

Apply any gradient to text with a live preview. Outputs the full CSS snippet using background-clip: text and color: transparent — ready to paste into your stylesheet.

How To Use

Create Your Gradient in 4 Steps

No account, no software install. The free online gradient generator works entirely in your browser — results in under 10 seconds.

1
🎨

Choose a Gradient Type

Click Linear, Radial, Conic, or Text at the top of the tool. Each mode has its own controls and CSS output. Not sure which to use? Start with Linear — it's the most widely supported.

2
🖌️

Pick Colors & Stop Positions

Click the color swatch to open the native color picker, or type a hex code directly. Adjust the position (0–100%) of each stop. Add up to 6 stops using the + Add Color Stop button for rich multi-color gradients.

3
🧭

Set Direction or Angle

For linear gradients, click one of the 8 compass buttons or drag the angle slider to any degree. For radial gradients, pick circle or ellipse and move the center. For conic gradients, set the starting angle.

4
📋

Copy, Export, or Download

Hit Copy CSS to grab the ready-to-paste CSS code, or Copy Tailwind for Tailwind utility classes. Download a 1920×1080 PNG or a scalable SVG file for design assets.

Features

Everything in One Free CSS Gradient Generator

Most gradient tools only output CSS. This one goes further — Tailwind classes, image export, text gradients, presets, and more, all running locally in your browser.

🖥️

Instant CSS & Tailwind Output

Every change updates the CSS and Tailwind code in real time. Copy a clean background: linear-gradient() snippet or Tailwind classes like from-[#hex] to-[#hex] with a single click. No reformatting needed.

🖼️

Export Gradient as PNG Image

Download your gradient as a crisp 1920×1080 PNG using the Canvas API — no server upload. Perfect for social media backgrounds, presentation slides, wallpapers, and Figma/Sketch assets.

📐

SVG Gradient Generator

Export as a resolution-independent SVG file for use in design tools or directly in HTML. SVG gradients scale perfectly to any size without quality loss — ideal for logos and print assets.

🅣

CSS Text Gradient Generator

Switch to Text mode to preview gradient-filled typography live. Outputs the full background-clip: text CSS snippet — the standard technique for colorful headings and font gradient effects.

🎨

3-Color & 4-Color Gradients

Add up to 6 color stops for rich multi-tone gradients. Each stop has an independent color picker and position control. The CSS output includes all stops automatically — no manual coding required.

🎲

Random Gradient Generator

Stuck on colors? Hit 🎲 Random to generate a beautiful random gradient instantly. Pulls from a curated set of high-contrast color pairs so every random result looks polished, not garish.

12 Curated Presets

Start from professionally designed presets — Cosmic, Sunset, Ocean, Rose, Mint, Midnight, Golden, Cherry, Aurora, Lavender, Forest, and Electric. One click loads the preset; you can then customize every stop.

📱

Mobile-Friendly & Privacy-First

Fully responsive — works on phones, tablets, and desktops. Runs 100% in your browser with no server round-trips, no cookies, no tracking. Your colors stay on your device.

🌊

Tailwind Gradient Generator

Get framework-ready Tailwind CSS gradient classes alongside the raw CSS. For standard angles, outputs human-readable classes like bg-gradient-to-br. For custom angles, generates the Tailwind arbitrary value syntax.

Gradient Types Compared

Linear vs Radial vs Conic vs Text

Every CSS gradient type has a different use case. Use this reference to pick the right gradient for your project — then generate the exact code with the tool above.

Gradient Type CSS Function Best For Direction Control Browser Support
⟋ Linear linear-gradient() Backgrounds, buttons, hero sections, banners Angle (0–360°) or keyword (to right, to bottom-right, etc.) ✓ All browsers
◎ Radial radial-gradient() Spotlight effects, glows, soft background blobs Shape (circle/ellipse) + center position (at X% Y%) ✓ All browsers
⟳ Conic conic-gradient() Pie charts, color wheels, starburst patterns Starting angle (from Ndeg) + center position ✓ Chrome 69+, Firefox 83+, Safari 12.1+
🅣 Text (clip) background-clip: text Gradient headings, logo typography, display text Same as linear — any angle ✓ All modern browsers (-webkit- prefix recommended)
🌐 Mesh Stacked radial-gradient() Organic blobs, aurora effects, ambient backgrounds Multiple radial centers stacked with transparency ✓ All browsers (CSS technique)
🌾 Grainy Gradient + SVG feTurbulence Retro/film aesthetics, textured backgrounds, print-style Same gradient below, noise layer on top ✓ All modern browsers

CSS Gradient Generator: The Complete Guide

A CSS gradient generator removes the guesswork from writing gradient code by hand. Instead of memorizing angle calculations and stop syntax, you pick colors visually and get a ready-to-paste CSS snippet. This free online gradient generator supports every modern gradient type — linear, radial, conic, and text — and outputs both raw CSS and Tailwind CSS classes in real time.

This guide covers how each gradient type works, how to use the generator effectively, and practical techniques for backgrounds, text effects, borders, mesh gradients, and grainy gradients.

CSS Linear Gradient Generator

The linear gradient generator is the most-used mode. A linear gradient transitions colors along a straight line at a given angle. The CSS function syntax is:

background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);

The first argument is the direction — either an angle in degrees (135deg) or a keyword (to right, to bottom-right). Subsequent arguments are color stops: a color value followed by a position percentage.

CSS Linear Gradient Direction Reference

KeywordAngleTailwind ClassDescription
to top0degbg-gradient-to-tBottom to top
to top right45degbg-gradient-to-trBottom-left to top-right
to right90degbg-gradient-to-rLeft to right
to bottom right135degbg-gradient-to-brTop-left to bottom-right (default)
to bottom180degbg-gradient-to-bTop to bottom
to bottom left225degbg-gradient-to-blTop-right to bottom-left
to left270degbg-gradient-to-lRight to left
to top left315degbg-gradient-to-tlBottom-right to top-left

For any angle not in this table, the CSS gradient generator outputs the numeric degree value. The Tailwind output uses the arbitrary value syntax: bg-[linear-gradient(Ndeg,...)].

3-Color and 4-Color Linear Gradients

Linear gradients support any number of color stops. A 3-color gradient generator adds a middle stop — useful for sunset effects or brand color transitions. A 4-color gradient goes further, creating richer multi-hue backgrounds. Use the + Add Color Stop button to add up to 6 stops. Each stop is independently positioned, so you can cluster stops for sharp transitions or space them evenly for smooth blends.

/* 3-color gradient example */
background: linear-gradient(135deg, #9333ea 0%, #ec4899 50%, #06b6d4 100%);

/* 4-color gradient example */
background: linear-gradient(135deg, #9333ea 0%, #ec4899 33%, #f97316 66%, #06b6d4 100%);
Linear Radial Conic Gradient Types

CSS Radial Gradient Generator

A radial gradient generator produces gradients that radiate outward from a center point. The CSS radial-gradient() function supports two shapes — circle (perfectly round) and ellipse (stretched to fit the element). You can place the center anywhere using the at keyword:

/* Circle at center */
background: radial-gradient(circle at 50% 50%, #9333ea 0%, #06b6d4 100%);

/* Ellipse at top */
background: radial-gradient(ellipse at 50% 0%, #f97316 0%, #1e0a2e 100%);

Radial gradients work well for spotlight backgrounds, glowing buttons, and soft ambient blobs behind hero content. In the tool, click one of the 5 position presets (Center, Top, Bottom, Left, Right) or customize as needed.

CSS Radial Gradient Background Tip

For a soft full-page background using a CSS gradient generator background, stack two radial gradients using comma separation. The browser composites them in order, first on top:

background:
  radial-gradient(circle at 10% 10%, rgba(147,51,234,.3) 0%, transparent 50%),
  radial-gradient(circle at 90% 90%, rgba(6,182,212,.3) 0%, transparent 50%),
  #0f0a1e;

Conic Gradient Generator

The conic gradient generator creates color transitions that sweep around a center point, like clock hands. Unlike radial gradients (which radiate outward), conic gradients rotate. They are the foundation of pie charts, color wheels, and halo effects in CSS.

/* Conic — color wheel */
background: conic-gradient(from 0deg, red, yellow, lime, aqua, blue, magenta, red);

/* Conic — pie chart (25% red, 50% blue, 25% green) */
background: conic-gradient(#ef4444 0% 25%, #3b82f6 25% 75%, #22c55e 75% 100%);

Browser support for conic-gradient() is excellent in 2026: Chrome 69+, Firefox 83+, Safari 12.1+, and all modern mobile browsers. The tool's Conic mode lets you set the starting angle and add color stops at precise positions.

CSS Text Gradient Generator

A CSS text gradient generator applies gradient fills to typography. The technique uses three CSS properties together:

  1. background — set the gradient as the element's background
  2. -webkit-background-clip: text — clip the background to the text shape
  3. color: transparent — hide the solid text color so the gradient shows through
/* CSS text gradient / font gradient generator output */
background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);
-webkit-background-clip: text;
background-clip: text;
color: transparent;

This is also called a font gradient generator technique. It works on any element containing text — headings, spans, buttons, and SVG <text> elements. Switch to Text mode in this tool to preview the effect live and copy the complete CSS snippet. Adjust the text content, font size, and gradient angle before copying.

Browser compatibility note: Always include both -webkit-background-clip: text and background-clip: text. WebKit-based browsers (Safari, older Chrome) require the prefixed version. All modern browsers support the unprefixed version, but including both ensures maximum compatibility.
Css Gradient Syntax Guide

Tailwind CSS Gradient Generator

The Tailwind gradient generator output covers all standard use cases. For a basic two-stop linear gradient aligned to one of Tailwind's 8 directions, the output uses clean utility classes:

/* 2-stop linear, bottom-right direction */
bg-gradient-to-br from-[#9333ea] to-[#06b6d4]

/* 3-stop linear — Aurora preset */
bg-gradient-to-tr from-[#10b981] via-[#9333ea] to-[#0ea5e9]

/* Custom angle (not in Tailwind's 8 directions) */
bg-[linear-gradient(155deg,#9333ea_0%,#06b6d4_100%)]

Tailwind 3+ supports arbitrary values for all these cases. The Tailwind CSS gradient generator in this tool automatically detects whether your angle maps to a standard direction class or requires the arbitrary value bracket syntax.

Gradient Generator HTML Output

To use the generated gradient code directly in an HTML file without an external CSS file, add it to an inline style attribute or a <style> block:

<!-- Inline style usage -->
<div style="background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%); height: 200px;"></div>

<!-- Style block usage -->
<style>
  .hero-bg {
    background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);
  }
</style>

CSS Border Gradient Generator

CSS does not support gradient values in border-color directly. The standard workaround uses background-clip: padding-box and border-box together:

/* CSS border gradient technique */
.gradient-border {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #9333ea, #06b6d4) border-box;
  border-radius: 12px;
}

The first layer (padding-box) fills the element's interior with white. The second layer (border-box) fills the entire box including the border area with the gradient. Since the interior is covered by white, only the border strip shows the gradient. Use the CSS from this CSS gradient generator background tool as the second gradient value.

Mesh Gradient Generator

A mesh gradient produces an organic, multi-directional color blend — like a soft aurora or watercolor wash. Unlike linear or radial gradients with a clear direction, mesh gradients appear to flow from multiple points simultaneously.

Pure CSS mesh gradients stack multiple semi-transparent radial gradients:

/* CSS mesh gradient technique — 4 color blobs */
background-color: #0f0a1e;
background-image:
  radial-gradient(at 20% 20%, rgba(147, 51, 234, 0.7) 0%, transparent 55%),
  radial-gradient(at 80% 10%, rgba(6, 182, 212, 0.6)  0%, transparent 50%),
  radial-gradient(at 50% 80%, rgba(236, 72, 153, 0.5) 0%, transparent 55%),
  radial-gradient(at 85% 75%, rgba(249, 115, 22, 0.4) 0%, transparent 45%);

For more advanced mesh gradients with SVG control points and interactive dragging, specialized tools like Mesher by CSS Hero or MagicPattern provide a dedicated interface. This gradient generator is ideal for the standard CSS gradient types; the article above gives you the CSS foundation to build a mesh manually.

Grainy Gradient Generator

A grainy gradient adds an analog, film-grain texture over a standard CSS gradient. The effect uses an SVG feTurbulence filter layered on top of the gradient background. It is popular for retro-style websites, product packaging mockups, and UI cards that need tactile depth.

The core CSS technique:

/* Step 1: Set your gradient (use any gradient from this tool) */
.grainy-card {
  background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);
  position: relative;
}

/* Step 2: Overlay SVG noise using a pseudo-element */
.grainy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}

Generate your gradient using this tool, then add the grainy overlay. Adjust the baseFrequency value (0.4–0.9) to control grain coarseness, and opacity for intensity. Tools like gggrain by fffuel provide a dedicated grainy gradient generator interface if you need more control.

RGB Gradient Generator

An RGB gradient generator works identically to a hex-based gradient generator — the underlying color model is the same. CSS accepts both #hex and rgb() / rgba() notation in gradient stops. Use rgba() when you need transparency in a color stop:

/* RGB gradient with transparent stop */
background: linear-gradient(135deg, rgba(147, 51, 234, 1) 0%, rgba(6, 182, 212, 0) 100%);

/* Useful for overlay gradients on images */
background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);

This tool accepts hex codes. For RGBA with transparency, write the gradient CSS manually using the colors from the tool as a reference.

Gradient Generator for Minecraft

Searches for Minecraft gradient generator or minecraft block gradient generator refer to a completely different type of tool — one that applies color gradients to in-game text: nicknames, chat messages, item lore, and signs. These generators produce Minecraft color codes (§-prefixed or &-prefixed legacy codes, or modern {color:"#rrggbb"} JSON/MiniMessage syntax).

For Minecraft text gradients, see dedicated tools such as Birdflop RGB Gradient Creator or MagmaNode Minecraft Gradient Text Generator. Both tools apply gradient color transitions character-by-character across your text and output the plugin-compatible formatted string.

How Gradient Color Stops Work

A color stop has two components: a color value and a position. The position is a percentage (or length) along the gradient line. When two adjacent stops have the same position, the gradient makes a hard edge rather than a smooth transition:

/* Smooth transition */
background: linear-gradient(90deg, #9333ea 0%, #06b6d4 100%);

/* Hard edge at 50% — two-band split */
background: linear-gradient(90deg, #9333ea 0% 50%, #06b6d4 50% 100%);

This hard-edge technique (called a color band) is used for striped backgrounds, progress bars, and flag-inspired designs. The gradient generator above supports up to 6 stops — enough for most real-world gradients. For 3-color or 4-color gradients, distribute the stops evenly (0%, 50%, 100% or 0%, 33%, 66%, 100%) as a starting point, then adjust for the visual balance you need.

CSS3 Gradient Generator (Modern CSS)

The term CSS3 gradient generator is a legacy phrase from when gradients were a CSS3 feature requiring -webkit- prefixes. In 2026, all major browsers support unprefixed gradient functions natively — no vendor prefixes needed for linear-gradient(), radial-gradient(), or conic-gradient(). The only exception is -webkit-background-clip: text, which still benefits from the prefix alongside the standard version.

When to Use Each Output Format

FormatUse WhenHow to Get It
CSS codeAdding gradient to a website stylesheet or <style> blockClick Copy CSS
Tailwind classesBuilding with Tailwind CSS frameworkClick Copy Tailwind
PNG imageSocial media, Figma/Sketch asset, wallpaper, presentation slideClick Export PNG (1920×1080)
SVG fileScalable design asset, logo background, inline HTML SVGClick Export SVG
FAQ

Gradient Generator — Frequently Asked Questions

Answers to the most common questions about CSS gradients, this tool, and related topics.

Use the linear-gradient() function on the background property: background: linear-gradient(135deg, #9333ea 0%, #06b6d4 100%);. The first argument is the angle or direction; the rest are color stops. Use the tool above to build it visually and copy the exact CSS — no manual syntax needed.
Linear gradients transition colors along a straight line at a set angle — the most common type for backgrounds and buttons. Radial gradients radiate outward from a center point in a circle or ellipse — useful for glows and spotlights. Conic gradients sweep colors around a center point like clock hands — ideal for pie charts and color wheels. All three are supported by this free gradient generator.
Set the gradient as the element's background, then clip it to the text shape: background: linear-gradient(135deg, #9333ea, #06b6d4); -webkit-background-clip: text; background-clip: text; color: transparent;. Switch to Text mode in the generator above to preview this live and copy the complete snippet. Always include the -webkit- prefix for Safari compatibility.
Yes — the tool outputs Tailwind classes alongside the CSS code in the Tailwind row. For standard angles it produces readable classes like bg-gradient-to-br from-[#9333ea] to-[#06b6d4]. For three-stop gradients it adds via-[#color]. For radial, conic, or custom angles it uses Tailwind's arbitrary value syntax. Both rows have a one-click Copy button.
Click the ⬇ PNG button at the bottom of the tool. Your gradient is rendered onto an HTML Canvas element at 1920×1080 pixels and downloaded directly to your device — no server upload, no account needed. The file is named gradient-webtooltrix.png and is immediately usable in Figma, Photoshop, Canva, Google Slides, or any design app.
CSS doesn't support gradients directly in border-color. The standard technique uses two stacked backgrounds: background: linear-gradient(white, white) padding-box, linear-gradient(135deg, #9333ea, #06b6d4) border-box; combined with border: 2px solid transparent;. The inner layer fills the content area with white; the outer layer shows the gradient only in the border strip. Use the CSS from this tool as the second value.
A mesh gradient blends colors from multiple points in all directions simultaneously — like a soft aurora or colour cloud — with no clear direction or center. Standard CSS gradients have a defined axis (linear) or center (radial). Mesh gradients are created in CSS by stacking multiple semi-transparent radial-gradient() layers, or using SVG/WebGL for more precise control. This tool handles standard CSS gradients; see the article above for the CSS mesh technique.
A grainy gradient overlays SVG noise (via feTurbulence filter) on top of a standard CSS gradient, producing an analog film-grain texture. The technique uses a ::before pseudo-element with an inline SVG data URI as the background image, blended with mix-blend-mode: overlay. Generate your base gradient here, then follow the CSS recipe in the article above to add the grain layer.
No — this is a CSS gradient generator for web design. A Minecraft gradient generator applies color gradients to in-game text: nicknames, chat messages, item names, and sign text. It outputs Minecraft color codes (§-codes, &-codes, or MiniMessage format) — not CSS. For Minecraft text gradients, use dedicated tools like Birdflop RGB Gradient Creator or MagmaNode Minecraft Gradient Text Generator.
An AI gradient generator uses machine learning to suggest color combinations or generate gradients from a text prompt. Tools like Adobe Firefly and some Figma plugins offer this. This WebToolTrix tool uses a curated random gradient system (hit 🎲 Random) that picks from dozens of high-contrast, aesthetically tested color pairs — giving you beautiful results instantly without any AI processing delay.

WebToolTrix is independently built & maintained by The WebToolTrix Team. Questions or corrections? admin@webtooltrix.com · About us