When WebP is the safest modern default
WebP usually gives a smaller result than JPEG while keeping good visual quality. It also supports transparency, so it can replace many PNG assets when your CMS or storefront accepts it.
For everyday web publishing, start with WebP at a balanced quality setting, then compare the result against the original image at the displayed size.