Free online tool to swap colors in pixel art GIFs and images
🌐 Live Demo • ✨ Features • 📖 How It Works • 🚀 Run Locally
PixelPaletteSwap is a browser-based tool for swapping colors in pixel art. Perfect for game developers, pixel artists, and sprite designers who want to create color variations of their characters and assets without redrawing.
🔒 Privacy First: All processing happens locally in your browser. Your images never leave your computer.
- GIF Support - Load animated GIFs and edit all frames at once
- Image Sequences - Upload multiple PNGs as animation frames
- Color Picker - Click directly on the image to select colors
- Color Grouping - Group colors to change gradient colors at once
- Color Reduction - Reduce artwork to 8, 16, 32, or custom palette sizes
- Selection Tools - Rectangle or polygon selection to swap colors in specific areas
- Pixel Draw Tools - 1x1 pencil and eraser for direct per-pixel edits
- Palette Import - Upload a second image to use its colors as swap targets
- Live Preview - See changes in real-time with animation playback
- Zoom Control - Pixel-perfect viewing at any scale (Ctrl+scroll to zoom)
- Save Presets - Export color mappings as JSON to reuse on other sprites
- ZIP Export - Download PNG sequences as a convenient ZIP file
- Upload your pixel art GIF, PNG, or multiple images
- View the automatically extracted color palette
- Click a color in the palette or pick directly from the image
- Choose a new color using the color picker, or upload a palette source image
- Apply the swap - all pixels of that color change instantly
- Export as GIF or PNG sequence when done
- Character Variants - Create different colored versions of game characters
- Team Colors - Make red/blue team variants for multiplayer games
- Seasonal Themes - Quickly recolor sprites for holiday events
- Palette Experiments - Try different color schemes before committing
- Batch Processing - Apply the same palette to multiple animations
- HTML5 - Structure and Canvas API for image manipulation
- Vanilla JavaScript - All processing logic
- CSS3 - Styling with modern features
- gifuct-js - GIF parsing and frame extraction
- JSZip - ZIP file creation for PNG sequence export
No backend required - everything runs in the browser!
Since this is a static website, you can run it locally with any HTTP server:
# Clone the repository
git clone https://github.com/swompythesecond/pixelpaletteswap.git
cd pixelpaletteswap
# Using Python
python -m http.server 8000
# Or using Node.js (npx)
npx serve
# Or using PHP
php -S localhost:8000Then open http://localhost:8000 in your browser.
pixelpaletteswap/
├── index.html # Main application (tool + all JS logic)
├── styles.css # Global styles and navigation
├── logo.png # Site logo
├── favicon.ico # Browser favicon
├── guides/ # Tutorial and guide pages
├── about.html # About page
├── contact.html # Contact page
├── privacy.html # Privacy policy
└── patchnotes.html # Version history
Contributions are welcome! Feel free to:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is open source and available under the MIT License.
Made with ❤️ for the pixel art community