Skip to main content
Preparing workspace

SVG to Image

Convert pasted SVG code to a PNG, JPG or WebP image at 0.1× to 16× scale, so icons and logos come out sharp, then download it. Free SVG converter.

Still loading. If the tool doesn’t appear, reload this page.

About this tool

SVG to Image

Rasterise SVG markup to a downloadable PNG, JPEG or WebP at any scale, entirely in your browser.

The SVG to Image converter rasterises SVG markup into a PNG, JPEG or WebP bitmap by drawing it onto an HTML canvas at a scale factor you choose. It reads the intrinsic size from the width and height attributes, falls back to the viewBox and then to the CSS replaced-element default of 300×150, and refuses any output above the 16,777,216-pixel canvas limit that Safari on iOS enforces. Everything happens in the browser, so the artwork is never uploaded.

How to use SVG to Image

  1. Paste your SVG code into the SVG markup box; the Preview and the Before you export panel show the intrinsic size, viewBox and aspect ratio straight away.

  2. Set a Scale factor between 0.1 and 16, pick PNG, JPEG or WebP as the Output format, and choose a Transparent, White or Black background.

  3. Press Download to save svg-export-<width>x<height> in your chosen format, or Copy data URI to paste the SVG inline into HTML or CSS.

Why use SVG to Image

  • Runs locally

    Canvas rasterising happens in your tab — no upload, no server, no queue.

  • Predictable dimensions

    The tool shows the intrinsic size, where it came from, and the exact output pixels before you export.

  • Scripts stripped

    Any <script> block or on* handler in the pasted markup is removed before the SVG is drawn.

Common use cases

  • Turn a 240×120 logo SVG into a 4× PNG for a platform that will not accept vector uploads
  • Export an icon at exactly 512×512 for an app store listing by setting the scale from the intrinsic size
  • Flatten an SVG onto a white background for a JPEG where transparency would come out black

Frequently asked questions

What resolution should I export at?

Multiply the intrinsic size by the scale you need. A 240×120 SVG at 4× gives 960×480. For screen use, 2× covers most high-DPI displays; for print at 300 dpi, take the physical size in inches and multiply by 300 — a 3-inch-wide logo needs 900 pixels of width.

Link to answer
Why does my exported image come out blank or huge?

Two common causes. If the SVG has no width and height attributes and no viewBox, browsers fall back to 300×150 px, so the export is small and may crop. And if the output exceeds 16,777,216 pixels — 4096×4096 — Safari on iOS will not allocate the canvas, so this tool blocks that size and asks you to lower the scale.

Link to answer
Why is my text rendering in the wrong font?

Canvas rasterising uses fonts installed on the machine doing the rendering. A web font referenced by URL will not load into the image, and an external reference also taints the canvas so the export fails outright. Convert text to paths in your vector editor before pasting, and the shapes come out exactly as designed.

Link to answer
Should I choose PNG, JPEG or WebP?

PNG if the artwork has transparency or flat colour and sharp edges, which is almost all logos and icons. JPEG only for photographic content, and note it has no alpha channel — this tool fills the background white or black instead. WebP gives smaller files than both at similar quality and is supported by every current browser.

Link to answer

Embed this tool on your site

Add the SVG to Image widget to your blog or website — free, responsive, no signup. Just keep the “Widget by AltFTool” credit link visible.

<iframe src="https://www.altftool.com/embed/widget/svg-to-image"
  title="SVG to Image — free AltFTool widget"
  width="100%" height="640" style="border:0;border-radius:12px;overflow:hidden"
  loading="lazy" referrerpolicy="no-referrer-when-downgrade" allow="clipboard-write"></iframe>
<p style="font-size:12px;margin:4px 0 0">Widget by <a href="https://www.altftool.com/tools/all/svg-to-image?utm_source=embed&utm_medium=widget" rel="nofollow">AltFTool — free online tools</a></p>

Browse all embeddable widgets →