Convert SVG to PNG
Convert SVG to PNG at the exact width you need, with a transparent or solid background. The SVG is drawn in your browser, so your files never leave your device.
- ⚡ Super fast
- 🔒 No upload
- 🎁 Free, no sign-up
Or paste SVG code
How to convert SVG to PNG
Drop your SVG files into the box, or select Choose SVG files.
Type the width in pixels under Width (px). The height follows the proportions of each SVG.
Leave Transparent background (PNG) checked to keep empty areas see-through, or uncheck it and pick a background color.
Select Convert SVG, then download each PNG, or all of them as one ZIP file when you convert two or more.
What is an SVG file?
An SVG file is a vector image. SVG stands for Scalable Vector Graphics, and the file is plain text that describes shapes, lines, colors and text with coordinates instead of storing pixels. A browser or design app draws those shapes each time the image is shown, so it stays sharp at any size.
That is why logos, icons, charts and illustrations are so often delivered as SVG. One file works for a 16 px icon in a menu and for a banner across a whole screen. Web developers like SVG because the files are small, can be styled with CSS and stay crisp on high-resolution displays. Designers export SVG from Illustrator, Inkscape, Figma and most icon libraries.
Because an SVG is text, you can open it in any text editor and read it. At the top is the svg element with a width, a height and usually a viewBox. The viewBox sets the coordinate system the shapes are drawn in, and it tells a converter the proportions of the image. Without a viewBox or a size in pixels, a converter cannot know how tall the PNG should be.
What is a PNG file?
A PNG file is a raster image: a fixed grid of pixels, each with its own color. PNG stands for Portable Network Graphics. It uses lossless compression, so sharp edges and flat colors stay clean, and it can store transparency, which lets a logo sit on any background without a white box around it.
Almost every program, website and device can open a PNG. That makes it the safe format to send when you do not know what the receiver uses. Its drawback is the fixed size. A PNG that is 600 px wide looks sharp at 600 px or smaller, but stretched to 1,200 px the edges turn soft, because the missing pixels have to be guessed.
PNG is also the usual format for screenshots and interface graphics, where text and thin lines must stay readable. Because the compression is lossless, saving a PNG again does not wear down its quality, so it is a good working copy for artwork that will be edited further.
SVG vs PNG compared
Use SVG when the image is shown on a website you control and must stay sharp at every size. Use PNG when the image goes somewhere that does not accept SVG, or when you need one fixed size that looks the same everywhere.
Many designers keep both. The SVG is the master file they edit, and PNG copies are exported at the sizes each place needs. When a new size comes up, they export again from the SVG instead of resizing an old PNG, which would make it blurry.
| Feature | SVG | PNG |
|---|---|---|
| Image type | Vector (shapes) | Raster (pixels) |
| Scaling | Sharp at any size | Sharp up to its own pixel size |
| Transparency | Yes | Yes |
| Best for | Logos, icons and charts on websites | Sharing, documents, social media, screenshots |
| Photos | Not suited | Works, but files get large |
| Where it opens | Browsers and design apps | Almost every app and device |
| Editable as shapes | Yes | No |
| Can contain scripts | Yes | No |
What are the disadvantages of SVG?
SVG is not supported everywhere. Many social networks, email programs, office apps and marketplaces refuse SVG uploads or show them wrong. SVG is also a poor fit for photos, very detailed files can be slow to draw, and an SVG can contain scripts and links to other files, which a plain image never does.
Text in an SVG only looks right if the font is available where the file is shown. A PNG has no such problem, because the text has already been turned into pixels.
Changing an SVG by hand also means editing code or opening a vector app, while anyone can crop or paste a PNG in the image tools they already have.
Why convert SVG to PNG
The usual reason is support. The SVG looks right in your design app, but the place you want to use it only takes a normal image. Typical cases where a PNG works and an SVG does not:
- Profile pictures, posts and cover images on social media
- Email signatures and newsletters
- Older programs and upload forms that do not open SVG
- Shop and marketplace listings that accept only PNG or JPG
- Favicon and app icon tools that ask for a large square PNG as the source image
SVG to PNG background for common uses
Each place a PNG ends up has its own needs. Transparency lets the image blend into the page around it. A solid background is safer when you do not know the background, because a dark logo on a transparent PNG can vanish in an app with a dark theme. These settings are a good starting point:
| Where the PNG goes | Background | Why |
|---|---|---|
| Logo on your own website | Transparent | The page color shows through around the logo |
| Email signature | White | Stays readable if the reader uses a dark theme |
| Slides and documents | Transparent, or the slide color | No white box on colored slides |
| Social media profile picture | A solid brand color | Fills the whole circle or square |
| Favicon or app icon source | Transparent | Only the icon shape shows on light and dark tabs |
| Print shop or online printing service | White | Unless the printer asks for transparency |
How this SVG to PNG converter works
The converter reads your SVG as text in the browser and checks it first. Files that contain scripts, animation or links to outside resources are refused before anything is drawn. A file that passes is drawn onto a canvas at the width you chose, and the canvas is saved as a PNG on your device.
Because the SVG is drawn fresh at the target size, the PNG is as sharp as that size allows.
The defaults are 1,200 px wide, PNG and a transparent background, so for a quick conversion you only need to add the file and select Convert SVG. You can also switch Save as to JPG if the place you upload to does not take PNG.
Choosing the width for your PNG
The default of 1,200 px suits most web pages, documents and slides. Before you change it, think about the largest size the image will be shown at, and use that as your starting point.
For a profile picture or an app icon, start from a square SVG so the PNG comes out square too.
The width can be anything from 1 to 8,192 px. If you are unsure, go larger rather than smaller: a big PNG can always be scaled down without problems, but a small one cannot be scaled up.
Convert SVG to transparent PNG
Transparent background (PNG) is checked by default. With it on, every part of the SVG that has no shape stays see-through in the PNG, so converting SVG to transparent PNG needs no extra steps.
Transparency is what lets a logo work on colored slides, photos and dark backgrounds. Place a PNG without transparency on a blue slide and you get a white box around the logo. With a transparent PNG, only the logo itself shows.
Uncheck the box when you want a solid background instead, and pick the color with the color picker. White is preselected, which suits documents, while a brand color works well for a social media post. The color fills everything behind the artwork.
If your PNG has a background you did not expect even with transparency on, the background is part of the SVG itself. Design apps sometimes add a full-size rectangle behind the artwork. Delete it in the editor, export the SVG again and convert once more.
Which SVG files can be converted
The converter accepts static, self-contained SVG files below 10 MB. Self-contained means everything the image needs is inside the file. References to other parts of the same file, such as a gradient or clip path defined elsewhere in the SVG, are allowed, and so are style rules in a style element as long as they contain no @ rules.
An SVG can behave like a small web page, with scripts, animation and links to other files. This converter does not run code from a file and does not fetch anything from outside it. If a file contains one of the items below, you get a message and nothing is converted. That includes images and fonts a design app embedded in the file during export.
| Content in the SVG | Result | What to do |
|---|---|---|
| Scripts or event handlers such as onclick | Refused | Export a static SVG without interactivity |
| Animation (animate, animateTransform, animateMotion, set) | Refused | Export a still version without animation |
| Embedded web content (foreignObject, iframe, object, embed) | Refused | Remove the element or redraw it as shapes |
| Linked images or images embedded as base64 data | Refused | Remove the image from the SVG |
| Style rules starting with @, such as @font-face, @import or @media | Refused | Remove the rule and convert text to outlines |
| url() pointing to another file | Refused | Keep only references to elements inside the file |
| DOCTYPE or ENTITY declarations | Refused | Save the SVG again without them |
| Size in mm, cm, pt or percent with no viewBox | Refused | Add a viewBox or set width and height in px |
Why text looks different after you convert SVG to PNG
Text in an SVG is drawn with the fonts installed on your device. An SVG that loads a font from the web or embeds one with @font-face is refused with a message, so the font has to come from your own system. If the font named in the SVG is not installed, the browser picks a fallback font, and the PNG can look different from your design.
To keep the exact look, convert the text to outlines in your design app before you export the SVG. Most editors have a command for this, usually called outline text or object to path. The letters then become shapes, and they look the same on every device.
Because the fonts come from your device, converting on the computer the design was made on, where the font is installed, gives the best chance of a match when the text is not outlined.
Save SVG as PNG in Inkscape
Inkscape is a free vector editor that opens and exports SVG files. If you already have it installed, you can save SVG as PNG from its export dialog.
Inkscape also works from the command line: inkscape input.svg --export-type=png --export-filename=output.png --export-width=1200 exports one file at 1,200 px wide. That is useful in build scripts, but for a few files a browser converter is quicker than installing a desktop app.
- Open the SVG in Inkscape.
- Open File, then Export.
- Choose Page, Drawing or Selection as the area to export.
- Enter the width in pixels and choose PNG as the format.
- Select Export.
Export SVG to PNG in Figma
Figma can also turn an SVG into a PNG. The size is set in the export setting, either as a scale such as 2x or as a fixed width or height.
This route makes sense when the SVG is already part of a Figma design. For a single file outside Figma, a browser converter is faster, because there is nothing to import. In Figma the steps are:
- Import the SVG into a Figma file.
- Select the layer.
- Add an export setting in the Export section of the right panel.
- Choose PNG and set the scale or width.
- Select Export.
Convert SVG to PNG in Photoshop or Illustrator
Adobe's own guides describe a route in each program, and they work in different ways. Photoshop turns the SVG into pixels as soon as it opens the file, so the size you give it when opening decides how sharp the PNG can be. If the result looks soft, close it and open the SVG again at a larger size. After that, File, Export, Export As saves the image as PNG.
Illustrator keeps the artwork as vectors until you export, so the size is set at the very end. That makes it the better choice of the two when you need the same artwork at several scales. In Illustrator the steps are:
- Open the SVG in Illustrator.
- Select File, then Export, then Export for Screens.
- Choose PNG under Formats.
- Set the scale, for example 2x for a sharper image.
- Export the file.
Convert SVG to PNG on Mac
Whether Preview opens SVG files depends on the macOS version, so it is not a dependable route. Quick Look, the preview you get by pressing the space bar in Finder, can show an SVG but does not save it as a PNG.
In Terminal, recent versions of macOS can also convert SVG with the built-in sips tool. Older versions may not read SVG at all.
Convert SVG to PNG on Windows
Microsoft is adding SVG support to the Photos app in Windows 11, first for Windows Insiders and later for all users. Renaming a file from .svg to .png does not change what is inside it, and Edge and Chrome can display an SVG but do not save it as a PNG.
A screenshot of the SVG in a browser works in a pinch, but the PNG is then limited to the resolution of your screen and picks up whatever is around the image, such as the page background.
Online SVG to PNG converters that upload your files
Many online converters send your SVG to their server, convert it there and keep the files for a while. Some delete uploads after a few hours, others within 24 hours. That is fine for public artwork, but less so for a client logo under NDA or a product design that has not been announced. On some of these sites the free plan also converts only one file at a time.
This SVG to PNG converter has no server step. Your browser reads the file, draws it and creates the PNG on your device, and the download comes straight from your device's memory. Nothing is uploaded and there is no account to create.
Fixing SVG to PNG errors
When a file cannot be converted, the converter shows a short message and stops. Most problems come from how the SVG was exported, and a new export with different settings usually fixes them. Before you export again, check the SVG export settings in your design app for options that embed images or fonts, and switch them off.
| Message | Cause | Fix |
|---|---|---|
| Not a valid SVG file | The file is not an SVG, or its code is broken | Export the SVG again from your design app |
| The SVG needs a viewBox or a width and height in pixels | No size, or a size in units like mm or pt | Add a viewBox, or set width and height in px |
| Only static, self-contained SVG files are supported | Scripts, animation or embedded web content | Export a static version of the file |
| SVG event handlers are not supported | Attributes such as onclick or onload | Remove the interactivity before exporting |
| SVG files must not reference external resources | A linked or embedded image | Remove the image from the SVG |
| Only local SVG references are supported | A url() that points outside the file | Keep only references inside the file |
| SVG styles cannot load external resources | An @ rule or outside url() in a style element | Remove the rule, outline the text |
| SVG files must be below 10 MB | The SVG text is too long | Simplify the artwork or remove unused parts |
| Output is too large. Choose a smaller width. | The PNG would exceed the size limit | Enter a smaller width |
| The browser could not render this SVG | The browser failed to draw the file | Try another browser or simplify the SVG |
Your files stay with you
Most online tools upload your files to their servers. This one does not. It runs inside your browser, so your files never leave your device.
More tools on this site
SVG to PNG FAQ
Can I convert SVG to PNG with a transparent background?
Yes. Keep Transparent background (PNG) checked, and every empty area of the SVG stays transparent in the PNG.
How do I save an SVG as a PNG?
Add the SVG to the converter at the top of this page, set the width and select Convert SVG. The PNG is saved to your device. Inkscape and Figma can also export PNG.
Which has better quality, PNG or SVG?
SVG, when the image is shown at many sizes, because it stays sharp at all of them. A PNG is just as sharp at its own pixel size, but blurs if it is enlarged.
Are my SVG files uploaded?
No. Everything happens in your browser on your own device. Nothing is sent to a server.
Can I convert PNG back to SVG?
No, not with this tool. It only converts SVG to PNG or JPG. Turning pixels back into shapes needs a tracing tool.
How do I convert SVG to PNG on a Mac?
Open this page in your browser, add the SVG and convert. Preview does not open SVG reliably, and the sips command in Terminal only reads SVG on recent macOS versions.
How do I convert SVG to PNG on Windows?
Use a browser converter like this one in Edge or Chrome. Changing the file extension does not convert anything, and the browsers only display the SVG.
Is this SVG to PNG converter free?
Yes. There is no account and no watermark, and you can use it as often as you like.
Why does the text in my PNG look different?
The SVG uses a font that is not installed on your device, so a fallback font is used. Convert text to outlines in your design app before exporting the SVG.