How to Convert SVG to PNG at Any Size
·
SVG is wonderful for logos, but plenty of places only accept PNG or JPG. Converting is easy once you pick the right size, and there are a few traps to avoid. This guide explains the difference, shows how to choose the output size and covers what can go wrong.
Why convert an SVG to PNG
Social networks, email clients, document editors, presentation tools, app stores and many upload forms do not accept SVG or may render it inconsistently. A PNG looks the same everywhere, which is why designers hand over both versions.
SVG vs PNG compared
| Feature | SVG | PNG |
|---|---|---|
| Type | Vector (shapes and paths) | Raster (pixels) |
| Fixed size | No, scales without blur | Yes |
| Best for | Logos, icons, illustrations | Screenshots, graphics, exact output |
| File size | Tiny for simple artwork | Grows with the pixel size |
| Support | Browsers and design tools | Almost everywhere |
Pros of SVG
- Sharp at any size and usually tiny.
- Can be styled with CSS.
Pros of PNG
- Accepted nearly everywhere and looks identical on every device.
- Easy to place in documents, emails and apps.
Keep the SVG as your master and export PNGs when you need them. The SVG vs PNG guide goes into more detail.
Choosing the output size
An SVG has no fixed resolution, so the PNG's pixel size is your decision. Too small and it looks blurry when enlarged, too large and the file is heavy.
| Use | Suggested size |
|---|---|
| Website logo | About 2 times the displayed width, e.g. 400 px for a 200 px logo |
| Slide or document | 1000–2000 px wide |
| About 300 pixels per inch at the printed size |
A scale option multiplies the SVG's native size: 2x doubles the pixels, 4x quadruples them.
Step by step: convert SVG to PNG
- 1Decide the size using the table above.
- 2Open SVG to PNG and add your SVG files.
- 3Choose the scale, such as 2x for sharp screens.
- 4Convert and download. Transparent areas stay transparent in the PNG.
- 5Check the result for missing fonts or images, and compress it with Compress Image if it is heavy.
- 6Need an icon file? Use PNG to ICO or the Favicon Generator.
Fonts, external images and other surprises
If an SVG uses a font that is not embedded, or links to an external image, the picture may look different after conversion, because browsers block external resources when an SVG is rendered as a standalone image. Convert text to outlines in your design program before exporting, or embed fonts and images inside the SVG, to be safe.
Keep the transparent background by choosing PNG. If you convert to JPG instead, the transparent area is filled with a solid color, because JPG cannot be see-through.
Common mistakes
- Exporting too small, then enlarging the PNG and getting blur.
- Forgetting about fonts, so text appears in a fallback typeface.
- Choosing JPG for a logo, which loses transparency and blurs edges.
- Deleting the SVG after converting. Keep it as the master.
Frequently asked questions
Does converting SVG to PNG lose quality?
The PNG is a fixed-size picture, so it can be sharp at its own size but will blur if enlarged. Choose a large enough size when you convert, and keep the SVG as the master.
How do I keep the transparent background?
Convert to PNG, which supports transparency. A JPG would fill transparent areas with a solid color.
What size should I export a logo as PNG?
About twice the width it will be displayed at for sharp screens, for example 400 pixels for a logo shown at 200 pixels. For documents, 1000 to 2000 pixels is common.
Why does my text look different in the PNG?
The font may not be embedded in the SVG. Convert text to outlines or embed the font before converting.
What if my SVG has no width or height?
If the file declares no size and no viewBox, a default size is used before the scale is applied. Add dimensions in your design program for predictable results.