The short answer
An SVG file is a Scalable Vector Graphics image: a text file written in XML that describes shapes, paths, colors and text. Because it stores geometry instead of pixels, an SVG stays sharp at any size. SVG is a W3C standard, displayed by every modern browser, and widely used for logos, icons, illustrations and cutting-machine designs.
What is inside an SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
<circle cx="50" cy="50" r="40" fill="#c74b31"/>
</svg>This three-line file draws a red circle. Open any SVG in a text editor and you will see similar readable markup.
SVG compared with PNG and JPG
| SVG | PNG | JPG | |
|---|---|---|---|
| Type | Vector | Raster | Raster |
| Scales without blur | Yes | No | No |
| Transparency | Yes | Yes | No |
| Best for | Logos, icons, diagrams | Screenshots, graphics | Photos |
| Editable as text | Yes | No | No |
What SVG is used for
- Website logos and icons that must look sharp on every screen.
- Charts, maps and diagrams.
- Cricut, Silhouette and laser-cutting designs.
- Animations and interactive graphics with CSS or JavaScript.
How to open, edit and convert SVG
- View: drag the file into any browser.
- Edit code: the free SVG editor on this site.
- Edit visually: Inkscape (free), Illustrator, Affinity Designer or Figma.
- Convert to a picture: SVG to PNG or SVG to JPG.
- Make an SVG from a picture: JPEG to SVG converter.
Sources
Written by Shahab Uddin. Published ; updated . Corrections are welcome through the contact page.