SVG Color Replacer

SVG Color Replacer

Local Processing

Search and replace fill, stroke, and stop-color attributes inside SVG markup directly in your browser.

How It Works & Processing Standards

Search and replace fill, stroke, and stop-color attributes inside SVG markup directly in your browser.

Tool processing runs in your browser. If you create a calculator or conversion share link, its values are included in the URL. See the privacy policy for account, analytics and advertising data.

Current Limits

  • Maximum input length: 100,000 characters

Use it to recolor icon SVGs in a brand color. Pick the color to replace and the new one to change every match, or turn on "replace all" to make every HEX color (#…) in the source the new one.

What You Can Do

Replace one color
#FF0000 and #ff0000 are treated as the same color.
Replace all
Every HEX color (#…) in the source becomes the new color.

How to Use SVG Color Replacer

  1. 1
    Paste the SVGPaste the SVG source.
  2. 2
    Pick colorsThe color to replace and the new color.
  3. 3
    CopyCopy the updated SVG.

Examples

Red to blue
Input: <svg><rect fill="#ff0000" stroke="#FF0000"/></svg>, #ff0000 → #3366cc
Result: <svg><rect fill="#3366cc" stroke="#3366cc"/></svg>

Common Use Cases

  • Recoloring free icons in your brand color
  • Making icon colors for dark mode

Frequently Asked Questions (FAQ)

Does it change colors set by CSS classes?

It changes HEX values written in the SVG source, so colors inside <style> change if they match. Named colors such as red and colors in external CSS files do not.

Have feedback or ideas for this tool? Suggest & Inquire →