Pixel Art Palette Swapper

Reduce sprites and spritesheets to classic console palettes or a custom set of hex colors directly in your browser.

Drop a sprite or spritesheet PNG, JPEG, or WebP stays on your device
Waiting for an image Waiting for an image
02

Original Limited result

Upload an image to preview it Your original and palette limited versions will appear side by side.
Zoom 100%
Utilities Studio

Want this utility on your website?

Customize colors and dark mode for WordPress, Notion or your own site.

Frequently Asked Questions

Does the palette swapper upload my image?

No. The image is decoded into a canvas in your browser, mapped locally with JavaScript, and exported directly as a PNG. The utility has no upload step.

Can I use my own palette?

Yes. Paste six digit or three digit hex colors into the Custom colors field, separated by commas, spaces, or new lines, then choose Apply palette.

Does it resize my sprite or spritesheet?

No. The output keeps the source width, height, pixel positions, and alpha values when Preserve transparency is enabled.

What algorithm does it use?

Each visible pixel is assigned to the closest color in the selected palette using squared Euclidean distance in RGB space. It is fast, deterministic, and easy to preview, but it does not apply dithering or perceptual Lab color correction.

# Turn a Full Color Sprite Into a Deliberate Retro Palette

A limited palette is more than a technical restriction. It gives a sprite a repeatable color vocabulary, makes scenes feel like they belong together, and can suggest the visual character of a specific console or fantasy hardware. This browser based palette swapper lets you compare the source image with a reduced version while you experiment with Game Boy, NES inspired, PICO 8, Commodore 64, DawnBringer 16, and custom palettes.

# How Nearest Color Mapping Works

The tool reads the red, green, and blue channels for every visible pixel and compares that color with every color in the selected palette. It chooses the palette entry with the smallest squared RGB distance, then writes the replacement color to a new canvas buffer. The alpha channel is kept separate, so transparent pixels remain transparent and partially transparent edges keep their original opacity when Preserve transparency is enabled.

Palette limitation

Every source color is replaced by its closest available swatch.

  • Fast and predictable for sprites, icons, tiles, and UI art
  • Keeps the original dimensions and pixel positions
  • Makes a consistent color budget easy to review

Palette swapping

The same artwork can be remapped to another carefully chosen set.

  • Useful for alternate costumes, biomes, and damage states
  • Custom hex lists let you match an existing art direction
  • A downloaded PNG is ready to bring back into your editor

# Choosing a Palette for Pixel Art

Palette Colors Good fit Watch for
Game Boy4Monochrome handheld mood and strong value studiesSmall value range can merge nearby materials
NES inspired16Chunky arcade sprites, characters, and tilesVery bright colors can overpower small details
PICO 816Compact modern pixel art with saturated accentsHighly saturated hues need deliberate contrast
Commodore 6416Muted retro scenes and computer game aestheticsLow contrast benefits from clear silhouettes
DawnBringer 1616A flexible hand picked palette for general pixel artRamp colors still need intentional light direction

# A Practical Workflow for Spritesheets

Start with the largest source art you can comfortably edit, then upload the exported sprite or spritesheet here. Pick a preset to establish a direction, or paste a custom list from a palette library. Inspect the two canvases at a higher zoom and look for lost facial features, merged outlines, and highlights that no longer separate from their base color. If a result feels muddy, try a palette with a stronger value step or add one deliberate accent color to the custom list.
Keep the palette intentional
A larger list is not automatically better. Start with four to sixteen colors, assign each color a job, and reserve the brightest values for focal points or readable highlights. The closest color algorithm preserves positions, but it cannot decide which colors should carry the visual hierarchy of your sprite.

# Pixel Art Export Checklist

Before importing the limited PNG

Worth noting
Check the result at 100 percent and at the final in game scale, confirm that transparent edges are still clean, verify that important silhouettes remain readable, and keep the original source file beside the export so you can revise the palette without starting over.
Color quantization
The process of reducing a large set of source colors to a smaller defined set.
Palette ramp
A related sequence of dark, mid, and light colors used to shade one material or surface.
Indexed palette
A compact color table where image pixels refer to entries in a shared list instead of storing full colors repeatedly.

Bibliographic References