Skip to content

SVG Gradient Fill

About the SVG Gradient Fill

Paint the solid colors of an existing SVG with a linear or radial gradient, for all shapes or one color only, and copy the plain SVG. Runs in your browser.

How to use it

Examples

Questions

How is this different from the gradient generator?
The gradient generator makes a gradient from scratch, for CSS or a background. This tool takes an SVG you already have and replaces its flat fills with a gradient.
Which fills are changed?
Solid colors set on a shape, or on a group it sits in, and shapes with no fill at all (which SVG draws in black). Shapes with no fill, with a gradient or pattern already, with a transparent color, or colored through a style sheet are left alone and reported.
What do the angles mean?
The same as in CSS: 0 points up, 90 to the right, 180 down. The line reaches the corners of the box, as CSS gradients do.
Why does the angle look different on a long thin shape?
With "Each shape" the gradient is laid over the shape's own box, so on a box that is not square the angle is stretched with it. "Whole drawing" keeps true angles, but needs shapes that are not inside a transform.
Are my files uploaded?
No. Everything runs in your browser, and the file is cleaned before and after.

Free and runs in your browser. Sign in only if you want to save your work.