SVG describes shapes, paths, text, paint, and layout that can be rendered at many sizes. PNG stores a fixed grid of pixels. Converting is therefore a rendering step: you must decide how many pixels the output needs before the vector artwork becomes a bitmap.
Use the SVG to PNG renderer when an application, upload form, or social platform cannot accept SVG.
Start with the destination dimensions
A PNG has no unlimited vector scalability. If a logo will appear at 600 by 200 CSS pixels on a normal-density display, rendering at those dimensions may be sufficient. A high-density display or later crop may justify a 2× output. Rendering a tiny PNG and enlarging it afterward creates soft or jagged edges.
Do not choose an enormous output by default. Pixel count drives memory and file size, and some applications downscale poorly. Produce the dimensions required by the destination and keep the SVG as the master for future sizes.
Understand the SVG sizing attributes
The root SVG can define width, height, and a viewBox. The viewBox establishes the internal coordinate system. An SVG with only a viewBox can still scale, but a renderer needs output dimensions. If the aspect ratio is wrong, check whether the requested width and height match the viewBox ratio and whether preserveAspectRatio changes the fit.
Fonts can change the picture
SVG text may reference a font installed on the author’s computer but unavailable in the renderer. Substitution changes line length, alignment, and sometimes glyph coverage. For a portable logo or wordmark, designers often convert final text to paths. For accessible diagrams and charts, keeping text as text can be valuable, so embedding a permitted web font or choosing a common fallback may be better.
Check non-Latin characters, symbols, and icon fonts in the rendered PNG. A missing-font square is part of the image once rasterized and cannot be fixed by installing the font later.
External resources need attention
An SVG can refer to external images, stylesheets, or fonts. A browser-based or security-conscious renderer may refuse remote resources. The result can be missing images or default styling. Self-contained SVG files with embedded or local data are more reliable and safer to share.
Do not enable scripts or unrestricted network access merely to make an unknown SVG render. SVG is XML-based document content, not just passive pixels. Use the SVG optimizer to inspect and simplify supported files before distribution.
Transparency and backgrounds
PNG supports alpha transparency. If the SVG has no background, transparent pixels should remain transparent. A viewer may display them as white, black, or a checkerboard without changing the file. If the destination requires a solid background, choose that color deliberately before rendering. Flattening onto white can create a visible box when the image is later placed on a dark page.
Render and verify
- Open the SVG and confirm that all fonts, images, gradients, masks, and clipping paths display.
- Measure the destination and choose the PNG pixel dimensions.
- Render with the SVG to PNG tool.
- View the PNG at 100% and inspect small text, one-pixel strokes, curves, and transparent edges.
- Place it on the actual background and test it in the receiving application.
When the PNG looks blurry
First check whether the application is enlarging a smaller bitmap. Render again at the final pixel size or at the density the application expects. Thin lines can also land between pixel boundaries and be antialiased; adjusting artwork or output scale may help. A higher PNG compression level changes file size, not visual detail, because PNG compression is lossless.
Keep the SVG source. If you need another bitmap size later, render again from the vector rather than resizing the existing PNG with the image resizer unless the source is unavailable.
Render SVG as PNG
Choose the output dimensions before rasterizing so the PNG contains the pixels you need.
Render SVG as PNG