SVG to PNG Converter

Convert SVG files or code to PNG, JPG or WebP at any size, with a live preview, app icon presets and nothing uploaded.

Input

Drop an SVG file here

or paste with Ctrl+V. Up to 10 MB per file.

Your files stay on your device. Nothing is uploaded.

Live preview

Estimated file size: Add an SVG to see the estimate.

Output format

Lossless, and the background can stay transparent.

Size
Resolution (DPI)

With a scale, more DPI means more pixels: 300 DPI is 3.125 times the pixels of 96 DPI. The DPI is also saved inside PNG and JPG files.

Background

Transparent areas stay see-through. Choose a solid color if your target platform does not support transparency.

SVGs using currentColor render black by default. Pick a color to match your brand.

App icon and favicon sizes

One click sets the exact size. The SVG is fitted inside it, centered.

Step by step: how your SVG becomes an image

Example: a 24 × 24 icon to a 1,024 × 1,024 PNG
  1. Load the SVG. Its size is 24 × 24 px, taken from its viewBox.
  2. Exact size 1024 × 1024 px. The drawing is enlarged 42.67 times to fit inside it with its shape kept.
  3. Output size: 1,024 × 1,024 px at 96 DPI, 1.05 megapixels. The limit is 8,192 px on a side.
  4. Make a canvas of 1,024 × 1,024 px with a transparent background.
  5. Draw the SVG onto the canvas. currentColor becomes #000000. Fonts and pictures from outside files are not loaded, for security.
  6. Encode as PNG: lossless, transparency kept. The 96 DPI is saved in the file.
  7. Result: a 1,024 × 1,024 px PNG file.

App icon size guide

The sizes most sites and apps ask for. Each row is one click in the presets above.

UseSize (px)Where it is used
Favicon16 × 16Browser tab
Favicon32 × 32Browser tab on sharp (retina) screens, bookmarks
Favicon48 × 48Site icon in search results, desktop shortcuts
Favicon64 × 64Larger site icon files
Apple Touch Icon180 × 180iPhone and iPad home screen
Android and PWA192 × 192Android home screen, PWA manifest
Android and PWA512 × 512PWA install prompt and splash screen
iOS App Store1,024 × 1,024App Store listing
Social share (OG)1,200 × 630Link preview (Open Graph) on social networks and chat apps

Free API

Send the SVG code (or just its size) and get the output size, DPI, problems found and a ready link back to this tool with your settings filled in. No key is needed. It does not draw the image: that happens in the browser, so your file never leaves your device. Please link back to this page when you use it.

Example:

GET https://ivorytool.com/api/svg-to-png?size=24x24&width=1024&height=1024&format=png&bg=transparent&dpi=96
Add this calculator to your website

Free to use on any site or blog. Paste this code where you want the calculator to appear. It stays up to date, needs no account, and keeps your visitors' numbers in their own browser.

Preview

Why use our SVG to PNG Converter?

  • Private Your SVG is drawn and saved in your browser. Nothing is uploaded, so unreleased logos stay yours.
  • Live preview See the result on a checkerboard before you download, with the file size for PNG, JPG and WebP.
  • App icon presets One click for favicon, Apple Touch, Android, PWA, App Store and Open Graph sizes, or all of them in one ZIP.
  • Size control Scale 1× to 10×, an exact width and height, and DPI up to 1,200, with the output size shown first.
  • Transparency and color Keep a transparent background or fill a solid color. Pick the color for currentColor icons.
  • Batch and formats Up to 50 files at once as PNG, JPG or WebP, in one ZIP.
  • Free, no ads Free API, English, Hindi and Urdu (right to left), no signup, no watermark and no ads.

How to use the SVG to PNG Converter

Choose One file, Batch or Paste SVG code and add your SVG. The preview shows the result at once and updates as you change settings. The default is a PNG with a transparent background.

Pick a size. Scale multiplies the SVG's own size: a 24 × 24 icon at 4× is 96 × 96 px. Exact size takes a width, a height or both, and with both the icon is fitted inside the box with its shape kept. With a scale, DPI changes the pixels too: 300 DPI gives 3.125 times the pixels of 96 DPI. A browser limit caps the output at 8,192 × 8,192 px.

