Rendered through an <img>

SVG to PNG

Vector markup in, a crisp PNG out — at whatever pixel width you need, with the intrinsic size shown first.

Rendering happens in this tab. Your markup is never uploaded.

PNG preview of the rendered SVG

Short answer: paste the markup or open the file, set the pixel width and download. The height follows the SVG's own aspect ratio, so nothing gets squashed, and a script inside the file cannot run because rendering goes through an image element.

Vector in, pixels out — once

Export at the largest size you will ever need. Upscaling a PNG later adds blur, while a larger SVG render costs only bytes. For a favicon set, the favicon generator renders every size from one source instead.

Fonts and remote assets

Text in an SVG renders with whatever font the browser has, unless the text is outlined. A remote image or stylesheet inside the file will not load, so the PNG can differ from what a design tool showed — that is the same sandbox that makes the rendering safe.

SVG questions

Why does a script inside the SVG not run?

The markup is rendered through an <img> element, which is the one browser path that cannot execute scripts, fetch remote assets or touch the page. A hostile SVG can draw something misleading, but it cannot act — and the page warns you when the file contains a script or a remote reference.

What width should I pick?

Twice the size it will be displayed at, for a screen asset; or the exact print size in pixels at 300 dpi for print. A PNG cannot scale past its own pixels, so choose the largest size you will need rather than exporting twice.

Why is the height not an input?

The aspect ratio comes from the SVG itself — width, height or the viewBox. Fixing the width and deriving the height is what keeps a logo from being squashed, which is the usual mistake when someone types both numbers.

Is my SVG uploaded?

No. The markup stays in the tab and the PNG is built from a local blob. Vector files often contain unreleased product names or embedded notes, so keeping them local matters.

Related tools