Shapes, not pixels
A PNG or JPG is a grid of coloured squares. An SVG is a short text file that describes shapes: “a star with these five points, filled orange”. Your browser draws the shapes fresh at whatever size the screen needs, so the edges are always as sharp as the display allows. The format is an open standard published by the W3C.
What happens when you zoom in
What the file looks like inside
The star above, as a complete SVG file:
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<path d="M50 6 L61 38 L95 38 L67 58 L78 92 L50 71 L22 92 L33 58 L5 38 L39 38 Z" fill="rgb(232,90,44)"/>
</svg>Because it is text, an SVG can be edited in a code editor, compressed very well, searched, and styled with CSS — a web developer can change its colour on hover without making a second file.
When to use SVG, and when not to
- Use SVG for logos, icons, illustrations with flat colour, charts, diagrams, lettering, cut files for Cricut and laser machines, and anything that must print large.
- Use PNG for screenshots and artwork that must keep transparency but will not be resized, and for places that do not accept SVG.
- Use JPG or WebP for photographs. A photo has no shapes to describe; as SVG it would become poster-style art, not the photo.
Making an SVG from a picture
Turning a PNG or JPG into SVG is called vectorizing or tracing: the colours are grouped into regions and each region's outline is fitted with smooth curves. It works best on logos and drawings. The vectorizer on the home page does it in your browser, and you can see every step in the editor.
Turning an SVG into a picture
The opposite job — SVG to PNG, JPG or PDF — is a matter of drawing the shapes at a chosen size. That keeps the file sharp, because it is drawn at the final size rather than enlarged afterwards.
Try it
SVG questions
Is SVG better than PNG?
For logos, icons, diagrams and anything made of flat shapes, usually yes: it stays sharp at every size and is often smaller. For photographs, no — a photo has no shapes to describe, so PNG, JPG or WebP are the right formats.
How do I open an SVG file?
Any modern web browser opens it: drag the file into a browser window. Illustrator, Inkscape, Figma, Affinity Designer and CorelDRAW open and edit it, and Cricut Design Space imports it as cut lines.
Can an SVG contain a photo?
It can embed a bitmap with an <image> element, but then that part is still pixels and does not get sharper when enlarged. A true vector SVG is made only of paths and shapes, which is what the vectorizer on this site produces.
Is an SVG file safe to open?
An SVG can contain scripts, which browsers run only when the file is opened directly as a page. Shown with an <img> tag, scripts never run. Files opened on this site are cleaned of scripts, event handlers and outside links before anything else happens.