SVG to PNG Converter

Turn SVG files or SVG code into sharp PNGs at any size, transparent or on a colour. One file or a hundred, converted in your browser.

Drop SVG files here or browse

.svg and .svgz · as many as you like

Files stay on this device.
Size
Background

None keeps the background transparent.

Format

Only tells printers and Word how big to print it; the pixels stay the same.

Why convert SVG to PNG?

SVG is the best format for logos, icons and illustrations on the web, but plenty of places won't take one: many email clients (Gmail included) don't display SVG images, social networks and most upload forms want JPG or PNG, and app stores ask for PNG icons. A PNG made from the SVG works everywhere, keeps a transparent background, and can be made at any resolution without blurring, because the drawing is redrawn at the new size rather than stretched.

How to convert SVG to PNG

  1. Drop your SVG files on the box, tap it to choose them, or paste SVG code.
  2. Pick a size: 2× suits most screens; choose 4× or 8× for print, or Custom for an exact width and height.
  3. Keep the background transparent or pick a colour, and choose PNG, JPG or WebP. Every file updates as you change settings.
  4. Press Download on a file (or Copy to paste the PNG into a document or chat), or Download all to save the whole batch as a ZIP.

Which PNG size should you choose?

The size buttons multiply the SVG's own size: an icon drawn at 24 × 24 becomes 48 × 48 at 2× and 192 × 192 at 8×. When the SVG doesn't state a size, its viewBox is used. Because an SVG is redrawn rather than enlarged, 8× is just as crisp as 1×; the only cost is a bigger file. As a rule of thumb:

Where it's goingSize to choose
Web page, email or document1× or 2× (2× stays sharp on high-density phone and laptop screens)
iPhone and Android app assets2× and 3× (the @2x and @3x files)
Slides and video4×, or Custom 1920 px wide for a full-width slide
PrintWidth in inches × DPI: 4 in at 300 DPI = 1200 px; set DPI to 300
App icon or avatarCustom 512 × 512 (Google Play icons are 512 × 512 PNGs; App Store icons 1024 × 1024)
Social share imageCustom 1200 × 630, the size most sites use for link previews

SVG to PNG with a transparent background

PNG supports full transparency, so with Background set to None every part of the image the SVG doesn't paint stays see-through, including soft anti-aliased edges, and the logo sits cleanly on any colour. Choose White, Black or a Color when the PNG is going somewhere without a background of its own, such as a slide, a printed page or a profile picture. The previews sit on a checkerboard so you can see which parts are transparent. WebP keeps transparency too; JPG can't, so JPGs always get a background (white unless you pick another).

SVG to PNG at 300 DPI for print

