Overview
Introduction
This tool simulates converting a PNG to a lower per-channel bit depth, showing the color banding that would result, entirely in your browser.
It's a quick way to preview retro or constrained-palette looks without a full image-format conversion pipeline.
What Is PNG Bit Depth Converter?
A client-side tool that quantizes every channel (red, green, blue, and alpha) of a PNG down to the number of discrete levels a chosen bit depth allows: 2 levels for 1-bit, 4 for 2-bit, 16 for 4-bit, or all 256 for 8-bit (a no-op).
It reuses the site's existing color-count reducer for the RGB channels and additionally applies the same quantization step to alpha, since real PNG bit-depth reduction affects every sample.
How PNG Bit Depth Converter Works
The tool computes the number of levels as 2 raised to the chosen bit depth, then quantizes red, green, and blue by reusing the existing color-count reducer lib function, and separately rounds each alpha value to the nearest of the same number of evenly-spaced steps.
Because canvas always stores pixels as 8-bit-per-channel, this is a visual simulation of banding, not a true bit-depth change to the PNG file format itself; the download is still standard 8-bit PNG data with fewer distinct values.
When To Use PNG Bit Depth Converter
Use it to preview how an image would look with a retro, limited-palette aesthetic, like classic 1-bit black-and-white or 4-bit 16-color graphics.
It's also handy for visualizing banding artifacts before actually exporting to a genuinely lower-bit-depth image format elsewhere.
Often used alongside PNG Bayer Filter Adder, PNG Dithering Remover and PNG Enhancer.
Features
Advantages
- Runs entirely client-side; the uploaded image never leaves your device.
- Quantizes alpha along with color for a more complete simulation than RGB-only tools.
- Four common bit-depth presets (1, 2, 4, 8) cover the standard PNG depth options.
Limitations
- Doesn't produce a file whose PNG header actually declares a lower bit depth — the output file is still 8-bit-per-channel PNG data.
- Very low bit depths (1-2 bit) can make color photos nearly unrecognizable due to extreme banding.
Examples
Best Practices & Notes
Best Practices
- Use the 8-bit preset as a baseline (no visible change) before comparing lower depths.
- Combine with the Bayer filter tool afterward to smooth banding with a dithered texture, similar to how real low-bit-depth images are often dithered.
Developer Notes
The lib function operates on a plain Uint8ClampedArray PixelBuffer with no DOM dependency: levels = 2 ** bitDepth, RGB is quantized by calling the existing reducePngColorCount lib function, and alpha is separately rounded to the nearest step of size 255 / (levels - 1), matching the same quantization formula applied to color.
PNG Bit Depth Converter Use Cases
- Previewing a retro 1-bit or 4-bit color palette look
- Visualizing color banding before a real format conversion
- Creating deliberately low-fidelity graphics for a pixel-art or retro-game aesthetic
Common Mistakes
- Choosing a bit depth other than 1, 2, 4, or 8 and getting a validation error — those are the only four supported presets.
- Expecting the downloaded file's PNG header to report the reduced bit depth — it's a visual simulation only.
Tips
- Try 2-bit depth for a striking 4-level poster effect.
- Pair with the Bayer filter adder to dither away harsh banding at low bit depths.