Skip to content
Quasar Tools Logo

Image Color Reducer

Reduce any image to 2, 4, 8, 16, 32, or 64 colors using median-cut quantization — perfect for pixel art, retro game assets, and PNG file size optimization. Choose Floyd-Steinberg dithering for smooth gradients, Bayer ordered dithering for a retro look, or no dithering for clean flat edges. The extracted color palette is shown as hex swatches. Everything runs locally in your browser — no signup required.

Reduce Image Colors
Upload any image and reduce it to 2, 4, 8, 16, 32, or 64 colors using median-cut quantization. Choose a dithering mode for smoother gradients and download as PNG, WebP, or JPEG. Everything runs locally in your browser — your image never leaves your device.
Color Reduction

Spreads color error to neighbors — best for photos and smooth gradients.

Output Format

PNG is lossless and preserves all transparency — the best format for reduced-color pixel art.

Actions

Upload an image, choose color count and dithering, then click Reduce Colors.

All color reduction runs 100% locally in your browser using the Canvas API. Your image is never uploaded to any server. No signup required.

Why Use Our Image Color Reducer?

Instant Color Reduction

Our image color reducer processes your file directly in the browser using median-cut quantization — no uploads, no waiting. Reduce image colors online in seconds on any device.

Private & Secure Processing

Your image never leaves your device. The color reducer runs entirely client-side via the Canvas API — your photos are never sent to any server. 100% private by design.

Three Dithering Modes

Choose Floyd-Steinberg for smooth photographic gradients, Bayer ordered dithering for a retro halftone look, or no dithering for clean flat-color pixel art and logos.

6 Color Targets — 100% Free

Reduce to 2, 4, 8, 16, 32, or 64 colors and export as PNG, WebP, or JPEG. The image color reducer is completely free — no signup, no limits, no watermarks on your output.

When to Reduce Image Colors

Pixel Art Creation

Reduce a photograph or reference image to 8 or 16 colors as the first step in creating pixel art. The image color reducer gives you a clean, limited palette to work from in your pixel art editor.

Retro Game Asset Preparation

Classic game systems had strict color limits — 4 colors for Game Boy, 16 for NES palettes. Use the color reducer to simulate these hardware constraints when designing retro-style sprites and tiles.

PNG File Size Optimization

Reducing the number of unique colors allows PNG's LZ compression to find longer repeating patterns, often dramatically shrinking file size for icons, logos, and flat-design web graphics.

Artistic & Poster Effects

Limiting colors to 4 or 8 produces a vivid poster-like or screen-print aesthetic. Use the image color reducer with dithering disabled for bold, high-contrast graphic art effects.

GIF & Indexed Image Prep

GIF format supports a maximum of 256 colors and works best with 32 or fewer distinct palette entries. Reducing colors before converting to GIF produces smaller, cleaner animated files.

Color Palette Extraction

Use the color reducer as a palette extractor — run it on any image to instantly see the dominant colors as hex swatches. Copy the palette for use in design systems, brand guidelines, or art projects.

Understanding Image Color Reduction

What is Image Color Reduction?

Image color reduction is the process of replacing the full-color pixel data in an image with a limited palette of representative colors. A full-color photograph can contain millions of unique RGB values; reducing image colors maps every pixel to its nearest match from a smaller set — such as 2, 4, 8, 16, 32, or 64 colors. Our free online image color reducer uses the median-cut quantization algorithm, which recursively splits the color space into equal-population buckets to find a palette that minimizes overall color error. The entire process runs locally in your browser — your image never leaves your device.

How the Image Color Reducer Works

  1. 1. Upload Your Image: Drop or select any PNG, JPG, WebP, GIF, BMP, or TIFF file. The image is decoded into raw pixel data via the Canvas API — no server upload occurs.
  2. 2. Choose Color Count & Dithering: Select your target palette size (2–64 colors) and a dithering mode. Floyd-Steinberg diffuses error across neighbors for smooth transitions. Ordered (Bayer) dithering applies a fixed grid pattern for a retro look. No dithering gives clean, flat regions.
  3. 3. Download Your Result: Click Reduce Colors to quantize the image and render the output. The palette swatches are displayed instantly, and you can download the result as PNG, WebP, or JPEG.

