StylesPalettesGuidesPricingRewards
  1. Guides
  2. Color Palettes

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 November 26, 2026

Browse 256 pixel art color palettes

Hardware classics and themed ramps with every hex code listed, ready to add to the editor.

Open palette library

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.

  1. 1

    Get the file

    Download it, or export it from Aseprite, GIMP or another editor.

  2. 2

    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.

  3. 3

    Check the swatches and name it

    Preview the colours, rename the palette if you like, and save.

  4. 4

    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.

  1. 1

    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.

  2. 2

    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.

  3. 3

    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:

  • A 64×64 pixel art red fox adventurer with a green scarf and a leather satchel, facing the camera, in soft storybook coloursOriginal
  • The fox matched to the four-colour Game Boy palette: all greensGame Boy DMG
  • The fox matched to the PICO-8 palette: bright orange fur and a saturated green scarfPICO-8
  • The fox matched to the Autumn Woods palette: tan fur and muted earthy coloursAutumn Woods
  • The fox matched to the Night Sky palette: blue-grey fur and a navy scarfNight Sky
Recolour → Match palette, with each palette active in turn. Nothing was redrawn.
  1. 1

    Make the target palette active

    Click it in the Palette panel.

  2. 2

    Open Recolour → Match palette

    Recolour sits in the right panel. The canvas previews the result as soon as you switch.

  3. 3

    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.

  • A 64×64 pixel art red fox adventurer with a green scarf and a leather satchel, facing the camera, in soft storybook coloursOriginal
  • The fox after a hue shift of only its scarf: the scarf turned from green to blue, the fur unchangedScarf shifted
  • The fox after a hue shift of only its fur: blue fur with the green scarf unchangedFur shifted
Recolour → Hue shift on one colour group at a time.
  1. Open Recolour and choose Hue shift.
  2. Pick a colour in the art, or click its row, to shift only that group.
  3. Drag Hue. Under More you can also change saturation and lightness, or tint the group to a ramp of your palette.
  4. 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, .hex or .txt) and that the file is under 256 KB. A .hex file 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.
Open the editorAll guides

Related guides

  • Editing AI pixel artThe cleanup pass: change one detail with an AI Edit, recolour with the Recolour panel, then fix edges, backgrounds and stray pixels in the editor.
  • Game asset workflowThe order that keeps a pixel art game consistent: set the look, make anchor assets, grow sets and facings, clean up, animate and sync into your game.
  • ComponentsSave art as a component, place linked copies in every level, and edit the master once to update them all.
© 2026 MagicPixelAI pixel art generatorPixel art editorAI sprite generatorCharacter generatorGame asset generatorSprite sheet generatorImage to pixel artGuidesPalettesPixel art stylesAssetsParticle effectsPricingAboutRewardsConnectPrivacyTerms