By Usama Farooq · Published 9 Apr 2026 · Updated 16 Nov 2026
How to Change Icon Colors
If you're building a website or app, icon colors matter. A consistent icon color across buttons, menus, and cards makes your UI look professional. The fastest way to match your brand is to change icon color using a hex code like #7571f9 and export a clean, transparent PNG. This guide covers the full workflow — which formats recolor well, how transparency actually works, what sizes you need for favicons versus app icons, and how to fix the common problems — all with unlimited free use and no server upload.
TL;DR — the short answer
To change an icon's color free with no signup, open an icon color changer, upload an SVG (best) or transparent PNG, paste your hex color, and download the PNG. SVG sources stay perfectly sharp; everything runs in your browser.
Best file type: SVG icons
SVG is a vector format, so it stays sharp at any size. Recoloring an SVG is also cleaner because the icon is made of shapes, not pixels. If you have an SVG icon, it's the best option for changing icon color and exporting a transparent PNG. Free icon libraries — Lucide, Heroicons, Feather, Material Symbols — all ship SVG originals, so you rarely need to start from a pixel format at all.
Icon formats, and why they matter
SVG is resolution-independent XML: shapes with fill and stroke colors. Recoloring is exact, scaling is lossless, and file sizes are tiny. It is the source format you want whenever possible.
PNG is the universal raster format with full alpha transparency. It recolors well when the icon is effectively a mask — one solid color on transparency — because the tool can keep the alpha channel and swap the color underneath. Multi-color PNGs can only be tinted, not truly recolored.
WebP behaves like PNG here (it supports transparency) with smaller files, but tooling support is spottier. Convert to PNG if a tool complains.
ICO / ICNS are container formats for favicons (Windows) and macOS icons. You don't recolor these directly — you recolor the source, then export into these containers at the required sizes.
JPG has no transparency and lossy artifacts around edges. It is simply the wrong format for icons; if a JPG is all you have, expect soft edges and plan to rebuild from SVG for anything important.
Step-by-step: change icon color online free (hex code)
Use ToolsOfWeb's Icon Color Changer Online Free tool. It recolors icons locally in the browser and exports PNG files (transparent by default).
- Upload an SVG icon (recommended) or a PNG/WebP icon.
- Paste your brand color hex code (example: #7571f9).
- Choose 2x output scale for crisp edges.
- Click Change color and download the PNG output.
How to recolor PNG/JPG icons correctly
Pixel images behave differently. A transparent PNG icon can be recolored by treating it like a mask. This works best for single-color icons (black/gray) on transparent backgrounds. For photos or multi-color images, a “tint” workflow is more appropriate.
- Icon mask mode: best for single-color icons with transparent backgrounds (keeps edges smooth).
- Tint mode: best for photos or multi-color images (changes the overall tone, not exact recolor).
Transparency handling: the alpha channel, simply explained
Every pixel in a PNG has four values: red, green, blue, and alpha — opacity from 0 (invisible) to 255 (solid). Icon edges look smooth because of partial alpha: anti-aliased edge pixels are semi-transparent blends of the icon color and the background. Mask-mode recoloring preserves these alpha values exactly and only swaps the RGB underneath, which is why edges stay buttery smooth instead of turning into jagged stair-steps.
Two mistakes break this. First, recoloring a flattened icon (white background baked in) — there is no alpha to preserve, so you get a colored square. Always start from the transparent original. Second, exporting to JPG at the end, which discards the alpha channel entirely and fills transparency with a solid color. For icons, the export format is PNG or WebP, full stop.
Favicon vs app icon: what sizes you need
Favicons (browser tabs) are tiny: 16×16 and 32×32 cover desktop browsers, plus 180×180 for Apple touch icons and 192×192 / 512×512 for Android/Chrome. At 16 pixels, fine detail vanishes — the best favicons are bold, simple marks. If your icon is intricate, design a simplified favicon variant rather than shrinking the full logo.
App icons (iOS/Android) need larger exports: 1024×1024 source for iOS, adaptive-icon layers for Android, and maskable variants with extra padding (the “safe zone”) so Android's circular and squircle masks don't crop your mark. Recolor once at the large size, then export down to every required size — downscaling preserves crispness.
UI icons (in-app, 16–48px) sit between the two. Export at 2x or 3x the display size for retina screens, and keep stroke widths consistent across the set — mixed stroke weights are the fastest way to make an icon set look amateur.
Dark mode: the icon problem nobody plans for
A dark icon looks perfect on a light background and vanishes on dark mode. The professional fix is two icon variants — one for each theme — swapped with a CSS media query or a theme class. If you can only ship one, pick a mid-tone brand color with enough contrast against both backgrounds, and test it: squint at your UI in both themes before calling it done.
Common issues (and fixes)
1) My JPG icon has no transparency
JPG doesn't support transparency. If you need a transparent icon, start from SVG, PNG, or WebP.
2) The PNG output looks soft
Increase output scale to 2x or 4x. Also prefer SVG sources when possible for perfect edges.
3) Some parts of the SVG didn't change color
Some icons use strokes instead of fills. Switch SVG mode to Stroke or Both and try again.
Format cheat sheet
| Format | Transparency | Recolor quality | Use for |
|---|---|---|---|
| SVG | Yes (vector) | Perfect | Source format, web icons |
| PNG | Yes (alpha) | Great for single-color | Favicons, UI icons, export |
| WebP | Yes (alpha) | Great for single-color | Smaller web exports |
| JPG | No | Poor | Photos only — not icons |
FAQs
Upload the icon to a browser-based recolor tool, paste your brand hex code (like #7571f9), and download the result as a transparent PNG. SVG sources give the cleanest result; single-color transparent PNGs work well too. No signup is needed and nothing is uploaded.
SVG icons are vectors made of shapes with fill and stroke attributes, so recoloring means rewriting a color value — perfectly sharp at any size. PNG icons are pixels, so recoloring means remapping pixel colors, which works cleanly only for single-color icons on transparent backgrounds.
Technically yes with a tint, but JPG has no transparency and photographic compression artifacts, so the result rarely looks like a proper icon. Convert to PNG first or, better, find the SVG original — icon libraries like Lucide, Heroicons, and Material Symbols all offer SVG downloads.
It depends on the use: favicons need 16×16, 32×32, and 180×180 (Apple touch); app icons need up to 512×512 plus maskable variants for Android. The practical workflow is designing or recoloring at a large size (512px) and exporting down — downscaling stays crisp, upscaling does not.
The icon likely uses strokes instead of fills (or both). Many outline icon sets draw with stroke attributes, so a fill-only recolor misses them. Switch the tool to stroke mode — or a combined fill+stroke mode — and try again.
For generic icons it hardly matters, but for unreleased product assets it does. A client-side tool recolors entirely in your browser, so proprietary icons never touch a server. As a bonus, it also works offline once loaded.
Related tools
- Icon Color Changer Online Free — recolor the icons this guide describes, right in your browser.
- Convert SVG to PNG: SVG to PNG
- Compress PNGs for the web: Image Compressor
- Resize icons to exact pixels: Image Resize
