SVG to PNG Converter
Render an offline SVG subset to a PNG with explicit size and background
SVG up to 2 MB; output up to 16384 per side and 64 million pixels. Active content, nonlocal references and some styles are removed. Loaded as an image; not certified for inline use elsewhere.
PNG preview will appear here.
About this tool
Convert SVG markup up to 2 MB to a PNG in the browser. Logical width and height must be integers from 1 to 8192; scale is 1x–4x. Final output is limited to 16384 pixels per side and 64 million pixels. SVG viewBox and preserveAspectRatio control fitting within that canvas. Without viewBox, absolute source dimensions supply the coordinate area when available; otherwise the requested logical size is used. Transparent output preserves unpainted pixels, or a chosen solid background is filled first. The limited offline SVG subset removes active elements, animation, foreignObject, foreign namespaces, event attributes, nonlocal references and some styles. Local fragment references and embedded PNG/JPEG/WebP data can remain. The SVG is loaded as an image; cleanup is not a general sanitizer for later inline use. Fonts, filters, supported SVG features and removed resources can change appearance. The preview, byte count and download use the same completed PNG. Editing input/options, clearing or a failed replacement invalidates earlier results. Inputs and settings are not stored and SVG content is not uploaded.
Scenario Recipes
Export a production SVG icon at 2x PNG density
Goal: Create a bitmap fallback while preserving the intended aspect ratio
- Paste the reviewed SVG and set the logical width and height used by the target layout.
- Choose 2x scale and the required transparent or solid background, then render.
- Inspect the preview and removed-item count, download the PNG, and compare it at final CSS size in the target interface.
Result: A dimensioned PNG fallback that has been visually checked in its real display context.
Frequently Asked Questions
What are the size limits?
Source is limited to 2 MB. Logical dimensions are integers 1–8192, scale is 1–4, and the final canvas must fit 16384 pixels per side and 64 million pixels.
Does scale change the aspect ratio?
Scale multiplies both pixel dimensions equally. SVG viewBox and preserveAspectRatio still determine whether artwork is stretched, cropped or letterboxed.
Can I keep transparency?
Yes. With transparent background enabled, unpainted pixels stay transparent. Otherwise the chosen color is filled before drawing.
Which SVG features are changed?
The offline subset removes scripts, events, foreignObject, animation, foreign namespaces, nonlocal references and some styles. Local fragment references and embedded raster data can remain.
Is cleanup a complete security guarantee?
No. Rendering uses SVG image mode and a limited cleanup policy. It does not certify the original SVG or a future inline embedding as safe.
Does download match the preview?
Yes. The completed PNG is kept as an immutable Blob. Changing input or options removes that result and its download button; inputs are not saved or uploaded.
Keep browsing