Free converter

SVG to PNG Converter

Convert SVG files or pasted SVG code to sharp PNG images in your browser — nothing is uploaded. Export one file or several at once, at up to 8×, an exact pixel width, or a 300 DPI print-size preset, with a transparent or solid background.

Drop SVG files to convert to PNG

or

Runs in your browser · Nothing is uploaded · No account

How to convert SVG to PNG

  1. 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.
  2. 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.
  3. Choose the background. Leave Transparent background ticked for a PNG with an alpha channel, or untick it and pick a solid colour.
  4. 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:

  1. Copy the full markup, from <svg to the closing </svg>. An <?xml …?> line before it is fine.
  2. Paste it into the Or paste SVG code box in the converter above and click Use this SVG.
  3. 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.

UsePNG size (px)Notes
Browser tab favicon16 × 16 and 32 × 32Small icons lose detail fast, so simplify the artwork first.
Favicon for Google Search48 × 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 × 180Use a solid background: iOS fills transparent areas with black.
Web app manifest icons (PWA)192 × 192 and 512 × 512Chrome expects both sizes for an installable web app.
Google Play store listing icon512 × 51232-bit PNG with alpha.
Apple App Store icon1024 × 1024No transparency: untick Transparent background.
Open Graph / link preview image1200 × 630Used 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 sizeAt 150 DPIAt 300 DPI
2 × 2 in sticker300 × 300600 × 600
4 × 6 in photo600 × 9001200 × 1800
A4 (8.27 × 11.69 in)1240 × 17542480 × 3508
A3 (11.69 × 16.54 in)1754 × 24803508 × 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

FeatureSVGPNG
ScalingSharp at any sizeFixed pixel grid
Best forLogos, icons, illustrations on the webEmail, social media, office documents, app stores
EditableYes, shapes and text stay editableOnly as pixels
Supported everywhereBrowsers yes; many other apps noPractically 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.

Questions

How do I convert SVG to PNG?

Drop one or more SVG files into the converter above (or paste SVG code), pick a scale from 1× to 8×, an exact width, or a print-size preset, choose a transparent or solid background, and click Download PNG. Several files are saved together as a ZIP.

Does the PNG keep a transparent background?

Yes, by default. Untick Transparent background to fill it with a colour of your choice instead, which is useful for app store icons and platforms that show transparency as black.

What resolution will my PNG be?

With a scale, the output size is the SVG's intrinsic size multiplied by the scale: a 24 × 24 icon at 8× becomes 192 × 192 px, and an 800 × 600 illustration at 2× becomes 1600 × 1200 px. With px, the PNG is exactly the width you type and the height follows the SVG's aspect ratio. The output size is shown before you download.

How do I convert an SVG to a 512 × 512 PNG?

Choose px, click the 512 px preset (or type 512), and check that the output reads 512 × 512. If the height comes out different, the SVG isn't square: make the artboard square in the editor or with the Resize SVG tool first.

How do I convert an SVG to a 1024 × 1024 PNG?

Choose px and click the 1024 px preset (or type 1024). The output line shows the final size; for a square result the SVG needs a square artboard. 1024 × 1024 is the size the Apple App Store asks for, with no transparency, so untick Transparent background for that one.

How do I get a high-quality PNG from an SVG?

Quality comes from pixel size, not a quality slider: PNG is lossless, so the more pixels you export, the sharper the result. Pick a scale of 2× to 8× or an exact width at least as large as the size it will be displayed at. If it will be shown on high-density screens, export at twice the display size.

Can I export a 300 DPI PNG?

Print size comes from pixel dimensions: pixels = inches × 300. Click a print-size preset (for example 4 × 6 in · 300 DPI) to set the width and write a 300 DPI tag into the PNG, or choose 150 or 300 DPI from the DPI tag menu. A layout program can then show the intended print size. If you leave the tag unset, the program may report 72 or 96 DPI even though the pixels are unchanged — you can still set the print size there.

Can I convert SVG code to PNG?

Yes. Paste the markup, starting with <svg, into the box next to the drop zone and click Use this SVG, then choose a size and download the PNG. The code is rendered in your browser and is not sent anywhere.

My pasted SVG code won't convert. What's wrong?

Make sure you copied the whole element, from <svg to </svg>, not just a <path> or the inside of the tag. Code copied from HTML (inline SVG) works, but if it uses CSS classes styled by the web page, those styles are not included, so colours may come out black. Move the styles into a <style> element inside the SVG or use fill attributes, then paste again.

Can I convert SVG to JPG or WebP?

Not directly: this tool saves PNG only. For a JPG or WebP, download the PNG first (untick Transparent background and pick a solid colour if the target format has no transparency) and then convert that PNG in an image editor or your operating system's image tools.

Are my files uploaded?

No. Conversion uses your browser's own renderer and a canvas element. The SVG never leaves your device, and there is no file size limit beyond your device's memory.

Can I convert several SVG files at once?

Yes. Drop several .svg files, or click Add more SVG files after the first one. They all use the same size, background and DPI settings. Download PNG saves them together as svg-to-png.zip (up to 30 files). Conversion still runs in your browser; nothing is uploaded.

Why does my PNG look blurry?

Usually because it has fewer pixels than the space it is shown in, so the app stretches it. Export at the displayed size or larger: 2× for high-density screens, or the exact width with px mode. A PNG made from SVG is only blurry if it is enlarged after export.

What is the largest PNG I can export?

Scales go up to 8× and exact widths up to 8192 px. The finished PNG is kept within 16384 px on each side and about 268 million pixels in total, the limits of Chrome and Edge canvases. If a size is over that, the converter saves the largest size that fits and tells you the size it used. If the browser still can't create the image, as can happen on iPhone and iPad, it retries at up to 4096 px.

Why does my SVG with foreignObject fail to convert?

A <foreignObject> embeds HTML inside the SVG, and browsers block canvases that contain it from being exported, so the converter shows an error instead of a PNG. Remove the foreignObject or replace the HTML text with SVG <text> and try again.

Can I use the PNG in Word, PowerPoint or Google Slides?

Yes. PNG can be inserted in every version of Word and PowerPoint, Google Docs and Google Slides, which is the main reason to convert. Export at 2× to 4× so the image stays sharp when it fills a slide, and keep the transparent background so it sits cleanly on any slide colour.

Should I use SVG or PNG in an email?

PNG. Many email clients, including Gmail and several versions of Outlook, don't display SVG images, while PNG works everywhere. Export a logo at 2× its displayed width and set the display width in the email's HTML so it stays sharp on high-density screens.