See the Image Attributes in the documentation:

Image.mode: str

Image mode. This is a string specifying the pixel format used by the image. Typical values are '1', 'L', 'RGB', or 'CMYK'. See Modes for a full list.

The Image.convert method creates, from an existing image, a new Image with a given mode.