Convert

SVG to PNG Converter

Upload an SVG and render it at any size as a PNG. Set a custom width and height or use the SVG's natural dimensions. Background can be transparent or a custom color. SVG scripts are blocked for safety.

Client-side · runs in browserFree · No signup requiredSVG

Input formats

SVG

Output formats

PNG

Common uses

  • Export an SVG icon as a PNG for use in apps
  • Create a PNG version of a vector logo
  • Prepare SVG illustrations for platforms that don't support SVG

Limitations

  • SVGs with unsupported browser rendering features may render incorrectly.
  • SVGs containing scripts, event handlers, or external resources are blocked for safety.

Turning vector files into fixed-pixel PNGs

SVG is a vector format, so it stays crisp at any size, but plenty of places will not accept it: app icon pipelines, email clients, older CMS uploaders, social platforms, and design tools that expect a raster image. This converter renders your SVG once at the pixel size you choose and hands back a PNG, which is the format those destinations actually understand.

Because the output is a snapshot at a chosen resolution rather than a live vector, decide your target size before exporting. If you need a 512-pixel app icon and a 64-pixel thumbnail from the same source, run the conversion twice at each size. The PNG keeps a transparent background by default, so a logo or icon drops cleanly onto whatever sits behind it.

The download is named after your source file, so an upload called logo.svg comes back as logo.png. That keeps batches of icons easy to match up after you have exported several of them.

How sizing and background choices behave

The width and height fields each accept a value from 1 to 8000 pixels. Leave both blank and the tool uses the SVG's own natural dimensions; if the file declares no intrinsic size at all, it falls back to a 300 by 300 canvas so you still get a usable image rather than an error.

Width and height are applied independently, with no aspect-ratio lock. That gives you room to deliberately reshape artwork, but it also means mismatched numbers will stretch or squash the result. If you want to scale proportionally, set only one dimension and leave the other blank, or do the ratio math yourself before typing both values.

Background offers three options. Transparent preserves the SVG's empty areas, which is the right pick for icons and logos meant to overlay other content. White flattens everything onto a solid white canvas, useful for documents or platforms that render transparency oddly. Custom opens a color picker so you can paint the backdrop any single solid color you like.

What the safety check actually blocks, and where it runs

SVGs are XML and can carry executable content, so the tool inspects the file's text before rendering it. It rejects the file if the markup contains a script tag, a javascript: reference, or an inline event handler attribute such as onload or onclick. When any of those are present, the conversion stops and you are told the SVG cannot be safely rendered.

Be aware of what this check does not cover: it does not strip, rewrite, or block external resource links, remote images, xlink:href references, external use or image elements, url() fetches, or external entities. The screening targets the three script-style patterns above and nothing more, so treat a passing file as free of those specific patterns rather than fully sanitized.

Everything happens locally in your browser. The SVG is read, screened, drawn to a canvas, and encoded to PNG on your own machine, and the file is never uploaded to a server. That makes the tool a practical fit for internal brand assets or unreleased artwork you would rather not send anywhere.

Frequently asked questions

SVGs can contain embedded scripts and external resource references that create security risks when loaded in a browser. SVGs with these features are rejected to protect you.

Related tools

Appearance

Choose how the site looks on this device.