SVG to PNG

Render an SVG safely, at the size you need.

FormatOnce checks the SVG against a strict allowlist, rejects anything active or remote, then renders the sanitized markup onto a canvas — as PNG, JPG or WebP.

Drop an SVG file

Up to 5.00 MB — or paste the markup below.

Choose a file
Output format

How it works

  1. 01Open an .svg file or paste the markup.
  2. 02The source is scanned for scripts, event handlers, foreignObject and remote references.
  3. 03Safe markup is sanitized, then drawn to a canvas at your chosen width.
  4. 04Download PNG, JPG or WebP with the matching file extension.

Limits

  • SVG up to 5.00 MB.
  • Max 8000 px per side, 16 megapixels total.
  • Remote fonts and images are never loaded.
  • Height follows the width to keep the aspect ratio.

Questions & limits

Why was my SVG rejected?
Because it contained something active or remote: a script, an event handler, foreignObject, an @import, or a reference to an external file. Each reason is listed so you can remove it.
Why does my icon look like a 512 px square?
The SVG had no usable width, height or viewBox, so FormatOnce falls back to 512×512. Set an output width to control the result.
Are external fonts rendered?
No. Remote resources are never fetched, so text using a web font falls back to a local font. Convert text to paths for exact output.
Why is there a pixel cap?
Very large canvases can exhaust memory and crash the tab. Output is capped at 8000 px per side and 16 megapixels.