DPI (dots per inch) describes how densely pixels are printed, not how many there are. To print a logo 4 inches wide at the usual 300 DPI you need 4 × 300 = 1200 pixels, so choose Custom and type 1200 as the width. Then set Print resolution to 300 DPI: it's saved in the PNG's pHYs field (or a JPG's JFIF header), so Word, InDesign and print dialogs place it at 4 inches instead of guessing. The page shows the resulting print size, for example "4 × 2 in (10.16 × 5.08 cm)", so you can check before downloading.

Convert SVG code from Figma, icon sets or a web page

You don't need a file. In Figma, right-click a layer and choose Copy/Paste as › Copy as SVG; icon libraries usually have a copy-SVG button; and in a browser you can right-click an icon, choose Inspect, then copy the <svg> element. Paste the code into Paste SVG code, or press Ctrl+V (⌘V) anywhere on this page. SVG copied from HTML is often not valid XML on its own: it may lack the SVG namespace, use entities like &nbsp; or leave attributes unquoted. The converter repairs those the way a browser would, so snippets that other converters reject still work.

SVG vs PNG

SVGPNG
What it storesShapes, paths and text (vector)A grid of pixels (raster)
EnlargingSharp at any sizeBlurs when scaled up
TransparencyYesYes
File sizeTiny for simple artworkGrows with the pixel count
Opens inBrowsers and design appsEverything: email, social media, Office, upload forms

Keep the SVG as your master copy and make PNGs from it as needed: the PNG is a snapshot at one size, while the SVG can produce a new one at any size later.

How every SVG is cleaned before conversion

SVG is a text format based on XML, and it can contain JavaScript, event handlers such as onload, embedded HTML and links to other servers. That's why some sites refuse SVG uploads. Here every file is cleaned first:

  • Scripts, event-handler attributes and <foreignObject> HTML are removed.
  • Links to images, fonts or stylesheets on other sites are removed, so converting never contacts another server. Images and fonts embedded in the file (as data: URIs) are kept.
  • A missing viewBox is added, so the drawing scales with the size you choose instead of being cropped.

Anything removed is listed under the file, so you know why a part might be missing. Your original SVG isn't changed.

When the PNG doesn't look like the SVG

  • Different font: text is drawn with fonts installed on your device. In your design app, convert text to outlines (Illustrator: Type › Create Outlines; Figma: Flatten; Inkscape: Path › Object to Path) for an exact match everywhere.
  • Missing picture or texture: it was linked from another site. Embed the image in the SVG and convert again.
  • Animation: animated SVGs are captured as a single frame.
  • Very large sizes: iPhones and iPads cap a canvas at about 16.7 megapixels, so a huge size there is scaled down to fit, and the file says so. Desktop browsers allow far more.

Working with other formats? The image converter turns PNG, JPG, WebP and HEIC into each other, the image compressor shrinks a large PNG, and the image resizer changes pixel sizes. Making icons for a website? The favicon generator turns an SVG into favicon.ico, Apple touch and Android icons in one go.

Frequently Asked Questions

How do I convert SVG to PNG?

Drop one or more SVG files on the box (or tap it to choose them, or paste SVG code). Each file is converted straight away at the size you pick, 2× by default, and you can download them one by one or all together as a ZIP. The conversion runs in your browser, so the files are never uploaded.

How do I convert an SVG to PNG with a transparent background?

Leave Background on Transparent, which is the default. PNG keeps transparency, so anything the SVG doesn't paint stays see-through. Pick White, Black or a custom colour only if you want a solid background, for example for a slide or a document. JPG can't store transparency, so a JPG always gets a background.

How do I convert SVG to a high-resolution PNG?

Choose 4× or 8×, or Custom and type the width you need, such as 3000 px. An SVG is a drawing rather than pixels, so it is redrawn at the new size and stays sharp at any resolution. For print, multiply the print size by the DPI: 4 inches wide at 300 DPI needs 1200 px. Then set the DPI to 300 so print dialogs and Word size it correctly.

Can I convert SVG to PNG without losing quality?

Yes, if the PNG is big enough. PNG is lossless, so nothing is lost when it's saved; the only choice that matters is the pixel size. A PNG can't be scaled up later without blurring, so convert at the largest size you'll need (2× for websites and phones, 4× or more for print) instead of enlarging the PNG afterwards.

How do I make a 512 × 512 PNG from an SVG?

Choose Custom and type 512 in both Width and Height. If the SVG isn't square, it is scaled to fit inside the square and centred, with the rest transparent (or your background colour), so nothing is stretched or cut off. Type only one side to keep the SVG's own proportions instead.

Can I convert multiple SVG files to PNG at once?

Yes. Drop or select as many SVGs as you like: every file is converted with the same settings, and Download all saves them in one ZIP. Changing the size, background or format re-converts the whole batch automatically, so you can try 1×, 2× and 4× without adding the files again.

Can I convert SVG code to PNG?

Yes. Choose Paste SVG code, paste the markup (from Figma's Copy as SVG, an icon library or a web page's source) and press Convert code. You can also press Ctrl+V (⌘V on a Mac) anywhere on the page with SVG code on the clipboard. Inline SVG copied from HTML often lacks the SVG namespace or uses HTML entities; both are fixed automatically.

Why does my PNG look different from the SVG?

Usually because of fonts or linked files. Text is drawn with the fonts installed on your device, so a font the SVG names but your device lacks is replaced by a similar one; convert text to outlines in your design app for an exact match. Images or fonts linked from other websites are not loaded, for privacy and security, so embed them in the SVG. The tool lists anything like this under each file.

Is it safe to open an SVG file here?

Yes. SVG is a text format that can contain scripts and links, so every file is cleaned before it is drawn: scripts, event handlers, embedded HTML and links to other sites are removed, and the drawing is rendered as an image, where browsers never run code. Nothing is sent anywhere, and your original file is not changed.

Can I convert SVG to JPG or WebP instead?

Yes. Set Format to JPG for the smallest files that open everywhere (it gets a white or custom background, since JPG has no transparency), or WebP for small files that keep transparency. WebP is available where your browser can create it: Chrome, Edge and Firefox can, Safari can't. Quality is adjustable for both.

Are my SVG files uploaded to a server?

No. The SVG is read, cleaned and drawn by your own browser, and the PNG is created on your device, so your files never leave it and nothing is stored. That makes it safe for unreleased logos, client artwork and anything under NDA, and it keeps working on a slow connection once the page has loaded.

Advertisement