Sprite Recolor and Palette Swap
This free sprite recolor and palette swap tool lists every color in your sprite or sprite sheet as a swatch you can change, with a live before and after preview. It runs in your browser, so nothing is uploaded.
How to use this tool
Open a sprite
Drop a PNG sprite or a whole sprite sheet, or press Try a sample to load a small slime. Fully transparent pixels are ignored, and the colors appear as swatches with the most used first, so the main body color is usually the first swatch.
Change colors
Click a swatch, or click a pixel in the before picture, then pick a new color or type a hex code. Every pixel of that color changes at once and the after picture updates as you go. Reset this color puts the original back.
Shift or swap the palette
Move Hue shift all to turn every color around the color wheel, or swap with PICO-8, Game Boy or a list of hex codes you paste. The swap matches colors by brightness, darkest to darkest and lightest to lightest, so the shading stays readable.
Save variants and download
Press Save as variant for each version you like, such as a red, a blue and a green enemy. Download the current PNG, every variant in one ZIP, or the palette as a .hex file, a .gpl palette for GIMP and Aseprite, or a PNG strip.
What you get
The recolored PNG keeps the size, layout and alpha of your file exactly: a half transparent shadow stays half transparent, and only the red, green and blue values of the colors you change are rewritten. Nothing is resampled, so pixel art stays sharp.
Up to 256 colors are listed as swatches. An image with more colors, such as a photo or a smooth painting, is not pixel art yet: the 256 most used colors are shown, and you can reduce the image to a small palette first.
Use the result in your engine
- Godot 4 import guide
For session sprites, choose Godot SpriteFrames in Export & Download. Keep the sheet beside the .tres resource, then drop the resource onto an AnimatedSprite2D. A standalone PNG can also be sliced in the engine.
- Unity import guide
Import the PNG as Sprite (2D and UI), choose Multiple, and slice it in the Sprite Editor. Unity does not read this tool’s JSON metadata; check the slicing and pivot in the editor.
- Phaser 3 import guide
Load a sheet with Phaser or TexturePacker JSON using load.atlas. For a uniform grid without atlas metadata, use load.spritesheet with the correct frame size. Build the animation from the intended frame names or indices.
Frequently asked questions
Is this tool free?
Yes. You can use the tool and download its output without payment or signup. Keep a downloaded copy of work you want to save; browser storage belongs to this browser and can be cleared by its settings.
Are my files uploaded?
No. This tool works on your device, in your browser, so your files stay with you. The only exception on the site is the optional auto-detect in Sprite Detection, which uploads the image to our server and deletes it within 24 hours; its Grid Slice mode runs on your device too.
How do I palette swap a sprite sheet?
Open the whole sheet, not one frame. Every frame shares the same colors, so changing a swatch recolors that color in all frames at once. Save each version as a variant and download them together as a ZIP.
Which palette formats can I download?
A .hex file with one color per line, the format Lospec uses; a .gpl GIMP palette, which GIMP, Aseprite and Krita can load; and a PNG strip with one pixel per color. The palette lists the colors of the current version, most used first.
Do semi transparent pixels keep their alpha?
Yes. Alpha is never changed. A pixel that is 40 percent transparent stays 40 percent transparent with its new color, and fully transparent pixels are left alone and are not counted as a color.
Why does my image have thousands of colors?
Photos, scaled sprites and soft brushes blend many shades, and JPG compression adds more. Changing them one swatch at a time is not practical. Reduce the colors first, or use Hue shift all, which turns every color at once.