An indexed-colour PNG is a PNG image that stores pixels as palette indices instead of direct RGB values. The file uses a colour table to map each index to a colour, which reduces size and is common for simple graphics, icons and images with limited colours.
How Indexed-Color PNG Stores Image Data
Indexed-color PNG is a palette-based storage model. Instead of writing full RGB values for every pixel, the image stores small index values, and those indices point to entries in a colour table. That design is efficient for icons, logos, charts, screenshots with flat fills, and other graphics that do not need millions of colours.
The key idea is that the pixel data and the colour data are separated. A single palette entry can be reused across many pixels, which keeps the file compact and makes the format well suited to simple imagery. The trade-off is that the image can only display the colours defined in its palette, so it is a poor fit for photographs or gradients that need finer colour variation.
Why Indexed-Color PNG Can Reduce File Size
File size reduction comes from the fact that each pixel can be represented with a small index rather than a larger direct-colour value. When the palette is short and the visual content is simple, the encoded image can be much smaller than an equivalent true-colour image. That is one reason indexed-colour PNG is still common in interface assets and legacy graphics workflows.
The compression benefit is strongest when the image uses repeated colours and limited shading. If an image contains many unique tones, the palette grows and the advantage shrinks. In those cases, forcing an indexed palette can add colour loss without delivering a meaningful efficiency gain.
Colour Table Limits and Visual Trade-offs
An indexed-colour PNG can only render colours that exist in its palette, so the palette becomes part of the image’s visual accuracy. If the palette is too small, the image may show banding, dithering, or colour substitution. If the palette is poorly chosen, two visually distinct colours may collapse into the same entry and reduce clarity.
This makes palette design an important quality decision rather than a purely technical detail. In practice, indexed-colour PNG works best when the author can control the palette in advance, or when the source artwork already has a naturally limited set of colours.
When to Use Indexed-Color PNG
Indexed-colour PNG is most appropriate for graphics that need compact storage and predictable colour sets, such as UI icons, simple diagrams, sprites, badges, and flat illustrations. It is less appropriate for photographs, soft gradients, or artwork that depends on subtle colour transitions.
For web and application teams, the practical question is not whether the format is old or new, but whether the image’s colour complexity justifies palette-based encoding. When the answer is yes, indexed-colour PNG can be a sensible optimisation. When the artwork is more detailed, direct-colour PNG usually preserves quality better.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org