EIT easy-image-tools / Custom palette PNG

Custom palette PNG

Maps every pixel to the nearest color from your comma-separated hex list.

Nothing found — try another word.

01

Custom palette PNG

Nothing found — try another word.

Nothing found — try another word.

Preview
Source
Drop a PNG here or click / paste (Ctrl+V) — processed locally
Result
no result yet

Custom palette snaps every pixel of an image to the nearest color from a list you type in — how pixel art, brand palettes and duotone conversions get their exact colors. Paste the hex codes separated by commas, and each pixel is matched to whichever entry is closest in red, green and blue distance; the picture then contains no color that is not on your list. It runs entirely in your browser, with the alpha channel left as it was.

  • Runs entirely in your browser: no upload, no server, no signup.
  • Colors go in as full six-digit hex codes; anything malformed is skipped.
  • The result contains exactly your colors and nothing else, for the opaque pixels.
  • Fully transparent pixels keep their alpha and original color values.
  • Run the dithering tool afterwards to break up the banding on photographs.
  • Free with no daily limit, no watermark and no account, also for commercial use.

How to use it

  1. Drop the image into the source area, or pick a file from your device.
  2. Type the colors into the Hex list as full six-digit codes, for example #1b2838,#f4c430,#f7f7f7.
  3. Anything that is not a six-digit hex code is ignored, so check for typos if a color you typed is missing.
  4. Download the result from the Download button.

Questions

Which format do the colors have to be in?

Full six-digit hex codes with a leading hash, like #1b2838, separated by commas, spaces or semicolons. Three-digit shorthand such as #fff is skipped, as is any code with a mistake in it, so a silently dropped entry shows up as a color the result never uses.

Will the result contain exactly my colors?

Yes, those and nothing else, but only for the opaque pixels. Fully transparent pixels keep their alpha and their original color values rather than being pulled to a palette entry.

Is this pixel art?

Not by itself - it maps what is already there, it does not redraw anything. If you are converting a photograph into a limited palette and want the banding broken up, take the result through the dithering tool afterwards.

How do I come up with the colors?

Pick one seed color and build from it - complementary, triadic, analogous and shade sets are all a single hue rotation away from each other. Whichever set you land on can be pasted straight into this Hex list field.

Related tools