SVG Gradients and Patterns Guide: Linear, Radial, and Seamless Tiles
A practical guide to SVG gradients and patterns: how linearGradient, radialGradient, and the pattern element actually work, with tips for smooth stops, banding, and reusable fills.
Build a gradient with as many color stops as you like, pick linear, radial or conic, dial in the angle, and copy the result as a clean SVG or a CSS background, with a big live preview and PNG export, all in your browser.
GigAI SVG Gradient Generator builds linear and radial gradients as clean, copy-ready SVG code with live preview - angle, stops and easing under your control, output free of editor cruft. Everything runs in the page. Nothing is uploaded and there's no account.
The GigAI SVG Gradient Generator is a desktop-grade color studio for the two things designers and developers actually need from a gradient: a resolution-independent SVG and a copy-paste CSS declaration, generated from the same controls so they always match. Add stops, drag them along the track, pick each color, and set the offset by hand for pixel-perfect placement. Switch between a linear gradient with a full 360° angle dial, a radial gradient that blooms from the centre, or a true CSS conic sweep. The SVG output is a proper <defs> with a real <linearGradient> or <radialGradient> painting a rect inside a clean viewBox, so it scales forever, stays editable, and drops straight into a hero section, an <img>, a Figma frame or a mask. Alongside it, the CSS panel emits the equivalent linear-gradient(), radial-gradient() or conic-gradient() background you can paste into a stylesheet or Tailwind arbitrary value. Preview on a checkerboard, light or dark surface, reroll a fresh palette when you want inspiration, and undo/redo through every stop and color you've tried. Nothing is uploaded, the gradient maths, the CSS string and the PNG rasteriser all run locally, so it works offline and never sees your brand colors.
Last updated
Choose linear, radial or conic. For linear, use the angle dial to point the gradient in any direction across the frame.
Add stops, drag them along the track to place them, type an exact offset for precision, and pick each color with the swatch. Remove any stop you don't need.
Preview the gradient on checkerboard, light or dark to see it against your real background, and reroll for a fresh palette if you want a new starting point.
Copy the SVG for markup or the CSS for styles, download a scalable.svg, or export a PNG at 2×. Everything is generated locally in your browser.
Every change updates a scalable SVG gradient and a matching CSS background declaration at the same time, so the vector you paste into markup and the linear-gradient() you paste into styles are always in sync.
Switch gradient type in one click: a linear gradient with a full 360° angle dial, a centre-bloom radial, or a true CSS conic sweep (with an SVG linear fallback where SVG has no native conic).
Add as many color stops as you need, drag them along the track to reposition, type an exact offset, and pick each color with a native swatch. No capping you at two ends.
The SVG is a proper <defs> with a real <linearGradient>/<radialGradient> painting a rect in a tidy viewBox: resolution-independent, tiny, and still hand-editable after you paste it.
Out of ideas? Reroll generates a new harmonious set of stops to start from, then fine-tune by hand. Undo steps back to a palette you liked better.
A big preview on checkerboard, light or dark updates as you drag, and one click rasterises a PNG at 2× on the browser canvas for tools that won't take an SVG or CSS.
Skip fiddling with x1/y1/x2/y2, stop-color and offset attributes. Design visually and copy a correct <linearGradient> or <radialGradient> that just works when you paste it.
Get the SVG for markup, masks and Figma and the CSS for stylesheets and Tailwind from the same set of stops. No drift between what your vector shows and what your CSS renders.
Copy the SVG, copy the CSS, download a crisp.svg that scales forever, or export a transparent-ready PNG for decks and email, all from the gradient you just built.
The gradient maths, the CSS string and the PNG rasteriser all run on your device. Your brand colors and where the gradient is headed never leave the tab.
From quick one-off fixes to daily workflows, see how people put this tool to use.
Design a gradient once, then copy the CSS for a stylesheet or Tailwind arbitrary value and the matching SVG for an inline vector or mask. No drift between the two.
Tune multi-stop gradients to the brand palette and hand off a clean, editable SVG the engineers can drop in unchanged, plus the CSS equivalent for quick prototypes.
Export a real <linearGradient> or <radialGradient> to reference from paths and shapes in your SVG artwork, keeping the fill resolution-independent and re-colorable.
Rasterise a gradient to PNG at 2× for a slide, a story background or an email header where a vector or CSS isn't accepted, without opening a design app.
Everything is processed locally in your browser, your files never leave your device.
Generate smooth, organic SVG blob shapes with sliders for complexity, edge contrast and size, solid or gradient fills, and a seeded re-roll, then copy the SVG or download SVG/PNG. 100% in your browser.
Create seamless, tiling SVG background patterns (dots, grid, diagonal lines, cross, chevron, triangles and circles) with tile-size, color and stroke controls, then copy the SVG or ready-to-paste CSS. 100% in your browser.
Generate layered SVG wave dividers for section transitions: sliders for height, amplitude, wave count and layers, per-layer colors or a gradient, and a flip toggle, then copy the SVG or download SVG/PNG. 100% in your browser.
Minify and clean SVG files in your browser with SVGO, strip editor metadata, round coordinates, drop hidden layers and see the exact bytes and percentage saved. Nothing is uploaded.
Convert SVG to a clean React component in your browser, camelCased attributes, TypeScript or JS, memo, forwardRef and React Native output, with a live preview. Nothing is uploaded.
Animate any SVG in your browser. Pick a preset (spin, pulse, bounce, fade, draw-line, morph), tune duration, easing and iterations, watch it live, then copy a self-contained animated SVG or the CSS keyframes. Nothing is uploaded.
Go deeper on the concepts behind the svg gradient generator.
Hit a snag? Here are quick fixes for the issues people run into most.
SVG has no native conic gradient, so the tool emits a true conic-gradient() in the CSS panel and a linear <linearGradient> fallback in the SVG. Use the CSS for browsers, or export the PNG to bake the conic sweep into pixels for tools that can't render it.
CSS and SVG measure angles differently, but the tool maps the angle dial to both so they render the same. If you edit the exported code by hand, keep the CSS angle and the SVG x1/y1/x2/y2 vector consistent, or re-copy from the tool.
Stops can't cross past their neighbours' positions while dragging. Type an exact offset in the stop's number field instead, or reorder by adjusting offsets, then fine-tune with the track.
PNG is raster and only holds the pixels you exported. Prefer the SVG or CSS wherever the target accepts it, both are resolution-independent, or export the PNG at a larger size before using it.
Two or three stops read as a clean gradient. Add more only for sunset-style multi-hue blends, since every extra stop is another band to balance.
For subtle depth, pick two shades of the same hue rather than two different colors. It looks intentional instead of loud.
Prefer the SVG or CSS over the PNG wherever the target accepts it: both are tiny, sharp at any size, and re-colorable later.
Use the radial type for spotlight and glow effects behind a card or avatar, and linear for full-width hero and button fills.
Copy the CSS straight into a Tailwind arbitrary value like bg-[…] when you want the gradient in a utility-first stylesheet.
Recent updates and improvements to the svg gradient generator.
Initial release, linear/radial/conic gradient generator with unlimited draggable color stops, angle dial, live SVG + CSS output, and SVG/PNG export.
Added undo/redo across stops and colors, keyboard shortcuts (reroll, copy SVG/CSS, undo/redo), and a reroll that seeds a harmonious starting palette.
Added checkerboard/light/dark preview surfaces and a Tailwind-friendly CSS copy so gradients can drop straight into arbitrary utility values.
Every gradient is generated in your browser, the SVG defs, the CSS declaration and the PNG rasterisation all run locally on your device. Nothing is uploaded, stored or logged, so your brand colors and where the gradient is headed stay private. It works offline, and closing the tab leaves no trace.
Free, private and instant. SVG Gradient Generator runs right in your browser.