All posts
Comparisons 6 min readOctober 31, 2026

SVG vs PNG: Vector and Raster Images Explained

By , Founder of Filoshi

SVG scales to any size; PNG is a fixed grid of pixels. How vector and raster images differ, when to use each, and what SVG to PNG decides.

Get Filoshi · $29The file converter that works on your PC. 1,841 tested conversions, nothing uploaded.

SVG describes shapes with math, written as XML text, so it stays sharp at any size. PNG stores a fixed grid of pixels, so it looks right at the size it was made and gets soft or blocky when enlarged. Logos, icons and diagrams suit SVG. Photos, screenshots and anything with fine texture suit PNG.

How vector images work

SVG stands for Scalable Vector Graphics, a W3C standard (see the SVG 2 specification). An SVG file is text. It lists shapes: a circle with a center and radius, a path with curves, a rectangle with a fill color, a line of text. A program draws those instructions at whatever size you ask for.

That has some real consequences:

  • Infinite sharpness. A logo made as SVG is crisp on a phone, a billboard and a 4K screen, from the same file.
  • Small files for simple art. A flat logo with a few shapes can be a few kilobytes.
  • Editable. You can open it in a vector editor or even a text editor and change a color.
  • Text can be live. An SVG can contain text that refers to a font. That is useful, and it is also a trap, as you will see below.

There is one more thing to know. SVG can contain scripts, because the standard allows them. That is why some websites, forums and upload forms refuse SVG uploads, or clean them before accepting them. If you accept SVG files from other people, treat them as code and not as plain pictures.

How raster images work

A raster image is a grid of colored pixels. Its quality is fixed by its resolution, the number of pixels across and down. Enlarge it and the program has to invent pixels, which looks blurry or blocky.

PNG is a raster format that is lossless and supports an alpha channel for transparency. It is defined in the PNG specification. Lossless means the pixels you save are the pixels you get back. That makes PNG a good fit for screenshots, interface graphics and anything with sharp edges. It is a poor fit for photographs, where files get large. For that trade-off, see the best image format for websites.

Side-by-side table

SVGPNG
TypeVector (shapes as XML)Raster (pixel grid)
ScalingSharp at any sizeFixed; blurs when enlarged
File sizeTiny for simple art, huge for complex scenesGrows with pixel count and detail
PhotosNot suitedWorks, but large; JPG is usually smaller
TransparencyYesYes (alpha channel)
EditingChange shapes, colors and textEdit pixels
BrowsersSupported by all current browsersSupported everywhere
EmailMany clients do not show itSafe choice
SecurityCan contain scriptsNo scripts

MDN lists both in its guide to image file types, which is a good place to confirm browser support for your case.

SVG to PNG: what "rasterizing" decides

Turning an SVG into a PNG is rasterizing: the program draws the shapes onto a pixel grid and saves the grid. Three decisions come with that.

  1. The pixel size. An SVG has no fixed pixel size, so the converter has to pick one. Pick too small and the PNG looks soft when you place it somewhere big. If you are unsure, make it larger than you think you need. You can always shrink a PNG; you cannot enlarge one without losing sharpness.
  2. Transparency. A PNG keeps transparent areas. A JPG does not, so converting SVG to JPG fills the background with a solid color.
  3. Fonts. If the SVG's text refers to a font that is not installed on the computer doing the conversion, the program substitutes another font, and the letters can change shape and spacing. For art that must look identical everywhere, convert the text to outlines (shapes) in your vector editor before you save the SVG.

In the Filoshi Windows app, SVG to PNG, SVG to JPG and SVG to PDF are tested conversions, done with ImageMagick. SVG input is rasterized at 300 DPI by default, and you can set the size in the file viewer. I do not claim that fonts are always preserved, for the reason above. Check the result if your SVG has text. For a PDF, the output is a page with the drawing on it, which is handy for print.

The free try on the home page reads SVG too, one file at a time in your browser.

I make Filoshi, so weigh my take on it accordingly.

PNG to SVG isn't a conversion

People ask for it all the time, and it is worth being clear: turning a PNG into a real SVG is not a format change. The PNG has pixels and no shapes. Producing an SVG from it means tracing, where software guesses outlines from the pixel edges. The result can be good for a simple black-and-white logo and poor for anything with gradients, shading or texture. Filoshi does not do tracing, and there is no PNG to SVG conversion in it. If you need a vector logo, ask whoever designed it for the original file, or redraw it in a vector editor.

When you need both

Real projects often use both formats. A logo might live as SVG for the website and print, with PNG copies at fixed sizes for places that cannot take SVG: email signatures, some social networks, slide decks, document templates. A favicon is another case: the classic Windows icon format wants fixed-size bitmaps, and Microsoft's app icon guidance lists the sizes it expects. PNG to ICO makes an icon file in Filoshi (tested). The ICO output is shrunk to fit 256 by 256 pixels, so start from a PNG that is at least that big.

For more on how raster size relates to print, see DPI, PPI and pixels, and for the idea of keeping a master and exporting copies, lossy vs lossless compression.

Frequently asked questions

Is SVG better than PNG for logos?

Usually, yes. An SVG logo stays sharp at every size and is often tiny. Keep a PNG version for places that cannot use SVG, such as email and some social platforms. Choose PNG alone only when the logo is a pixel-based design, like pixel art.

Why does my SVG look different after converting?

The two most common reasons are fonts and size. If the SVG's text uses a font that is not installed, the converter substitutes another one. And if the output pixel size is small, edges look softer than the scalable original. Convert text to outlines first and choose a larger size.

Can I convert a PNG to SVG?

Not as a true conversion. A PNG holds pixels, not shapes, so an SVG made from it has to be traced, and tracing guesses. It works for simple flat logos and badly for photos or shaded art. Filoshi does not trace images. The best route is the original vector file.

Do all email clients show SVG?

No. Many email clients do not display SVG images, or block them for safety. For email, use PNG, or JPG for photos. Test in the clients your readers use, because behavior varies by program and by version.

svg png vector raster logos

Ready to convert files privately?

1,841 tested conversions. No uploads. No accounts. Runs entirely on your machine.

Get Filoshi · $29