Dithering Modes Explained

  • Floyd-Steinberg: The quantization error for each pixel is distributed to its right, lower-left, lower, and lower-right neighbors using weights of 7/16, 3/16, 5/16, and 1/16. This produces smooth gradients and is the best choice for photographs and images with continuous tone areas.
  • Ordered (Bayer 4×4): A fixed 4×4 threshold matrix is applied across the image, perturbing pixel values before quantization. The result has a regular, pattern-based texture — ideal for retro game aesthetics, halftone effects, and images where a structured look is desirable.
  • None (Hard Quantization): Each pixel is mapped directly to its nearest palette color with no error spreading. This produces the sharpest color boundaries and is best for flat graphics, logos, and pixel art where clean color regions are more important than gradient smoothness.
  • Median-Cut Palette: Regardless of dithering mode, the palette is always built using median-cut quantization, which samples pixels from your image and finds the most representative set of colors — not a fixed generic palette. This means the reducer adapts to the actual content of your image.

Output Format & Privacy Notes

PNG is the best output format for color-reduced images because it is lossless and its compression benefits greatly from a reduced number of unique colors. WebPoffers smaller files with transparency support. JPEGshould only be used when file size is the primary concern and transparency is not needed — JPEG's lossy compression can reintroduce colors that were removed during quantization. All processing runs 100% in your browser via the Canvas API. Your image is never uploaded to any server, never stored, and never transmitted — no signup is required.

Frequently Asked Questions About Image Color Reducer

An image color reducer is a tool that maps every pixel in an image to the nearest color in a small fixed palette, replacing millions of unique colors with 2, 4, 8, 16, 32, or 64 representative values. Our free online image color reducer uses median-cut quantization and runs entirely in your browser — no files are ever uploaded to a server.

The tool uses the median-cut quantization algorithm. It samples pixels from your image, builds a 3D RGB color space, and recursively splits it into equal-population buckets. The average color of each bucket becomes a palette entry. This produces a palette that is representative of your specific image rather than using a generic predefined set of colors.

Floyd-Steinberg diffuses quantization error to neighboring pixels for smooth gradients — best for photos. Ordered (Bayer) dithering applies a fixed 4×4 matrix pattern for a retro, halftone look. No dithering maps each pixel directly to its nearest palette color, producing clean hard edges — ideal for pixel art and flat-design graphics.

Yes, completely. The image color reducer runs entirely in your browser using the Canvas API. Your image is never uploaded to any server, never stored, and never transmitted over the network. Everything stays on your device throughout the entire process.

For classic retro aesthetics, 4–16 colors is typical. Game Boy graphics use 4 shades, NES sprites use 4 colors per tile (from a 54-color master palette), and early Amiga games commonly used 16 or 32 colors. Start with 16 and reduce further if you want a more restricted look. For modern pixel art, 32 or 64 colors gives a nice balance between expressiveness and the pixel art aesthetic.

Yes, in most cases. PNG uses LZ77-based compression that works better when pixel values repeat more frequently. Reducing unique colors from millions to 16 or 32 creates large uniform regions, allowing the compressor to find much longer repeating sequences. For flat graphics and logos, you can see file size reductions of 50–80% compared to the original.

Yes. GIF format stores a palette of up to 256 colors. Running images through the color reducer first — especially at 32 or 64 colors — gives you clean, intentional palette entries rather than the automatic quantization done by most GIF converters, which often produces less accurate or washed-out results.

Yes. The image color reducer is 100% free with no signup, no premium tier, no file size limits, and no watermarks on the output. You can reduce as many images as you need without any restrictions.