SVG Color Changer: Recolor SVG Fills, Strokes and Gradients
See every color in your SVG, replace any of them, or shift the hue of the whole file.
SVG Color Changer tool
1Add your SVG
2Adjust the options
3Preview and download
Input and output codeView, edit and copy the code
Under the hood
How SVG Color Changer works
An SVG color changer finds every fill, stroke and gradient color in an SVG and lets you replace them. You can recolor one color at a time or apply a hue shift, invert or grayscale to the whole file.
- →→→
Scan for colors
The tool reads fill, stroke, stop-color, flood-color and lighting-color from attributes, inline styles and style blocks, and counts how often each color is used.
DOM walk · style parsing - #ef4444#f97316#eab308#22c55e#06b6d4#3b82f6
Build the color list
Every unique color is listed with its usage count. Named colors, rgb() and hex are all normalised to hex.
Color normalisation - OriginalRecolored
Remap colors
Pick a new color for any entry, or apply a global effect: a hue shift from 0° to 360°, invert or grayscale. Your own picks override the effect.
Hue shift · invert · gray Write the new SVG
The remapped colors are written back to the same attributes, so the structure of the SVG is unchanged.
DOM serialize
What the color changer covers
- Gradients too
- Gradient stops are recolored like any other color.
- Global effects
- A hue shift recolors an entire palette consistently in one move.
- Per-color control
- Change a single color without touching the others.
Step by step
SVG Color Changer process
Four steps recolor an SVG. Start with a global effect, then fine-tune individual colors.
Add your SVG
Drop a file, paste code or press the sample button.
Tip: The color list appears at once.
Try a quick effect
Drag Hue shift, switch on Invert, or turn on Grayscale.
Tip: The recolored preview updates instantly.
Fine-tune single colors
Click a color’s swatch to pick a replacement.
Tip: Changes override the global effect.
BeforeAfterDownload the recolored SVG
Press Download to save it.
Tip: Rendered locally.
Reference
SVG Color Changer settings / conversion chart
The table lists the color properties the tool changes. The chart compares how many places each property typically appears.
Where colors usually live in an SVG
At a glance
- Converts best: fill.
- Needs the most care: filters.
Guide: fills are the most common place, followed by strokes and gradient stops.
| Property | Where it appears | Recolored |
|---|---|---|
| fill | Shapes and text | Yes |
| stroke | Outlines and lines | Yes |
| stop-color | Gradient stops | Yes |
| flood-color and lighting-color | Filters | Yes |
| Colors in style attributes and style blocks | CSS inside the SVG | Yes |
| Colors from external CSS | Outside the file | No |
Answers
SVG Color Changer FAQ
Questions people ask about the SVG Color Changer, answered for this specific use case.
Can I recolor gradients?
Yes. Gradient stop colors are detected and remapped like any other color.
What does the hue shift do?
It rotates every color around the color wheel by the number of degrees you set, which keeps the relationships between colors.
Does it change CSS in a style block?
Yes. Colors in inline style attributes and in style blocks inside the SVG are updated.
Why was a color not listed?
Colors from external stylesheets, currentColor and url() references are not detected.
How do I undo my changes?
Press Reset colors in the list, or press Reset at the top to reload the sample.
All converters
Every free converter and SVG tool
43 free tools that run in your browser. Pick a converter below, or search by format or task.
No converter matches that search. Try “SVG”, “logo” or “PNG”.