Load an SVG to see its recolored code here.
How to change the colors of an SVG
Recolor icons, logos and illustrations without opening a design tool. Everything happens on this page.
- Add your SVG. Drop a file, paste the code with Ctrl+V, or load it from a link (GitHub file pages work too).
- Pick a style. Tint, Colorize, Hue or Solid recolor with one color; Grayscale removes it; Original keeps the colors for fine-tuning.
- Choose a color and fine-tune. Adjust hue, saturation and lightness, and compare before and after side by side.
- Download or copy. Get the SVG file, or code for React, Vue, Svelte, Flutter, Tailwind and 19 more formats.
Does it keep gradients and shading?
Yes. Colorize and Hue keep each color's lightness, so highlights, shadows and gradients survive; gradient stops are recolored one by one. Solid turns everything into exactly one color, which suits single-color icons.
Is my SVG uploaded or stored?
The editor works on the SVG in your browser and sends only its list of colors to the server to compute the new ones. Nothing is stored. When you load a link, the server downloads that SVG for you.
Which colors does it find?
Hex colors, rgb() and hsl() (with transparency), CSS color names and currentColor, in attributes and in style. Elements without a color, which browsers draw black, are recolored too.
Is it free? Can I use it in my app or README?
Yes. It is free and open source (MIT), with no account or API key. The API tab has ready-to-run code for 21 languages and a Markdown snippet that embeds a recolored icon in a README.
Use it from AI agents
Let your coding agent recolor icons for you. No API key, no sign-up.
MCP server
Add it to Claude Code, Cursor or any MCP client. Tools: recolor_svg, list_svg_colors, list_recolor_modes.
llms.txt
A short plain-text guide to every endpoint, parameter and mode. Point an agent at it and it can use the API right away.
JSON in, JSON out
Send SVG markup as JSON and get the result plus a color mapping back. The OpenAPI spec has stable operation IDs for generating tools.
POST /api/recolor?format=json
{"svg": "<svg …>", "color": "tomato", "mode": "solid"}
HTTP API
Everything the editor does is available over HTTP with the same modes and options. The API tab above turns your current settings into ready-to-run code for 21 languages and clients, or an AI prompt for any other.
- GET
/api/recolor?url=…Recolor a linked SVG. Cached, so it works as an <img> src. - POST
/api/recolorUpload a file, send JSON, or send the SVG as the body. - GET
/api/map-colors?colors=…Recolor just a list of colors, for design tokens or themes. - POST
/api/recolor/batchMany files in, one ZIP out. - GET
/api/palette?url=…List the colors in an SVG. - GET
/api/modesAvailable modes and option ranges.