By Arkay · Updated
How do you use the SVG to PNG converter?

Add your SVG files, choose PNG and a size from 1× to 8×, then download each result or all of them in one ZIP file. Follow these steps.
- Add one or many images by drag and drop, by browsing your files, or by pasting them.
- Choose the output format: JPG, PNG or WebP.
- For JPG and WebP, set the quality. It is 90% by default.
- For JPG, set the background color that fills transparent areas.
- For an SVG, choose the size, from 1× to 8×.
- Read each result. It shows the new size and the change in file size.
- Download each image with its own button, or download all of them in one ZIP file.
Check the new size of each image before you use it, because a PNG's size is set once it is made.
How does the SVG to PNG converter work?

The converter opens each image in your browser, draws it on a canvas and saves it in the format you chose. The browser opens each image itself, using createImageBitmap, or an img element for SVG.
The image is drawn onto the canvas at full size and saved with canvas.toBlob. MDN notes that canvas.toBlob saves PNG by default and gives the image a resolution of 96 dpi for formats that store resolution metadata.
An SVG has no fixed pixel size. It is drawn at its own width and height, each multiplied by the chosen size from 1× to 8×. An SVG without a width and height is drawn at 512 px.
Very large images are scaled to at most 16,384 px on the long side, which is the canvas limit in most browsers.
Images are converted one at a time on your device and never uploaded. Metadata, such as EXIF data and location, is not copied to the new file.
Vector vs raster: what changes when an SVG becomes a PNG?
An SVG is an XML-based vector format. MDN's guide to image types describes SVG files as ideal for diagrams, icons and other images that can be accurately drawn at any size.
A PNG is a fixed grid of pixels, so its size is set once it is made. PNG uses lossless compression, so no image data is thrown away when the file is saved, and it has full alpha transparency support.
Keep the SVG as your master file, and make PNG copies when you need them.
Why convert SVG to PNG?
Convert to PNG when a place does not accept SVG. Google Search's favicon guidelines list BMP, GIF, ICO, PNG, JPEG, PPM and TIFF as supported favicon formats, and SVG is not on that list.
The same guidelines require a square favicon of at least 8 × 8 px and recommend larger than 48 × 48 px.
No primary source we checked lists apps, social networks or email clients that reject SVG, so this guide does not name them.
What size should the PNG be (1x, 2x, 4x, print)?
The right size depends on where the image is shown. MDN says devicePixelRatio is the ratio of physical pixels to CSS pixels: a value of 1 indicates a classic 96 DPI display, while a value of 2 is expected for HiDPI and Retina displays. So export at 1× for a standard screen and 2× for a Retina screen. Choose 4× or 8× when you need a larger image than that.
| Where the PNG is shown | Size to choose | Why |
|---|---|---|
| Standard screen | 1× | A value of 1 is a classic 96 DPI display |
| Retina or HiDPI screen | 2× | A value of 2 is expected for these displays |
| Pixels = size in inches × DPI | 1 inch (2.54 cm) is 96 px | |
| Large image | 4× or 8× | More pixels on each side |
Print sizes are given in inches or centimeters, and 1 inch = 2.54 cm. The W3C CSS Values spec defines 1 inch (2.54 cm) as 96 px, so 1 px is 1/96th of an inch. Our 1× export therefore matches 96 DPI. DPI means pixels per inch, so multiply the size in inches by the DPI to get the pixel count. Figma's scale multipliers also map to DPI: 2× is 144 DPI and 3× is 216 DPI.
For a high-resolution PNG, choose a larger size and check the new size before you print.
How do you keep a transparent background, and when is JPG better?

