Screen and rasterize an SVG

Apply a strict local SVG screening policy, reject unsupported active or external features, and rasterize an accepted drawing to PNG.

When this tool is useful

Creating a flattened preview or sharing copy of a simple, self-contained SVG whose visible result is more important than editability.

How local processing works

The browser parses XML, enforces explicit element, attribute, URL and size rules, rejects scripts, event handlers, foreign content and disallowed references, then rasterizes only an accepted document to a bounded canvas and encodes PNG.

How to use it

  1. Prepare the source and limits: Keep an unchanged source and review the accepted format, dimensions, frame or page budget, and output choices. Creating a flattened preview or sharing copy of a simple, self-contained SVG whose visible result is more important than editability.
  2. Process locally: Run the documented bounded operation in this browser and stop when the decoder reports an unsupported structure. The browser parses XML, enforces explicit element, attribute, URL and size rules, rejects scripts, event handlers, foreign content and disallowed references, then rasterizes only an accepted document to a bounded canvas and encodes PNG.
  3. Download and verify: Inspect the screening report, treat any rejection as a stop signal, compare the PNG with the intended artwork in an isolated trusted viewer, check fonts, clipping, gradients and transparency at the target size, and never substitute this conversion for security review of SVG source.

Important limitations

Strict screening reduces a known set of risks but does not prove an SVG completely safe, sanitize it for later SVG reuse, or certify hostile input. Complex filters, fonts, CSS, masks, animation, external resources and uncommon SVG features may be rejected or render differently; the PNG loses vectors, text selection and editability.

Verify the downloaded result

Inspect the screening report, treat any rejection as a stop signal, compare the PNG with the intended artwork in an isolated trusted viewer, check fonts, clipping, gradients and transparency at the target size, and never substitute this conversion for security review of SVG source.

Private by design

Your files stay in this browser. The tool does not upload the source or output to our servers.

Questions and answers

When is this workflow useful?

Creating a flattened preview or sharing copy of a simple, self-contained SVG whose visible result is more important than editability.

What does local processing do?

The browser parses XML, enforces explicit element, attribute, URL and size rules, rejects scripts, event handlers, foreign content and disallowed references, then rasterizes only an accepted document to a bounded canvas and encodes PNG.

Which format limits matter?

Strict screening reduces a known set of risks but does not prove an SVG completely safe, sanitize it for later SVG reuse, or certify hostile input. Complex filters, fonts, CSS, masks, animation, external resources and uncommon SVG features may be rejected or render differently; the PNG loses vectors, text selection and editability.

How should I verify the download?

Inspect the screening report, treat any rejection as a stop signal, compare the PNG with the intended artwork in an isolated trusted viewer, check fonts, clipping, gradients and transparency at the target size, and never substitute this conversion for security review of SVG source.

Related tools