How to Change SVG Color Online Free: Fill, Stroke & Transparent PNG
An icon or logo in the wrong colour does not need a desktop design app. In SVG, colour lives in a few attributes — fill for the inside of a shape, stroke for its outline and stop-color for gradient stops[1][2][3] — and the SVG Color Editor collects them into one palette you can change.
Where colour lives in an SVG
| Attribute | What it colours | In the editor |
|---|---|---|
| fill | The inside of shapes and text[1] | Pick a swatch and choose a new colour |
| stroke | The outline of shapes[2] | Edited in the same palette as fills |
| stop-color | One point of a linear or radial gradient[3] | Each gradient stop appears as its own swatch |
| PNG export | — | PNG up to 4096 px wide; transparent wherever the SVG has no background |
How to recolour an SVG
Open or paste the SVG
Drop a static SVG of up to 1 MB into the editor, or paste the SVG markup.
Check the detected palette
The editor groups the fill, stroke and gradient colours it finds into a palette of up to 64 colours.
Pick new colours
Click a swatch and choose a colour or paste a HEX code. Every element using that colour updates together.
Download SVG or PNG
Save the recoloured SVG, or render a PNG up to 4096 px wide. The PNG keeps the SVG's background; areas with none stay transparent.
If your SVG is rejected
- The editor accepts a deliberately limited set of elements: shapes, paths, text, groups, gradients and clip paths. Inkscape's own editor data (page settings, layer names, licence metadata) is removed on open, because browsers never draw it. A <style> block is applied when its rules use simple element, class or ID selectors. Files containing scripts, embedded images, <foreignObject>[4], filters, masks or more complex CSS are rejected rather than changed behind your back.
- Fix: remove the unsupported part, or export a plain SVG from your design app (in Inkscape, 'Plain SVG'; elsewhere, turn off embedded fonts or images), then open it again.
- Laser cutting or Cricut: after recolouring, the SVG Panel Splitter can divide a large design into panels that fit your machine bed.
Frequently Asked Questions
Can I edit multi-colour illustrations?
Yes, up to 64 distinct colours across fills, strokes and gradient stops.
Why was my Illustrator or Inkscape file rejected?
Inkscape's editor data is removed automatically, and <style> rules with simple element, class or ID selectors are applied. A rejection usually comes from what the drawing uses: a filter, a mask, a blend mode, an embedded image or CSS beyond those simple rules. The editor rejects anything outside its allowed set instead of guessing; export a plain SVG without those and try again.
Can I export a high-resolution PNG?
Yes. Set a width of up to 4096 px and the vector shapes are rendered sharp at that size. The PNG keeps the SVG's own background, so areas with no background stay transparent.
Sources
Checked against the original pages on November 8, 2026. Requirements change; the official page always wins.
- fill (SVG attribute) — MDN Web Docs
- stroke (SVG attribute) — MDN Web Docs
- stop-color (SVG attribute) — MDN Web Docs
- <foreignObject> (SVG element) — MDN Web Docs