X Xerobit

SVG to PNG Converter

Turn any SVG into a crisp PNG at the exact size you need — 2× for retina screens, 8× for print, or a precise pixel width. Keep the background transparent or fill it with a color, and export JPEG or WebP too. Conversion happens entirely in your browser, so your files never leave your device.

…or paste SVG code
Choose, drop, or paste an SVG to convert.

How to convert SVG to PNG

  1. Add your SVG. Drop one or more .svg files on the box above, click to choose them, or paste SVG markup.
  2. Pick a size. 1× keeps the SVG's own dimensions; 2×, 4× and 8× multiply them. Choose Custom width or Custom height to hit an exact pixel size — the other side follows the aspect ratio.
  3. Choose a background. PNG and WebP stay transparent by default. Pick Solid color to flatten onto white, black or your brand color.
  4. Download. Each file gets its own download button, or use Download all for a batch.

Changing the format, size or background re-renders every file instantly, so you can export several sizes of the same icon in a few clicks.

Why the PNG stays sharp at any size

SVG is a vector format: shapes are stored as math, not pixels. A naive converter renders the SVG at its small default size and then stretches the bitmap, which gives blurry edges. This tool rewrites the SVG's width and height to the output size before rendering, so the browser draws every curve directly at the final resolution. A 24 px icon exported at 8× comes out as a clean 192 px PNG, not an upscaled blur.

If the SVG has no width/height, its viewBox sets the size. If it has neither, browsers fall back to 300 × 150 px — the same default this tool uses. The largest side is capped at 8,192 px to stay within browser canvas limits.

What size PNG do you need?

UseTypical PNG size
Browser favicon32 × 32 (plus 16 × 16)
Apple touch icon180 × 180
PWA / Android icon192 × 192 and 512 × 512
Open Graph / social share image1200 × 630
Retina UI icon2× or 3× the CSS size
Slides and documents1,000–2,000 px wide
Print at 300 DPIinches × 300 (e.g. 3 in → 900 px)

Building a full favicon set? The Favicon Generator creates every size plus an .ico in one go.

PNG vs JPEG vs WebP

Need the result even smaller? Run it through the Image Compressor.

When to convert an SVG to PNG at all

On the web, keep SVG wherever you can — it is smaller and scales perfectly. Convert to PNG when the destination doesn't accept SVG: email clients (most block SVG), social networks and Open Graph images, app-store and PWA icons, Microsoft Office and Google Slides in some setups, chat apps, and older CMS image fields.

Troubleshooting

Text shows in the wrong font

An SVG rendered as an image can't load web fonts from other files. Convert text to outlines in your design tool (Figma: Outline stroke / Flatten; Illustrator: Create Outlines; Inkscape: Object to Path), or embed the font in the SVG as a data URI.

Embedded images are missing

For the same security reason, <image href="photo.jpg"> pointing at another file won't load. Embed the image as a data: URI inside the SVG instead.

“The browser couldn't render this SVG”

The markup has a syntax error — often an unclosed tag, an unescaped &, or HTML pasted around the SVG. Open the file in a browser tab to see the parser error, fix it, and try again.

Convert SVG to PNG from the command line

For build scripts and bulk jobs, these tools do the same conversion:

# librsvg — fast and widely packaged
rsvg-convert -w 1024 -o icon.png icon.svg

# Inkscape 1.x
inkscape icon.svg --export-type=png --export-width=1024 --export-filename=icon.png

# ImageMagick 7 (keep transparency with -background none)
magick -background none -density 300 icon.svg icon.png
// Node.js with sharp
import sharp from 'sharp';
await sharp('icon.svg', { density: 300 }).resize(1024).png().toFile('icon.png');

FAQ

Is the SVG to PNG converter free?

Yes — free, unlimited, no signup and no watermark.

Are my files uploaded?

No. The SVG is drawn onto a canvas by your own browser and the PNG is created locally. Nothing is sent to a server, which also makes it safe for unreleased logos and client work.

Does the PNG keep a transparent background?

Yes. PNG and WebP keep transparency unless you choose a solid background. JPEG has no alpha channel, so it is always flattened onto white or the color you pick.

Can I convert several SVGs at once?

Yes. Select or drop multiple files; each is converted with the same settings and can be downloaded individually or all together.

What is the maximum output size?

8,192 px on the longest side. Larger canvases exceed the limits of many browsers and phones.

Related tools

Part of Frontend & Design tools.


Written by Mian Ali Khalid. Last updated 2026-10-26.