How to import, extract and recolor pixel art palettes
A fixed palette is what makes a game's art look like one game. This guide covers the four palette jobs every pixel artist runs into: bringing a palette in from another tool, pulling one out of a sprite you like, moving finished art onto a palette, and making color variants without redrawing. None of it uses AI or credits, and it works the same on hand-drawn and AI-generated art.
Updated
Browse 256 pixel art color palettes
Hardware classics and themed ramps with every hex code listed, ready to add to the editor.
Why a fixed palette matters
When every sprite draws from the same small set of colours, a hero, an enemy and a tree made weeks apart still look like they belong together. Limits help too: 8 to 32 well chosen colours force clear contrast and readable shapes, where 64 random ones turn to mud. Pick the palette before you draw, and put everything you make on it.
Import a palette file
MagicPixel reads the common palette formats: GIMP and Aseprite .gpl, JASC .pal, paint.net .txt, and .hex files with one hex colour per line. Palette sites such as Lospec's palette list offer their palettes as downloads in these formats.
Get the file
Download it, or export it from Aseprite, GIMP or another editor.
Drop it on the editor
Drag the file anywhere onto the editor, or choose Import palette… from the Palette panel's menu. Palette files open the palette importer, not an image import.
Check the swatches and name it
Preview the colours, rename the palette if you like, and save.
Make it active
Click the palette in the Palette panel. It is now the one you draw and match with.
A palette file can be up to 256 KB, and you can keep 20 saved palettes. The panel also has ready-made ones (PICO-8, Gameboy, Warm Earth, Cool Ocean, Neon/Cyberpunk, Pastel, Grayscale), and the palette library adds any of its palettes to the editor in one click.
Extract a palette from a sprite
Made a sprite whose colours you love? Turn them into a palette for the rest of the game.
Right-click the artboard
Choose Create palette from artboard… for a new palette, or Add artboard colors to “your palette”… to grow the active one.
Choose how many colours
Keep every colour, or switch to Distinct hues for a smaller set, and untick any you don't want, like soft edge pixels.
Name it and save
Colours already in the palette are skipped.
Recolor a sprite onto a palette
Match palette moves every colour of a sprite onto the exact colours of your active palette. It works ramp by ramp, so dark stays dark and light stays light, and the sprite keeps its shading instead of turning flat. Here is the same fox matched to four palettes from the library:
Make the target palette active
Click it in the Palette panel.
Open Recolour → Match palette
Recolour sits in the right panel. The canvas previews the result as soon as you switch.
Adjust and apply
Click part of the art to match only that part, or click a colour row to leave that group as drawn. Press Apply when it looks right; Undo takes it back.
The Edit dialog in the bottom toolbar has a simpler option, Snap to Palette, which puts each pixel on its nearest palette colour. It is quick for cleaning up an import; Match palette is better for finished sprites, because it keeps the shading in order.
Make color variants with Hue shift
For a blue team, a fire version or a rarity tier, turn the colours instead of repainting them. Hue shift in the same Recolour panel turns a colour group around the colour wheel and keeps every shade, so highlights and shadows still line up.
Original
Scarf shifted
Fur shifted
- Open Recolour and choose Hue shift.
- Pick a colour in the art, or click its row, to shift only that group.
- Drag Hue. Under More you can also change saturation and lightness, or tint the group to a ramp of your palette.
- Press Apply.
For a whole new theme rather than new colours, AI reskins change materials too; see the game asset workflow.
Keep AI art on your palette
Generated sprites can bring in colours of their own, so match them to your palette as part of the cleanup. If you make your own style, it keeps a palette with a colour limit (32 by default, from 16 to 256), and new sprites you generate with it keep to that palette. MagicPixel's own styles, and many shared ones, also list their palettes in the palette library.
Troubleshooting
- The palette file doesn't import
- Check the extension (
.gpl,.pal,.hexor.txt) and that the file is under 256 KB. A.hexfile needs one colour per line. - It says the palette limit is reached
- You can keep 20 saved palettes. Delete one you no longer use, then import again.
- Match palette made part of the sprite flat
- The palette has too few shades for that ramp. Pick a palette with longer ramps, leave that part as drawn, or use Hue shift for it instead.
- Colours look different in the game
- The engine may be compressing the texture. Turn compression off for sprites; the sync guide lists the import settings.
Questions
- Which palette file formats can I import?
- GIMP and Aseprite .gpl, JASC .pal, paint.net .txt, and .hex files with one hex colour per line. Drag the file onto the editor or choose Import palette… in the Palette panel's menu. A file can be up to 256 KB.
- How do I make a palette from an existing sprite?
- Right-click the artboard and choose Create palette from artboard…, or Add artboard colors to your active palette. Keep every colour or switch to Distinct hues for a smaller set, then name it and save.
- How do I recolor pixel art to a different palette?
- Make the target palette active, open Recolour in the right panel and choose Match palette. It moves every colour onto the palette's exact colours ramp by ramp, so the shading stays in order. Press Apply to keep it.
- What is the difference between Match palette and Snap to Palette?
- Snap to Palette, in the Edit dialog, puts each pixel on its nearest palette colour, which is quick for cleaning up an import. Match palette, in the Recolour panel, maps whole colour ramps, so a finished sprite keeps its shading.
- How many colours should a pixel art palette have?
- Most games do well with 8 to 32 colours. A small palette forces clear contrast and keeps every asset looking like the same game. Styles you make in MagicPixel default to a 32-colour limit.
- Does recolouring use AI or credits?
- No. Importing, extracting, Match palette and Hue shift all run in the editor without AI or credits.




