Change the colors of an SVG
Recolor an icon, a logo or a whole icon set without opening a design tool. Every color the files use — fills, strokes, gradient stops and colors in their styles, written as hex, rgb(), hsl() or a name — is listed once with how often it appears. Pick a replacement, turn a color into currentColor so it follows your CSS, or shift the hue, saturation and lightness of everything at once; click a spot on the preview to find its color in the list. Download one recolored SVG or PNG, or the whole set as a ZIP.
How to use it
- 1
Drop one SVG or a whole folder of icons, or paste SVG code — every color they use is listed.
- 2
Pick new colors, switch colors to currentColor, or shift hue, saturation and lightness; the previews update as you go.
- 3
Download the recolored SVG or PNG, copy the code, or download the whole set as a ZIP.
Questions
Which colors are found?
Colors in fill, stroke, stop-color, color, flood-color and lighting-color — as attributes, in inline styles and in the file's <style> rules — written as hex (3, 4, 6 or 8 digits), rgb(), rgba(), hsl(), hsla() or a color name. The same color written differently is listed once.
Is the rest of the file changed?
No. Only the colors you replace change; shapes, gradients and structure are left exactly as they were. A color with transparency keeps its transparency when you replace it.
How do I make an SVG icon follow my text color?
Click currentColor next to its color (or "Make all colors currentColor" for a one-color icon). The icon then takes the CSS color of whatever it sits in, so the same file works on light and dark backgrounds and in hover states.
Can I recolor a whole icon set at once?
Yes. Drop many files or a folder: the color list covers all of them, one change applies to every file, and you can download them all as a ZIP of SVGs or PNGs.
How do I change every color at once?
Use the hue, saturation and lightness sliders. They shift every color you haven't set by hand — handy for making a dark-mode or brand-colored variant of an illustration.
Is my SVG uploaded?
No. Everything happens in your browser.
More free SVG tools
- SVG viewerPreview, edit, optimize, rotate and resize SVG code with a live preview.
- SVG optimizerCompress and minify SVG files — smaller, same look. Batch to ZIP.
- PNG to SVGTrace a PNG logo, icon or drawing into a scalable SVG with real vector shapes.
- SVG to ReactTurn SVG files into clean React components (JSX or TSX), one or a whole icon set.
Need more than one change?
The Splice editor edits SVGs visually — shapes, text, colors, layers — across many files at once, with the code in sync.
Open the editor