Which format fits?
JPG is the usual choice for photos and is accepted almost everywhere, but it does not support a transparent background and its quality drops each time it is re-saved. PNG keeps detail and transparency without losing quality, so it suits logos, screenshots and graphics, but its files are large for photos. WebP offers better compression for both and is supported by all modern browsers.