Choose PNG to keep a transparent background. MDN says PNG has full alpha transparency support, and JPEG does not support an alpha channel, so a JPG cannot keep a transparent background.
| PNG | JPG | |
|---|---|---|
| Transparent areas | Kept | Filled with the background color you set |
| Compression | Lossless | Lossy, with the quality setting (90% by default) |
| Alpha channel | Supported | Not supported |
When you convert to JPG, the converter fills transparent areas with the background color you set, so set that color before you convert. Choose JPG when the image must sit on a solid background of your choice. JPG and WebP use the quality setting, which is 90% by default.
Why does my SVG look different as a PNG?
An SVG can depend on files outside itself. When an SVG is used as an image, MDN says some browsers disable JavaScript and do not load external resources, such as images and stylesheets. A stylesheet that loads a web font is one of them.
The restrictions do not apply when the SVG is viewed directly or embedded with iframe, object or embed elements. So an SVG can look right in a browser tab and wrong after conversion.
MDN says external resources can still be used if they are inlined through data: URLs. Inline each linked image and stylesheet this way, then convert again.
Some editors can also convert text to outlines. This guide does not give those steps, because we have not checked them against the editors' documentation.
How do you convert SVG to PNG in Inkscape, Figma or on the command line?
Inkscape's manual gives this example to force a 600 × 400 pixel PNG:
inkscape --export-filename=filename.png -w 600 -h 400 filename.svg
Here --export-filename sets the name of the output file, and -w and -h set the width and height in pixels. The command line also exports PNG with --export-type=png.
-d or --export-dpi sets the resolution used for PNG export. The default is 96 dpi, and -w and -h override it.
-b or --export-background sets the background color of an exported PNG. -y or --export-background-opacity sets its opacity from 0.0 (fully transparent) to 1.0. If you use -b without -y, the background is fully opaque.
rsvg-convert, from librsvg, renders an SVG to a raster PNG by default. Its examples include these commands:
rsvg-convert --output=output.png input.svg
rsvg-convert --zoom=2.5 input.svg > output.png
rsvg-convert --dpi-x=300 --dpi-y=300 input.svg > output.png
rsvg-convert --background-color=white input.svg > output.png
The first command writes output.png. The second scales the image by 2.5; the default zoom is 1.0. The third sets 300 pixels per inch, where the default is 96 DPI. The fourth fills the background with white. Without a background color, rsvg-convert uses none, which creates transparent PNGs.
Figma exports 32-bit RGBA PNGs, and it is not possible to export a PNG without an alpha value. Choose a default scale or type a custom size. Add an x after a value to use it as a multiplier, for example 2x. Figma's 2x export has a DPI of 144 and its 3x export has a DPI of 216. SVG and PDF export only at 1×, so choose PNG when you need a larger export.
This guide gives no Illustrator steps, because we did not check them against Adobe's documentation.
Can you turn a PNG back into an SVG?
Not by renaming or re-exporting. A PNG stores pixels, so making an SVG from it means tracing, which is a different job from converting.
Keep the original SVG. A PNG cannot recover the vector shapes it was made from.
We have no source for tracing tools, so this guide does not name any.
More guides in Image Tools.
Related guides
- Image Converter: JPG, PNG, WebP and HEIC Guide (2027).
- WebP to PNG Converter: Free, Keeps Transparency (2027).
- HEIC to JPG Converter: Convert iPhone Photos Free (2027).
- PSD to PNG: Free Converter and PSD Viewer Guide (2027).
- WebP to JPG: Free Bulk Converter and Guide (2027).
- JPG to PNG: Lossless Copy, Not a Quality Fix (2027)
- Favicon Generator: Every Size You Need in 2027
Frequently asked questions
- How do I convert SVG to PNG with a transparent background?
- Choose PNG as the output. PNG has full alpha transparency support, so the converter keeps the SVG's transparent background. JPG has no alpha channel, so it fills those areas with a background color.
- What size should my PNG be?
- Use 1× for a standard screen and 2× for Retina or HiDPI screens, where devicePixelRatio is 2. For print, multiply the size in inches by the DPI; 1 inch (2.54 cm) is 96 px at 1×.
- Why does my SVG look different as a PNG?
- When an SVG is drawn as an image, browsers do not load external images or stylesheets and disable JavaScript. Inline those resources as data: URLs, then convert again.
- Should I convert SVG to JPG instead?
- Only if you want a solid background. JPG cannot store transparency, so the converter fills transparent areas with the background color you set and uses the quality setting, 90% by default.
- Are my files uploaded when I use this converter?
- No. This converter works on your device, one image at a time, and never uploads them.
Sources
- canvas.toBlob saves PNG by default, its quality value is used for file formats that suppor (developer.mozilla.org)
- MDN describes SVG as an XML-based vector graphics format, ideal for diagrams, icons and ot (developer.mozilla.org)
- Google Search's favicon guidelines list BMP, GIF, ICO, PNG, JPEG, PPM and TIFF as supporte (developers.google.com)
- devicePixelRatio is the ratio of physical pixels to CSS pixels; a value of 1 is a classic (developer.mozilla.org)
- The W3C CSS Values spec defines 1in = 2.54cm = 96px, so 1px is 1/96th of an inch. (www.w3.org)
- MDN says some browsers restrict SVG used as an image: JavaScript is disabled and external (developer.mozilla.org)
- Inkscape's command line exports PNG with --export-type=png; -o/--export-filename sets the (gitlab.com)
- By default rsvg-convert (librsvg) renders an SVG document to a raster PNG image; its -f/-- (manpages.debian.org)
- Figma says PNG supports lossless compression and transparency, Figma exports 32-bit RGBA P (help.figma.com)