What is an SVG file?

Beginner's guide

An SVG (Scalable Vector Graphics) is an image format based on XML text. Instead of storing pixels like a JPG or PNG, an SVG stores mathematical instructions: lines, curves, shapes and colors. The browser reads those instructions and draws the image.

Why is it "scalable"?

Because it is defined with formulas and not pixels, an SVG looks sharp at any size. You can scale it from 16px to a billboard and it never pixelates or looks blurry. That's why it's ideal for logos, icons and illustrations.

SVG vs PNG vs JPG

Advantages of SVG

What does an SVG look like inside?

A blue circle is as simple as this:

<svg viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="#6c8cff"/></svg>

That text IS the image. Changing fill changes the color instantly.

What is it used for?

Logos, UI icons, illustrations, charts and diagrams, maps, and any element that must look perfect on screens of different resolutions (including Retina displays).

Edit your SVG now

With svgdesk you can open an SVG, modify its shapes, colors and nodes, and export it again, all free and from the browser.

Open the editor

Keep reading