Skip to content

SVG to PNG: convert SVG files to PNG at any size

Turn logos, icons and diagrams saved as SVG into PNG images for slides, documents, app stores and social media. Choose a scale from 1× to 4× or an exact width in pixels, keep the background transparent or fill it with a colour, and convert up to 100 files at once into one ZIP. The drawing is done by your own browser, so files are never uploaded, scripts inside an SVG never run and links to outside files are blocked.

Quick answer

Add your .svg files, or paste SVG code. Pick a scale (2× suits most screens) or type an exact width, choose a transparent or solid background and press Convert. Each SVG becomes a sharp PNG drawn at that size, not a blown-up small image, and several files download together as a ZIP.

Files never leave your device

Based on MDN Web Docs, SVG as an image: restrictions in image contexts (last modified 13 May 2025) · Page updated 23 October 2026

Editor: Abuzar, founder of NeedMyToolsHow we check facts

Or drag and drop them here, up to 100 at once. .svg and .svgz. Your files stay on this device.

Or paste SVG code

How to use the SVG to PNG

  1. Drop your SVG files on the box or choose them. To convert code copied from a design tool or an icon site, open "Or paste SVG code" and add it.
  2. Choose the size: a scale of the size written in the SVG, or an exact width in pixels.
  3. Keep the background transparent for logos and icons, or pick a solid colour for places that do not show transparency, such as some email programs.
  4. Press Convert. One PNG downloads directly; several come as a ZIP. The table shows each file's SVG size and PNG size, and any part that was blocked.

Sharp PNGs at any size

An SVG is a set of drawing instructions, not a grid of pixels, so it can be drawn at any size without blurring. This tool draws each file directly at the size you choose rather than making a small image and stretching it, so a 24-pixel icon exported at 4× is as crisp as one drawn by hand at 96 pixels. Scale multiplies the width and height written in the SVG: 2× suits most phone and laptop screens, 3× and 4× suit slides, print previews and app-store graphics. Exact width is handy when a form asks for, say, a 512-pixel-wide logo: the height follows the drawing's own proportions. The largest PNG the tool makes is 16,384 pixels a side and 100 megapixels in total; phones may run out of memory sooner, and the table then says the image is too large.

SVGs with no width or height

Many icon libraries and design tools save SVGs with only a viewBox, for example viewBox="0 0 24 24", and no width or height. Here the viewBox gives the size: 24 × 24 at 1×, 48 × 48 at 2×. When a file has a width and height but no viewBox, the tool adds one so the drawing scales with the image instead of being cut off. Sizes written in centimetres, millimetres, inches or points are turned into pixels at 96 per inch, the standard CSS ratio. A file with no size at all gets 300 × 150, the default browsers use for an image with no size of its own, and the table says so. SVG code copied out of a web page often lacks the xmlns line; it is added automatically.

Why outside images and fonts are blocked

An SVG can point to other files: a photo on another website, a font, a stylesheet, or a script. Browsers treat an SVG shown as an image as a closed box: JavaScript is switched off and outside resources are not loaded, though anything embedded in the file as a data: URL still works (MDN Web Docs, page last modified 13 May 2025, read 23 October 2026). This tool draws every file that way, and also strips scripts, event attributes such as onload, and links to other files before drawing, so nothing is fetched and no code runs. The table counts what was removed. If a logo comes out with a missing photo or a different font, embed that image or font in the SVG and convert it again.

Arabic text and fonts inside SVG

Text stored as text in an SVG is drawn by the browser, so Arabic letters join and run right to left as they do on a web page. The font must be on your device or embedded in the SVG, because fonts linked from other sites are blocked. If the PNG shows a different typeface, open the SVG in your design program and either convert the text to outlines (paths) before exporting, or embed the font. Converting to outlines is the safest choice for a logo, because the result then looks the same on every computer. Emoji and rare symbols also depend on the fonts installed on your device.

Broken, damaged and very large files

Every file is checked before drawing. An empty file, a PNG or JPG renamed to .svg, or a page that is not SVG at all gets a plain message instead of a blank image. Broken XML, such as a tag that is never closed, is reported with the line number the browser gives. Old drawing-program files that use entity definitions are expanded once, while files with nested definitions, a known way to freeze a browser, are refused. Files over 20 MB are refused, and so is any size that would make a PNG wider or taller than 16,384 pixels. Compressed .svgz files are unpacked in the browser first. To go the other way and put PNG images into a document, use PNG to PDF; to make PNGs smaller for a website, convert them to WebP.

Frequently asked questions

How do I convert SVG to PNG without losing quality?

Choose a larger scale or width before converting. Each PNG is drawn from the SVG's vectors at that size, so 2× or 4× gives a sharper PNG than enlarging a 1× PNG later.

Can I keep a transparent background?

Yes. Transparent is the default, and empty areas of the SVG stay transparent in the PNG. Choose a solid colour if the PNG will go somewhere that does not handle transparency well.

Why does my SVG have no width or height?

Many icon sets save only a viewBox so the icon can be sized by the page. The converter reads the viewBox and uses it as the 1× size.

Why is an image or font missing from my PNG?

It was linked from another file or website rather than embedded. Outside links are blocked for safety, so embed the image or font in the SVG, or turn text into outlines, then convert again.

Are my SVG files uploaded to a server?

No. Each SVG is read, cleaned and drawn by your browser on your device, and the PNGs are saved straight from it.