SVG Viewer & Converter
Preview SVG files safely and export them as PNG, JPEG, or WebP — entirely in your browser.
- Paste an SVG document (a complete
<svg>…</svg>element) into the markup box, or press Sample for a demo. - Review the preview — it shows exactly what the export will look like, with scripts and external resources disabled.
- Pick a format: PNG or WebP keep transparency; JPEG needs a solid background color.
- Choose an export scale (2×–4× is good for icons) and press Download, or copy the cleaned-up SVG source.
- Safe preview: the SVG renders as a flat image, so scripts and external loads never run.
- Three export formats: transparent PNG and WebP, or JPEG with a solid background of your choice.
- Scale control: crisp exports at 0.5×–8×, capped at 4096 px per side.
- Instant validation: clear, field-level errors explain exactly what to fix.
SVGs are vector files: they scale perfectly but aren't accepted by every editor, uploader, or social platform. Rasterizing to PNG/JPEG/WebP in the browser keeps the job local — no file upload, no queue, no server-side pipeline — and works offline. It's the same rendering engine your browser already uses to draw the SVG on screen.
- Markup is limited to 2 MB. The preview and export rely on your browser's SVG engine, so very complex filters or unsupported features may not render as expected.
- Only the root
width/height(orviewBox) drives the export size; the scale caps at 4096 px per side. JPEG output always has a solid background. - Documents containing
<script>or<foreignObject>are rejected rather than silently stripped. - All processing is client-side. nTropi does not upload the contents of this tool, and nothing is stored or logged.
How do I convert an SVG?
Paste an SVG document into the markup box, choose an export format (PNG, JPEG, or WebP) and a scale, then press Download. The preview updates automatically as you paste.
Does my SVG leave the browser?
Everything runs in your browser. The SVG is decoded as a flat image, rasterized onto a canvas, and exported — nothing is uploaded to nTropi servers.
Which formats keep transparency?
PNG and WebP keep transparency. JPEG has no alpha channel, so you choose a solid background color to fill the transparent areas before exporting.
How is the export size determined?
The export size is the SVG's width/height (or viewBox) multiplied by the scale, capped at 4096 px per side. Small icons look best at 2×–4×; the preview always shows the base size.
Will the export match the original exactly?
Yes — on most SVG documents. Some features (filters, exotic gradient units, external references, and any markup your browser's SVG engine does not support) can look different or fail to render. The preview shows exactly what you get before you download.