Which format when
JPEG is still the safest for photographs and email. PNG is lossless and keeps transparency but is often three to five times larger. WebP usually beats both for web delivery and is supported by every current browser.
What happens to transparency
JPEG has no alpha channel, so transparent pixels must become a colour. White is right for documents and dark backgrounds; use WebP or PNG when the cutout must survive.
Quality
At 85–90, JPEG artefacts are invisible at normal viewing sizes. Dropping below 70 to hit a size limit is a sign the image should be resized instead.