JPG, PNG and WebP: which file should you keep?
Choose an image format from what the picture contains, not from a blanket rule.
JPG is for photographs
JPG throws away some visual detail to stay small. That is useful for camera photos and scans. It does not support transparency. Saving a JPG as a PNG does not recover the detail that was removed when the JPG was created, and the PNG can be much larger.
PNG is for sharp edges and transparency
PNG is a better fit for logos, diagrams and interface screenshots, especially when you need a transparent background. It is a poor default for large photographs because the files get big.
WebP is widely supported, with a check
Current Chrome, Edge, Firefox and Safari can display WebP, including transparency. The PNG to WebP tool on this site only offers the download when the browser actually produces a WebP file. If an older browser cannot export it, use PNG or JPG instead of assuming the conversion worked.