To convert SVG to PNG, open the SVG to PNG converter, upload the file or paste the code, pick a scale (1x–4x), and download. It runs entirely in your browser, so your file is never uploaded and transparency is kept. If you have raw markup instead of a file, use SVG code to PNG.
An SVG is resolution-independent. A PNG is fixed pixels. Converting means choosing a size, so export at the largest size you will actually display.
Method 1: Online, in your browser (fastest)
- Open SVG to PNG.
- Drop in a
.svgfile, or paste code in SVG code to PNG. - Choose 1x, 2x or 4x (use 2x or more for retina displays).
- Download the PNG.
Need a different format? Use SVG to JPG, SVG to WebP or SVG to PDF.
Method 2: Any web browser
Open the SVG in Chrome or Firefox, take a screenshot, or draw it onto a <canvas> and call toDataURL('image/png'). It works, but the resolution is capped at screen size. The online converter does this properly at 4x.
Method 3: Inkscape (free desktop)
- Open the SVG.
- File → Export (Shift+Ctrl+E).
- Choose PNG, set the width or DPI, and click Export.
Method 4: Command line (batch)
With Inkscape 1.x:
inkscape logo.svg --export-type=png --export-width=1024
With rsvg-convert:
rsvg-convert -w 1024 logo.svg -o logo.png
Pick the right size
| Use | Export size |
|---|---|
| Website image | Display width × 2 |
| App icon | 1024×1024 (see app icon sizes) |
| Favicon | 32, 180, 512px (use the favicon generator) |
| Social post | 1080–2048px wide |
| 300 DPI at print size |
Fix blank or broken PNGs
- Missing text: the font isn't available to the renderer. Convert the text to outlines first.
- Blank output: add a
viewBoxand explicit width and height. See viewBox vs width/height. - Cropped edges: see SVG icon cut off fix.
- Invalid file: run the SVG validator.
Should you convert at all? For logos and icons on the web, SVG is usually the better format. See SVG vs PNG. For the reverse direction, read how to convert PNG to SVG. For JPG output, see the SVG to JPG guide.
Create your own SVG graphics with AI
Describe what you need, get a production-ready vector in seconds. No design skills required.
About This Article
This article was written by SVG Genie Team based on hands-on testing with SVG Genie’s tools and years of experience in vector design and web graphics. All recommendations reflect real-world usage and are reviewed by the SVG Genie editorial team for accuracy.
About the Author
SVG Genie Team
SVG Design Expert & Technical Writer at SVG Genie
SVG Genie Team is a vector design specialist and technical writer at SVG Genie with years of hands-on experience in SVG tooling, AI-assisted design workflows, and web graphics optimization. Their work focuses on making professional vector design accessible to everyone.
More articles by SVG Genie Teamarrow_forward