Change color of image
Swap one colour in a photo, logo or animated GIF for another. Shadows, highlights and soft edges stay; or make the colour transparent, or keep one colour and turn the rest black and white. An SVG stays a vector. Not AI, full size, and the image never leaves this device.
Open a picture, then tap the colour you want to change.
Tap the picture on the colour you want to change; drag the handle to compare before and after.
SVG colours · stays a vector
currentColor takes the CSS color of the element around the SVG when the SVG is pasted inline into HTML (or used through <use>). Inside <img src> or as a CSS background it draws black. Give the <svg> a class and set:
.icon { color: #2f6fd8; }Save
The SVG keeps its shapes, text and viewBox; only colour values change. Scripts and outside links are removed.
Colour swap
Tap the colour to keep. Every other pixel turns grey at its own lightness, and the kept colour stays exactly as it was.
Each pixel keeps how much lighter or darker it was; only hue and colourfulness change.
One colour turns a whole logo or icon white, black or any colour, keeping its transparency.
Limit the area
Choose Paint above the picture and brush over the part to change (in Colour splash, the part that may keep its colour); Erase takes paint back.
Save
Full size up to 24 MP. PNG and WebP keep transparency; JPG puts white behind it. The file holds no EXIF: no camera, date or location.
Privacy: nothing is uploaded. The colours are changed inside this browser. The page sends an anonymous page-view count and seven fixed event names (open, one colour, SVG opened, colour splash made, colour splash saved, download, animated GIF saved), never the image, its file name, its colours or its size. To count the SVG event once per visit, this tab's sessionStorage keeps one flag (polyatic-recolor-svg), which the browser clears when the tab closes; nothing else is stored.
How to change a colour in an image
- Open the image. Tap Choose an image, drop the file on the box, or copy a picture and press Ctrl+V (⌘V on a Mac). A phone photo is turned upright first.
- Tap the colour you want to change on the picture, or type its hex code. The tap averages a 3 × 3 pixel spot, so JPEG noise does not throw it off.
- Pick the new colour with the colour picker, a hex code, or Pick the new colour from the picture and a tap. Tick Transparent to remove the colour instead.
- Tune the range. Tick Highlight what changes, raise Tolerance until the whole area is covered and lower it if other things join in. Use Connected only or Only where I paint when the same colour appears elsewhere.
- For a whole logo in one colour, press One colour and pick White, Black or any colour. If the picture has no transparent background (a JPG), tap the background first.
- To keep one colour and turn the rest black and white, press Colour splash and tap that colour; Keep another colour adds up to three, and Black and white only keeps none.
- Compare and save. Drag the handle for before and after, add more swaps if needed, and download PNG, JPG or WebP at full size.
- An SVG stays a vector. Open an
.svgand the page lists every colour in it with how many places use it. Tap one and pick the new colour, or press Make it one colour, Black, White or currentColor. Download SVG keeps every path, text and the viewBox; Download PNG draws it at 1× to 4×.
What it cannot do
- It is not AI. It changes colours, not objects: it does not know what a shirt or a car is. A colour that also appears in the background changes there too, unless you tick Connected only or paint a mask.
- Folds in near-black and near-white stay as faint as they were. Keep shading moves every matched pixel by the same lightness step, so a black shirt can become a bright red with its folds: on a test gradient from RGB 15 to 64 (OKLCH lightness 0.17 to 0.37), tapping the middle and choosing #E02020 gives reds from #AE000B to #FF5045 with a mean chroma of 0.22, as colourful as #E02020 itself. What it cannot do is invent contrast: RGB 15 and 20 differ by only 0.023 in lightness, and 245 and 250 by 0.015, so a fold that was barely visible in black or white is barely visible in the new colour. And every other pixel of that colour changes too (black hair, black text) unless Connected only or a painted area limits it.
- A PNG, JPG or WebP stays pixels; only an SVG stays a vector. One colour on a picture keeps it pixels at the same size (to trace a picture into a vector, use Image to SVG), and a gradient, shadow or photo inside a logo becomes one flat colour. On an SVG only colour values are rewritten, with these limits: a picture embedded inside the SVG (a JPG or PNG within it) is not recoloured; filters, blend modes and masks are kept but not recalculated, so their look may shift; colours set by a script or by a stylesheet outside the file cannot be seen, so they are not listed; and scripts, event handlers and links to outside files are removed from the output, and the page says when it removed any. A compressed
.svgzmust be saved as plain SVG first. - Colour splash keeps a colour, not an object: anything else in the photo of the same colour stays in colour too, unless you paint Limit the area over the part you want. It does not find objects by itself.
- Textures with many colours (a patterned fabric, a sunset, hair) need a larger tolerance or several swaps, and a large tolerance starts catching neighbouring colours.
- Strong colour casts and reflections of the old colour on nearby skin or objects are not changed unless they fall inside the range.
- Photos over 24 megapixels are scaled down to 24 MP for the download (the page says so).
- An animated GIF can have at most 300 frames of 2 megapixels each (1600 × 1250 is the limit); a longer or larger one opens as a still picture of its first frame, and the page says so. The GIF format sets the rest: each saved frame gets its own palette of at most 256 colours, so a smooth gradient can band; a pixel is fully transparent or fully opaque, so Transparent gives hard edges with no soft anti-aliasing; and every frame is saved whole, so a GIF that stored only the changed part of each frame can come out several times larger. A moving object is not followed: the tap point and the painted area stay at the same place in every frame. Animated WebP and APNG open as their first frame.
- Nothing is saved. Close the tab and the swaps and the paint are gone, so download the result first.
How "keep shading" works, with numbers
Each pixel is measured in OKLCH, a colour space whose lightness tracks what the eye sees. Say you tap a red at lightness 0.60 and choose a blue whose lightness is also 0.60. A pixel in a fold of the fabric at lightness 0.48 becomes blue at 0.48; a highlight at 0.73 becomes blue at 0.73. Hue and chroma (how colourful) are set to the blue's, and chroma is lowered only where a screen cannot show that blue at that lightness. Pick a darker blue (0.50) and every pixel moves 0.10 darker, so the folds stay folds.
Tolerance is the distance from the tapped colour, in OKLab units × 100 (about 1 is a just-visible step), with lightness counted at half weight so a colour's own shades are caught before a grey of similar brightness. Pixels within the tolerance change fully; over the next Softness units they change less and less.
Edges get their own treatment. A pixel on the rim of a red shape on grey is part red, part grey: (161, 111, 105) is half and half. Simple tools either recolour it fully (a hard halo) or leave it (a red fringe). This page finds the nearest pure red and the nearest grey, works out the share of red (here 0.50), recolours only that share and mixes the grey back in: the pixel becomes (106, 127, 167), half blue, half grey, with no red left.
Questions
How do I change the color of an image online for free?
Open the image on this page, tap the colour you want to change, and choose the new colour with the picker or a hex code. The preview updates at once; raise Tolerance if parts of the colour are left, then download a PNG, JPG or WebP at the image's full size. There is no sign-up, no watermark and no credit counter, because the work happens in your browser.
How do I replace a color in an image with another color and keep the shading?
Use Keep shading (the default). Every pixel keeps how much lighter or darker it was than the colour you tapped, and only its hue and chroma become the new colour's. A red shirt with folds becomes a blue shirt with the same folds. Flat colour instead paints the exact new colour, which suits flat logos and icons.
How do I replace a color in an image with transparent?
Tap the colour, tick Transparent under New colour, and download as PNG or WebP, which keep transparency (JPG cannot, so a JPG gets white there). Edge pixels that were half that colour become half transparent, so the cut has no hard stair-steps. For a white background around a logo, Remove White Background adds border detection and halo removal.
How do I make a logo white?
Open the logo, press One colour and choose White (or Black, or any colour with the picker or a hex code). Every visible pixel becomes exactly that colour and the transparency is kept byte for byte, so soft anti-aliased edges stay soft; the preview switches to a dark checkerboard so white is visible. A PNG or WebP with a transparent background needs nothing more. A JPG has no transparency, so the page asks you to tap the background first: that colour becomes transparent, with its edge pixels un-mixed so no white halo is left, and the rest becomes white. Save as PNG or WebP; a JPG cannot hold transparency. Gradients and shading inside the logo become flat, and a PNG or JPG stays pixels; open the logo's SVG instead to keep it a vector.
How do I change the color of only one object, such as a shirt?
Tick Connected only, so the change spreads from the point you tapped through touching pixels of that colour and stops where the colour ends. If the same colour touches the background, tick Only where I paint and brush over the shirt; Erase takes paint back. Both work together.
Can I change two or more colors in one picture?
Yes. Add another swap; each has its own colours, tolerance, mode and on/off switch. Swaps run in list order, each on the result of the one before, so red to blue followed by blue to green turns the red green. Switch a swap off to see the picture without it.
How do I make a photo black and white except one colour?
Open the photo, press Colour splash beside Colour swap, and tap the colour to keep. Every pixel that matches it stays exactly as it was, byte for byte, and every other pixel becomes a neutral grey of the same perceived lightness (OKLab L), so pure red #FF0000 turns grey 136 and pure blue #0000FF turns a darker grey 86. Tolerance and Softness work as they do for a swap: raise Tolerance until the whole flower or car is kept, and Softness blends its edge into the grey instead of cutting it. Keep another colour adds a second or third (red and yellow flowers, say). If the same colour appears where you do not want it, tick Connected only or paint Limit the area over the object: colour then stays only there. Black and white only makes a plain grey version. Download saves PNG, JPG or WebP at full size, with no EXIF.
Can I change a colour in an animated GIF?
Yes. Open the GIF and the page reads every frame, up to 300 frames of up to 2 megapixels each; a longer or larger GIF opens as a still picture of its first frame, and the page says so. Edit on the first frame as on any picture: tap the colour, pick the new one, set Tolerance and Softness, Keep shading or Flat colour, Transparent, Colour splash or a painted area. The same settings recolour every frame. The tap point used by Connected only and the painted area are places in the picture, so they apply at the same place in every frame: right for a logo or a still background, wrong for an object that moves across the frame. Press Play or drag the frame slider to watch the result, then Download with Animated GIF chosen: each frame is recoloured at full size and saved with its own delay (a 10 cs frame stays 10 cs) and the original loop count, one frame at a time with a progress line and a Cancel button. GIF limits apply: each frame gets its own palette of at most 256 colours, a pixel is either fully transparent or fully opaque, and since every frame is saved whole the file can be larger than the original. PNG, JPG or WebP saves only the frame on screen.
How do I change the colour of an SVG and keep it a vector?
Open the .svg here. The page reads the file as text and lists every colour it uses, from fill and stroke attributes, stop-color in gradients, style="…" and <style> rules, each with how many places use it. #f00, #FF0000, red and rgb(255,0,0) are one colour, so an icon that mixes them shows #ff0000 ×4, not four reds. Tap a colour and pick the new one, or make every colour one (an rgba() colour keeps its alpha, and opacity attributes are untouched). The downloaded SVG is the same file with only those values rewritten: same paths, same viewBox, still sharp at any size. For a web icon, currentColor lets the icon take its colour from CSS, as long as the SVG is inline in the HTML.