pythonware.com

Home / Image tools / SVG to PNG

Rasterising

SVG to PNG

An SVG has no resolution of its own, so converting means choosing one. Pick a width and it is drawn crisply at that size, however large.

Drop a file here or click to browse — an SVG file

Result

Pick the size for the job, not the biggest one

The whole advantage of a vector file is that it scales without loss, and rasterising throws that away permanently. So export at the size you actually need: 1024 pixels for a logo on a web page, 2048 or more for print, 512 for an app icon. If you might need it larger later, keep the SVG.

One caveat about fonts. If the SVG references a typeface by name rather than embedding the glyph outlines, the browser substitutes whatever it has, and your text may come out in the wrong face. Converting text to paths in your drawing program before exporting the SVG avoids it entirely.

Common questions

Why is my PNG blurry?

It is not: it is the size you asked for, viewed larger. Set a bigger output width.

Nothing appeared. What went wrong?

Most often the SVG links to an external image or stylesheet, which a canvas will not load for security reasons. Inline everything, or export a self-contained SVG.

Other image tools