What Is SVG? The Vector Format That Never Loses Quality at Any Size
You blow up a logo on a website to a huge size — and it stays perfectly crisp, without a single jagged square. That's the SVG format at work. Let's unpack why it stores a picture as math rather than pixels, how that lets it scale forever without losing quality, and why it's a terrible choice for photographs.
What SVG is in plain English
SVG (Scalable Vector Graphics) is a format that stores an image not as a set of finished dots, but as instructions for how to draw the picture. Instead of "this pixel is blue and that one is red," the file says: "draw a circle with a radius of 40 centered here, fill it blue, then run a line over to there."
Because of this, an SVG is re-rendered every time you open it — and always at the exact size of your screen. The software takes the formulas and draws the shapes at whatever sharpness the device asks for, whether that's a tiny icon in a browser or a giant banner on a wall. The "scalable" in the name isn't marketing; it's a literal description of the format's defining superpower.
In short
SVG is a "blueprint of a picture," not the picture itself. It describes shapes with math, so it stays sharp at any zoom level and stays small for simple graphics. That same nature is exactly why it's no good for photos.
Vector vs raster: the core difference
To understand SVG, you need one contrast: vector versus raster. These are two fundamentally different ways to store an image.
Raster graphics (PNG, JPG, the photos from your phone) are a grid of colored pixel squares. The picture is made of a fixed number of dots, like a mosaic. As long as you view it at its original size, it looks great. But enlarge it and the squares show through: you get blur and "stair-stepping" on the edges. A raster simply has nowhere to find new detail.
Vector graphics (SVG) store geometry instead of dots: points, lines, Bézier curves, circles, rectangles. It's a set of formulas. When the picture needs to appear, those formulas are recalculated for the current resolution — and the math is just as exact for a 16-pixel icon as it is for a storefront sign a floor high.
| Trait | Vector (SVG) | Raster (PNG, JPG) |
|---|---|---|
| What it stores | Shape formulas | A grid of pixels |
| When enlarged | Stays sharp | Pixelates |
| Inside the file | Text (XML) | Binary data |
| Ideal for | Logos, icons | Photographs |
| Photographs | Poor | Excellent |
Who created SVG: the W3C standard
SVG isn't one company's closed project — it's an open standard from the W3C (the World Wide Web Consortium, the very body that writes the rules of the web). SVG 1.0 reached official Recommendation status on 4 September 2001. Version 1.1 arrived in 2003, with its second edition in 2011; 1.1 remained the format's workhorse for years.
The specification was hammered out by rivals you rarely see at the same table: Adobe, Apple, IBM, Microsoft, Sun Microsystems, Corel and others. That lineup is exactly why the format became genuinely universal rather than tied to a single product. From day one SVG was built on already-proven web technologies — XML for structure, CSS for styling, the DOM for scripting.
Why vectors scale forever
This is SVG's signature property, and it works with elegant simplicity. Since the file holds a description of shapes rather than pixels, the image has no "native resolution." There's nothing to pixelate — because there are no pixels in the file until the moment it's drawn.
Picture the instruction "draw a line from point A to point B." You can render that line on a matchbox or on the side of a building — it stays straight and crisp either way, because the instruction doesn't change, only the scale does. That's exactly what a browser does with SVG: it recalculates the coordinates for the size you need and redraws from scratch.
The practical payoff: a single logo file works for everything at once — a 16×16 favicon, a site header, a slide deck, a printed poster. And it's always perfectly sharp, including on Retina and other high-density displays, where raster icons so often look fuzzy.
SVG is text — and that's a superpower
Open a PNG in Notepad and you'll see a mess of unreadable characters. Open an SVG and you'll see tidy text with recognizable tags. That's because an SVG is an XML document — ordinary text, not a binary file. Inside you'll find human-readable elements like <circle>, <rect> and <path>.
That "text-ness" brings a whole cluster of practical advantages:
- Editing in code. Changing a shape's color or nudging an element can be done right in a text editor, with no graphics program — sometimes it's a one-second fix.
- Search and automation. You can search SVG content as plain text and process it in bulk with scripts, like any other code.
- Version-control friendly. Git sees precise, line-by-line changes in an SVG — unlike a raster, which to Git is just "a whole new binary."
- gzip compression. Text compresses beautifully. A gzipped SVG is called
.svgzand is typically 20–50% smaller than the original; web servers often serve SVG pre-compressed on the fly.
Small files — for simple graphics
A logo or icon in SVG often weighs just a few kilobytes: a couple of dozen shapes are described more compactly than the same drawing as pixels. But this only holds for simple graphics — the more detail and shading, the heavier a vector gets.
Styles, animation and interactivity
Because SVG plays by the rules of the web, it can do far more than "just sit there as a picture." You can work with it almost like ordinary HTML.
- Styling with CSS. Colors, strokes, shadows and hover effects use the same stylesheets as the rest of your site. You can recolor an icon to match a page theme without touching the file itself.
- Animation. SVG shapes can move and morph in three ways: with CSS, with the built-in SMIL language, and with JavaScript. That's how you get "living" logos and smooth loading indicators.
- Interactivity. SVG elements respond to clicks and hovers — the basis for clickable maps and live charts, for example.
- Gradients and filters. Built-in smooth color transitions, blurs and shadows — with no raster images attached.
Where SVG shines, and where it doesn't
SVG has a clear zone of strength and one big weakness. Knowing the boundary is half the value of understanding the format.
SVG is brilliant for:
- logos and branding — one file for every medium, from a business card to a billboard;
- icons and UI elements — crisp on any screen, easy to recolor with CSS;
- illustrations with flat colors — artwork with sizable areas of a single shade;
- charts, diagrams and infographics — they can be generated programmatically and made interactive;
- maps — lossless scaling is especially handy here.
The big weakness: photographs
SVG is categorically wrong for photos. A photograph has millions of unique colors and smooth tonal gradients that simply can't be described efficiently with shapes. Trying to save a photo as SVG produces a gigantic file that also renders slowly. Photos call for a raster: JPG, WebP or AVIF.
A simple rule of thumb: if a picture was "drawn on a computer," it's a job for SVG; if it was "taken with a camera," keep it as a raster. Logo, icon, diagram — vector. Portrait, landscape, screenshot — raster.
How to open and convert SVG
Good news: every modern browser understands SVG, no exceptions. The fastest way to view a file is to drag it into a Chrome, Firefox, Safari or Edge window. For editing, reach for a vector editor such as Inkscape (free), Adobe Illustrator, or the online tool Figma.
Sometimes you need to turn a vector into a raster — for instance, to drop the image into an editor, a messenger, or a service that doesn't understand SVG. In that case you convert it to PNG: a format with transparency and lossless compression that opens anywhere.
Upload the file
Drag your .svg into an online converter — nothing to install.
Pick size and format
Set the resolution or DPI you want, since a vector rasterizes to a specific size.
Download the result
The finished PNG opens in any program or service.
Turn SVG into PNG in a couple of seconds
The free FormatZ converter rasterizes a vector at the resolution you choose, right in your browser — no install, no sign-up.
Convert SVG to PNGNeed a different format? There's SVG to JPG for compatibility and SVG to PDF for printing. And if you need to go the other way and turn a raster logo into a vector, PNG to SVG comes in handy. The full list of conversions lives on the all formats page.
Frequently asked questions about SVG
Read next
ComparisonSVG vs PNG: What to Choose and When
Vector or raster — an honest comparison on quality, size and use cases.
How-toHow to Open an SVG File
Browsers, editors and converters — every method that works.
WebSVG for the Web: Icons and Speed
Why vectors make sites faster and icons perfectly crisp.