How to convert SVG to PNG
- Add your SVG. Drop one or more .svg files onto the converter, click Choose files, or paste SVG code into the box and click Use this SVG.
- Pick the size. Choose a scale from 1× to 8× of the SVG's own size, type an exact width in px, or click a 300 DPI print-size preset. The output size in pixels is shown before you download.
- Choose the background. Leave Transparent background ticked for a PNG with an alpha channel, or untick it and pick a solid colour.
- Download the PNG. Click Download PNG. One file is saved directly; several files download as a ZIP. Everything is drawn by your browser and never uploaded.
Convert SVG code to PNG
No .svg file? You can convert SVG markup directly, for example an icon copied from a design tool, a code snippet, or the output of the SVG code editor:
- Copy the full markup, from
<svgto the closing</svg>. An<?xml …?>line before it is fine. - Paste it into the Or paste SVG code box in the converter above and click Use this SVG.
- Check the preview, choose a scale or exact width and a background, then click Download PNG. The file is saved as
pasted@2x.png(or similar).
Pasted code is handled the same way as a dropped file: your browser renders it as an image, so scripts in the code never run and nothing is uploaded. If the converter reports that it can't read the SVG, the code is usually incomplete or has a typo such as an unclosed tag. Open it in the SVG viewer or the code editor to find the problem. A missing xmlns attribute is added for you.
Choosing the PNG size and resolution
SVG is resolution-independent, so the same file can become a PNG of any size without getting blurry. A PNG is a fixed grid of pixels, so pick the size for where it will be used:
- 1×: the file's native size. Good for previews and documentation.
- 2×: the default for websites and apps, so images stay crisp on high-density (Retina) screens.
- 4× to 8×: slides, print mock-ups, and large images made from small icons.
- px: an exact width, such as 512 for an app icon. The height follows the SVG's aspect ratio, so the drawing is never stretched.
- Print size: presets for a 2 × 2 in sticker, a 4 × 6 in photo, A5 and A4 at 300 DPI. These set the pixel width and write a 300 DPI tag into the PNG so layout programs show the intended print size.
If the SVG has no width, height or viewBox, browsers treat it as 300 × 150, so set an artboard size in the SVG resizer first.
PNG sizes for favicons, app icons and social images
Common sizes to export. Square sizes need a square SVG; the converter keeps your artwork's proportions rather than stretching it.
| Use | PNG size (px) | Notes |
|---|---|---|
| Browser tab favicon | 16 × 16 and 32 × 32 | Small icons lose detail fast, so simplify the artwork first. |
| Favicon for Google Search | 48 × 48 (or a multiple, e.g. 96 × 96) | Google asks for a square icon whose size is a multiple of 48 px. |
| Apple touch icon (iPhone, iPad home screen) | 180 × 180 | Use a solid background: iOS fills transparent areas with black. |
| Web app manifest icons (PWA) | 192 × 192 and 512 × 512 | Chrome expects both sizes for an installable web app. |
| Google Play store listing icon | 512 × 512 | 32-bit PNG with alpha. |
| Apple App Store icon | 1024 × 1024 | No transparency: untick Transparent background. |
| Open Graph / link preview image | 1200 × 630 | Used by Facebook and LinkedIn link previews. Needs a 1.91:1 artboard. |
Chrome, Firefox and Edge also accept an SVG favicon directly, but PNG is still needed for Apple touch icons, app stores and link previews. To fit a wide logo into a square or 1200 × 630 frame, adjust the artboard with Resize SVG or trim empty space with Crop SVG before converting.
Converting SVG to PNG with a transparent background
PNG supports an alpha channel, so anything the SVG doesn't paint stays transparent, including soft edges and semi-transparent fills. That is what you want for logos placed on coloured pages, slides and video overlays.
Some places don't handle transparency well: iOS home-screen icons and some messaging apps show transparent pixels as black, and the App Store rejects icons with an alpha channel. For those, untick Transparent background and choose a colour that matches the design. If the PNG still shows a white box, the SVG itself contains a background rectangle; remove it in the editor.
Exact sizes: 512 × 512 and 1024 × 1024 PNG
Choose px and two preset buttons appear: 512 px for web app and Google Play icons, and 1024 px for the App Store icon and large artwork. You can also type any width from 1 to 8192. The height follows the SVG's aspect ratio, so a square artboard gives a square PNG and the output line shows the exact result before you download.
If your logo is not square, make the artboard square first with the SVG resizer, so the PNG isn't cropped or stretched.
High-quality PNG and 300 DPI print sizes
PNG is lossless, so quality is decided by pixel size. Because SVG is vector, you can export as large as you need without blur: use a higher scale (up to 8×) or an exact width that is at least the size at which the image will be shown. For sharp results on Retina screens, export at 2× the displayed size.
DPI is not a property of the pixels. A PNG is a grid of pixels; “300 DPI” only says how many of those pixels are printed per inch. To print at 300 DPI, work out the pixels you need: width in inches × 300. A 4 × 6 in print needs 1200 × 1800 px, and an A4 page (210 × 297 mm) needs about 2480 × 3508 px. The print-size presets do that arithmetic for you and write a matching DPI tag into the file (the PNG pHYs chunk) so a layout or print program can show the intended size. You can also set 150 or 300 DPI from the DPI tag menu without using a preset, or leave the tag unset. For bleed, flattening transparency, and when a PDF is a better print file, see the guide to converting SVG to PNG for print.
| Print size | At 150 DPI | At 300 DPI |
|---|---|---|
| 2 × 2 in sticker | 300 × 300 | 600 × 600 |
| 4 × 6 in photo | 600 × 900 | 1200 × 1800 |
| A4 (8.27 × 11.69 in) | 1240 × 1754 | 2480 × 3508 |
| A3 (11.69 × 16.54 in) | 1754 × 2480 | 3508 × 4961 |
How large can the PNG be?
Scales go up to 8× and the exact-width box accepts up to 8192 px. Browsers can only create canvases up to a certain size, so the finished PNG is kept within 16384 px on each side and about 268 million pixels in total, the limits of Chrome and Edge. If your settings ask for more (for example a large illustration at 8×), the converter saves the largest PNG that fits, keeps the proportions and tells you the size it used. Some browsers, notably Safari on iPhone and iPad, allow less; if the first attempt fails, the converter tries again at up to 4096 px instead of giving you an empty file.
SVG to JPG, WebP, and many files at once
This converter produces PNG only. It can convert several SVG files in one go: drop them together (or click Add more SVG files) and Download n PNGs saves a ZIP called svg-to-png.zip, up to 30 files. Each file uses the same scale or width, background and DPI settings. For JPG or WebP, export a PNG with a solid background colour and convert it with any image editor.
Converting SVG to PNG for email, documents and social media
SVG works well in browsers, but many other places only accept bitmap images. These are the most common reasons to convert, and the settings that work for each.
Email signatures and newsletters
Many email clients, including Gmail and several versions of Outlook, don't show SVG at all. Export the logo as PNG at 2× the width it will be shown at (for a 200 px wide signature logo, export 400 px) and set width="200" on the image in the email's HTML. Some clients ignore transparency or use dark mode, so test a solid background if the logo has thin dark lines.
Word, PowerPoint, Google Docs and Slides
Recent Microsoft 365 apps can insert SVG, but older Office versions, Google Docs and Google Slides need a bitmap. A transparent PNG at 2× to 4× stays sharp on a full-screen slide and blends with any slide colour. For a printed document, use the 300 DPI table above to choose the width.
Social media posts and link previews
Social networks don't accept SVG uploads, and link preview images (Open Graph) must be PNG or JPG. Design on an artboard with the right proportions, such as 1200 × 630 for link previews or 1080 × 1080 for a square post, then use px mode to export that exact width. Use a solid background, since some apps show transparent areas as black or white.
Favicons and app icons
Export each size from the table above separately from the same SVG, so every icon is drawn sharply at its own size rather than scaled down from one large PNG. For the smallest sizes, a simplified version of the logo often reads better.
Troubleshooting SVG to PNG conversion
Text uses the wrong font
The browser can only use fonts installed on your device or embedded in the SVG; web fonts linked from a stylesheet or Google Fonts are not loaded, so text falls back to a default font. Convert text to outlines (paths) in your design tool, or embed the font in the SVG as a data: URI inside an @font-face rule, before converting. Fonts installed on your own computer do work, but the result will differ on a device without them.
External images, fonts or CSS are missing
When a browser draws an SVG as an image it does not load anything outside the file, so <image href="https://…">, linked stylesheets and web fonts are skipped. Embed images as data: URIs and move styles into a <style> element inside the SVG.
The PNG is blank, cropped or has extra space
The PNG shows exactly what is inside the SVG's viewBox. Artwork outside it is cut off, and empty margins inside it are kept. Open the file in the SVG viewer to check its size and viewBox, and use Crop SVG to fit the viewBox to the artwork.
“Contains content browsers block from export” (foreignObject)
SVGs from some diagram and charting tools wrap their labels in <foreignObject>, which embeds HTML. Browsers refuse to export a canvas that has drawn it, so the converter shows this error rather than saving a broken file. Delete the foreignObject elements, or re-export the diagram from its tool with plain SVG text, and convert again.
The PNG looks blurry or soft
A PNG exported from SVG is sharp at its own pixel size; blur appears when an app enlarges it. Check the Output size line before downloading and make it at least the size the image will be displayed at, or twice that for Retina and other high-density screens. Very thin strokes can still look faint at small sizes such as 16 px favicons; thicken them in the editor first.
The SVG is slow to convert or very large
Files exported from design tools often carry metadata, hidden layers and overly precise coordinates. Clean them up with the SVG optimizer before converting; the PNG looks the same but the SVG is easier for the browser to render.
The PNG is smaller than the size I picked
Browsers limit how large a canvas can be. If your settings exceed 16384 px on a side (or the smaller limit on some phones and tablets), the converter saves the largest size that fits and shows a note with the size it used. If an export fails entirely, try a smaller scale or width. Note that a PNG is a single still image: SVG animations are not kept and scripts never run.
Private by design: nothing is uploaded
Many online converters upload your file to a server. This one doesn't: your browser draws the SVG onto a canvas and saves the result as a PNG on your device, including when you convert a batch. That makes it suitable for unreleased logos and client work, and it keeps working on slow connections once the page has loaded.
SVG vs PNG: when to convert
| Feature | SVG | PNG |
|---|---|---|
| Scaling | Sharp at any size | Fixed pixel grid |
| Best for | Logos, icons, illustrations on the web | Email, social media, office documents, app stores |
| Editable | Yes, shapes and text stay editable | Only as pixels |
| Supported everywhere | Browsers yes; many other apps no | Practically everywhere |
That is the short version. SVG vs PNG: when to use each covers file size, email and browser support, and when to keep the vector file as the master.
Need to change the artwork first?
Open the file in the free SVG editor online to recolour it, resize the artboard, edit text or remove shapes, then export PNG from the editor's export menu or bring it back here. New to SVG? Read how to create an SVG file and how to edit an SVG file.