How the SVG color changer works
Drop one SVG or a whole folder. The tool scans every file for colour values — attributes like fill="#1a73e8",
inline styles like style="stroke: red" and rules inside <style> blocks — and builds one
palette across all of them, sorted by how often each colour appears. Different spellings of the same colour are merged, so
#F00, red and rgb(255,0,0) show up as one swatch. Pick a new colour for any swatch and
every file updates live. Files are edited as text on your device and never uploaded.
Three ways to recolor
- Map each colour — the default. Assign a replacement for any colour you want changed and leave the rest. Right for multi-colour illustrations and two-tone icon sets.
- Replace all with one colour — every fill and stroke becomes a single colour. The quickest way to turn a downloaded icon pack into your brand colour.
- Convert all to currentColor — fills and strokes become
currentColor, so the icon inherits whatever CSScolorits container has. This is how you make an icon themeable, hoverable and dark-mode-ready with a single file.
In every mode, fill="none", gradient references (url(#…)) and existing currentColor are
left alone, and gradient stop-colors are treated as ordinary colours you can map.
What stays the same
Only colour values are touched. Element structure, ids, classes, transforms, comments and formatting are preserved exactly, so the recoloured file diffs cleanly against the original and anything that referenced ids or classes keeps working. If you want the file smaller too, run the output through the SVG Optimizer; to get PNGs of the new colours, use SVG to PNG.
Tips for icon sets
Drop the whole set at once — the palette shows how many files each colour appears in, which immediately reveals stray
off-brand shades (a #231f20 among #000000s is the classic Illustrator export artefact). Map the
strays to the intended colour, download the ZIP, and the set is consistent. For icons you will use inline in HTML, convert
to currentColor and control colour from CSS instead of shipping one file per colour.