Skip to main content
MahaDBT

SVG to PNG

Turn an SVG into a sharp PNG at the size you choose.

or drop a file here

Runs in your browser · files stay on your device

Max 2 MB · output up to 8000px on the longest side · files with scripts are refused

Help and details

  1. Select an SVG file from your device.
  2. Check the preview and any warnings shown under it.
  3. Choose the PNG size (1× to 4×, or a custom width) and the background.
  4. Press Convert and download PNG. Your SVG is not changed.

  • The file is read in your browser and parsed as XML. Files with scripts, event handlers, embedded HTML (foreignObject), or entity declarations are refused.
  • The SVG is drawn through an image element created from an in-memory file, a context where scripts and outside resources do not run or load. It is never inserted into the page.
  • It is then drawn onto a canvas at the output size and saved as PNG, so the result is sharp at the size you pick.
  • Sizes in units such as pt, mm, cm, and in are converted to pixels at 96 pixels per inch.

  • SVG (.svg)
  • Max 2 MB
  • Output up to 8000 px on the longest side and 40 megapixels

  • Text uses fonts installed on your device. Web fonts or custom fonts referenced by the SVG do not load, so text can look different from the original.
  • Images or other files the SVG links to on the internet are not loaded.
  • SVGs without a width, height, or viewBox cannot be sized and are refused.
  • Animations and interactivity are not kept; the PNG shows the first frame.
  • Very large outputs are limited to protect your browser: 8000 pixels on the longest side and 40 megapixels.

This tool runs in local-only mode. Your text or files are processed in your browser and are not uploaded to our servers for this feature. Keep originals on your device; downloads create a separate copy.

Is my SVG uploaded?
No. The file is read and converted in your browser, and nothing is sent to our servers.
Why was my SVG refused?
SVG files can contain scripts or embedded content. We refuse files that contain scripts, event handlers, embedded HTML, or entity declarations, rather than silently changing them. Export a plain SVG from your design tool and try again.
Which size should I choose?
Use 2× for high-density screens and 1× for standard size. For print or large banners choose a custom width. A PNG cannot be enlarged later without losing sharpness, so pick the largest size you need.
Can I keep a transparent background?
Yes. Transparent is the default and PNG keeps the transparency. Choose white or a colour if the place you will use the image does not support transparency.

Related tools