JPG, PNG or WEBP: which one should you use?
JPG is built for photographs. It compresses well, so files stay small, but each save loses a little detail and it cannot store transparency.
PNG keeps edges sharp and supports transparency, which suits screenshots, logos and diagrams. Photos saved as PNG are usually much larger than the same photo as JPG.
Ad space
WEBP is usually smaller than both at similar quality and supports transparency. Modern browsers open it, but some older apps may not.
A simple rule: JPG for photos, PNG for graphics with text or transparency, and WEBP when you want the smallest file for a website.