Converting to indexed color reduces the number of colors in the image to a maximum of 256—the standard number of colors supported by the GIF and PNG‑8 formats and many web browsers. This conversion reduces file size by deleting color information from the image.
For grayscale images, the conversion happens automatically. For RGB images, the Indexed Color dialog box appears.