Skip to content

SVG to PNG Converter

Convert SVG to PNG in your browser. Upload or paste SVG, set width and height with or without keeping the aspect ratio, choose 1×, 2× or 3× scale and a transparent or solid background, and download a real PNG. The SVG is sanitised first.

Image Runs client-side Free to use
Jump to the tool
Share: X WhatsApp
Loading SVG to PNG Converter…

About the SVG to PNG Converter

SVG to PNG Converter turns vector SVG artwork into a PNG image without uploading it. Choose a .svg file or paste code and the tool sanitises it before anything is drawn — scripts, event handlers, embedded HTML and external URLs are removed — then renders it as an image, never by inserting raw SVG into the page. It reads the intrinsic size from the width/height attributes or the viewBox and suggests that as the output size.

Set the width and height in pixels, keep the aspect ratio linked or unlink it to stretch the drawing, choose a 1×, 2× or 3× scale for sharp results on high-density screens, and pick a transparent or solid background colour. The tool checks the final dimensions against safe browser limits before rendering and shows the exact size and file size of the PNG it produced. PNG is a raster format, so the result is a fixed grid of pixels: choose the size you need rather than enlarging the PNG later.

How to use

  1. Choose or drop an .svg file, or paste code and click Load SVG.
  2. Check the preview and the detected size.
  3. Set the width or height, the scale and the background.
  4. Click Convert to PNG.
  5. Check the result and download the PNG.

Key features

  • File upload or pasted SVG code, up to 5 MB.
  • Sanitised before rendering; drawn as an image so nothing can run.
  • Custom width and height (1–8,192 px) with an aspect-ratio lock.
  • 1×, 2× and 3× output scale.
  • Transparent or solid-colour background.
  • Size validation, real PNG output with exact dimensions, and Reset.

Best practices

  • Use 2× or 3× for logos and icons shown on high-density screens.
  • Keep the aspect ratio locked unless you want the drawing stretched.
  • Choose a solid background if the PNG will sit on a dark or busy page.
  • Embed fonts as paths in your design app if exact typography matters.
  • Keep the SVG as your master file and export new PNG sizes from it.

Benefits

  • PNG images for apps, documents and sites that do not accept SVG.
  • Pixel-exact sizes with crisp high-density exports.
  • Safe handling of untrusted SVG files.
  • Private and free, with no uploads.

Frequently asked questions

Will the PNG stay sharp when enlarged?

No. PNG is a raster image with a fixed number of pixels. Choose the final size, or a 2× or 3× scale, before converting instead of enlarging the PNG later.

Why does text in my PNG use a different font?

For safety, fonts and images linked from outside the SVG are not loaded, so text is drawn with fonts available on your device. Convert text to paths in your design app to keep the exact look.

What size is used by default?

The width and height attributes of the SVG, or its viewBox if those are missing. If neither exists the browser default of 300 × 150 px is used.

What is the maximum size?

Each side can be up to 8,192 px before scaling, and the final PNG must stay within 16,384 px per side and 50 megapixels. Larger sizes are refused with a message.

Is the background transparent?

Yes by default — areas the SVG does not paint stay transparent. Choose Solid colour to fill them with any colour.

Can a malicious SVG harm my device?

The SVG is parsed as data, scripts, event handlers, embedded HTML and external references are removed, and the cleaned file is drawn as an image, where browsers do not run scripts. Malformed files are rejected.

Is my SVG uploaded anywhere?

No. The SVG is read, sanitised and processed by JavaScript in your browser tab. Nothing is sent to a server, and the SVG code and results are not saved in browser storage.