A plain-language comparison of the three image formats: size, quality, transparency and where each one is accepted.
JPEG: the default for photographs
JPEG throws away detail the eye is unlikely to miss, which is why photographs shrink so dramatically. It does not support transparency and it cannot be edited repeatedly without extra loss. It is accepted everywhere, which makes it the safe choice for official forms.
PNG: exact pixels and transparency
PNG keeps every pixel exactly and supports transparent backgrounds. That is perfect for logos, icons and screenshots, but it makes photographs several times larger than JPEG. Use PNG when sharp edges or transparency matter more than size.
WebP: smaller files for the web
WebP can do both lossy and lossless compression and supports transparency, typically at a quarter less size than JPEG. Modern browsers all display it, but many older programs and official portals do not accept it.
A simple rule of thumb
Uploading to an official portal: JPEG. Logo or screenshot: PNG. Your own website: WebP, with a JPEG fallback if you support old software. If you are unsure, keep the original and convert to the format named in the instructions.