Every project ends up with a folder of images in mixed formats: a logo as a PNG, icons as SVGs, a hero photo as a huge PNG. Some of it is blurry on retina screens and some of it is far heavier than it needs to be.
The rule is simpler than it looks.
The short rule
SVG for anything made of shapes: logos, icons, illustrations, charts, UI graphics. It is a list of paths, so it is sharp at any size, usually small, and you can change colours with CSS.
PNG (or WebP, or JPG) for anything made of pixels: photos, screenshots, detailed textures. Describing a photo as shapes would be huge and still look wrong.
A quick test: if you could draw it with a pen tool in a few minutes, it should be an SVG.
Problem 1: the logo you only have as a PNG
This is the most common one. The brand logo exists only as logo.png , it looks soft on high-density screens, and you cannot recolour it for dark mode.
You can wrap the PNG in an SVG file, but that changes nothing: it is still pixels inside.…