Click Convert, then download the file or a ZIP. For app icons, click a preset such as Apple Touch Icon 180×180, or Export all sizes. If your icon uses currentColor, pick its color first, because it is black by default.

Worked examples

Icon to app icon: a 24 × 24 SVG set to an exact 1,024 × 1,024 px becomes a 1,024 × 1,024 PNG of 1.05 megapixels. The drawing is enlarged about 42.7 times (1,024 ÷ 24) and stays sharp because it is redrawn from vector shapes, not stretched.

Batch of logos: 20 logos of 240 × 80 px, converted at an exact width of 512, become 512 × 171 px PNGs (512 ÷ 240 = 2.133, and 80 × 2.133 = 170.7). Switch to Batch, drop all 20 and download one ZIP.

currentColor icon: an icon with fill="currentColor" comes out black. Pick #3d5ad1 in the currentColor field and the PNG is blue. A 2 × 2 inch SVG (192 × 192 px) at 300 DPI becomes 600 × 600 px for print.

Good to know

  • External fonts, pictures and styles are not loaded, because browsers block outside files inside images. Convert text to outlines or embed the picture in the SVG.
  • Animations and scripts do not run. An animated SVG becomes one still frame.
  • The limits are 8,192 × 8,192 px per image and 10 MB per SVG file. Very large images need a lot of memory.
  • Some browsers cannot save WebP. If yours cannot, choose PNG.

Questions people ask

How do I convert SVG to PNG?

Add your SVG file or paste its code, choose a size, and click Convert. The PNG is made in your browser, so nothing is uploaded.

How do I get a high resolution PNG from an SVG?

Choose a bigger scale such as 4×, or type an exact width such as 2048. The SVG is drawn again at that size, so edges stay sharp. The limit is 8,192 px on a side.

Is the PNG background transparent?

Yes, by default. Choose Solid color if your platform does not support transparency. JPG cannot be transparent, so it always uses the background color.

Why does my icon come out black?

The SVG uses currentColor, which takes its color from the page. A standalone PNG has no page, so it is black. Pick a color in the currentColor field.

What size should my favicon and app icon be?

Use 16 and 32 px for browser tabs, 180 px for the Apple Touch Icon, 192 and 512 px for Android and PWA, and 1,024 px for the iOS App Store. The presets set each size in one click.

Why is my text in a different font?

The SVG uses a font that is not on your device, and browsers do not load web fonts inside an image. Convert the text to outlines in your design app first.

SVG vs PNG: When to Use Which

SVG is a vector format defined by the W3C. It stores shapes and paths, so it stays sharp at any size and is usually small. It suits logos, icons and simple illustrations on websites.

PNG stores pixels. Use it where SVG is not accepted: app stores, social networks, email, slides, documents and many upload forms. PNG keeps transparency. Choose JPG for photos or when a flat background is fine, and WebP for small web images.

Common SVG to PNG Errors (and How to Fix Them)

Missing xmlns: the root tag must declare xmlns="http://www.w3.org/2000/svg", or some programs show nothing. This tool adds it and tells you. External fonts or pictures: browsers do not load them inside an image, so text changes font and pictures vanish. Convert text to outlines and embed pictures.

currentColor renders black: set the color field. Odd size: an SVG with no width, height or viewBox is drawn at 300 × 150 px, and without a viewBox it does not scale. Add a viewBox such as viewBox="0 0 24 24" and the sizes follow.

How to Export SVG Icons at the Right Size

Start from the size the destination asks for, in pixels, not from the SVG. Use Exact size with the width and height, or a preset. With both filled, the icon is centered inside the box with its shape kept, so a wide logo gets empty space above and below instead of being squashed.

For print, use Scale with a DPI: a 2 inch wide SVG at 300 DPI is 600 px wide. For screens, 2× and 3× versions of an icon cover sharp displays. Check the pixel size under the preview before you convert.

Part of the guide: Image tools: compress, resize, crop and convert photos

Preparing a file for print? Revectora, run by the same owner, has free checkers for DPI, vector and bleed.

Formulas and text last checked on 18 November 2026. Everything is calculated in your browser, so nothing you enter is sent or stored. Spotted a mistake? Tell us and we will fix it.