SVG Color Changer

Replace hex colors in SVG code with a new color. Change one specific color, or every hex color in the file at once.

1 Paste your text and pick the options

2 Your answer

Your answer shows here as you type.

How to use the SVG Color Changer

  1. Paste the SVG code into the box.
  2. Enter an old color to change only that color, or leave it empty to change every hex color.
  3. Pick the new color, then copy the updated SVG code from the result.

Frequently asked questions

Does this change named colors like red or rgb() values?

No. It changes hex codes written as #rgb or #rrggbb. Named colors such as red and rgb() values are left as they are, so convert them to hex first.

Can I change only one color in the file?

Yes. Enter the old color in the Old color box, such as #ff0000. Only matching hex codes are replaced. Leave the box empty to replace every hex color.

Is my SVG sent to a server?

No. The change runs in your browser, and the SVG code is not uploaded.

Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.