SVG Color Replacer

Paste SVG markup and recolor every fill and stroke instantly without an editor.

About the SVG Color Replacer

Icon libraries and exported vector graphics often ship with hardcoded fill and stroke colors baked directly into the SVG markup, which means recoloring an icon to match your brand normally means manually hunting through the code for every fill="..." and stroke="..." attribute. This tool takes any pasted SVG code, finds every color reference inside it automatically, and lets you replace them instantly with a live preview, no code editor required.

How it works

Paste raw SVG markup into the input area, and the tool scans it for every fill and stroke attribute (including ones set via inline style attributes) and lists each unique color it finds. Assign a new color to any detected value, and the tool performs a precise find-and-replace across the SVG's XML, updating only genuine color attributes rather than blindly replacing text, and re-renders the SVG live so you can confirm the recolor looks correct before copying the updated markup.

Common use cases

  • Recoloring a downloaded icon from an icon library to match a specific brand color
  • Quickly testing how the same icon looks in several different color combinations
  • Fixing an SVG that was exported with a placeholder or incorrect color baked in
  • Batch-updating every occurrence of one color across a complex, multi-path SVG illustration
  • Preparing a set of matching-colored icons for a UI without reopening a vector design tool

Tips for best results

If a color in your SVG doesn't show up in the detected list, check whether it's defined inside a