Skip to content

Menu

SVG to PNG Converter

Convert SVG to PNG images

Runs entirely in your browserImage & MediaFree, no sign-up
Loading tool

01What is SVG to PNG Converter?

SVG is great until something refuses to take it. App stores, email clients, slide tools and plenty of upload forms want a bitmap. This converter turns your SVG into a PNG at the exact pixel size you ask for, and it redraws the vectors at that size instead of blowing up a small image. You start in one of two tabs. Paste markup into SVG Code, or drop an .svg file into File Upload. The tool parses the root element and works out a starting size. It reads the width and height attributes first and converts absolute units at the CSS rate of 96 pixels per inch. So width="2in" starts at 192 px, 5cm at 189, 72pt at 96 and 10mm at 38. If only one side is given, the other comes from the viewBox ratio. Percentages are ignored and the viewBox is used instead. If there is nothing to go on, you get 256 by 256. Under Output Dimensions you set Width (px) and Height (px). The link icon turns the aspect ratio lock on or off. Then pick a Scale of 1x, 2x, 3x or 4x. The output is base size times scale, and neither side may go over 8192 pixels. Ask for more and you get an error rather than a broken canvas. When you click Convert to PNG, the tool rewrites the root element's width and height to the output size. It also adds a viewBox from the original size if the file had none, so the browser can draw the paths sharply at the new size. If you turned the lock off and the shape no longer matches, preserveAspectRatio is set to none and the drawing stretches to fill. The result is painted onto a canvas and encoded as PNG with transparency kept. You see it over a checkerboard with its size and file weight. A quick example: the built-in Icon / Logo sample has viewBox="0 0 24 24" and no width or height. It starts at 24 by 24, and at 4x you download a 96 by 96 PNG named svg-export-96x96.png. Upload logo.svg instead and the file becomes logo-96x96.png. Pasted SVG is shown as an image, never inserted into the page as HTML, so scripts or onclick handlers inside it do nothing. The flip side is that the browser renders SVG images in isolation. External images, linked stylesheets and web fonts don't load, so text may fall back to a system font. Also, the starting size is read once per paste or upload. If you edit the markup afterwards, set Width and Height yourself.

Frontend and mobile developers and designers who need a sharp PNG of an SVG icon, logo or chart at a specific size. The tool runs entirely in your browser, so your data never leaves your device.

02How to use SVG to PNG Converter

  1. Choose the SVG Code tab and paste markup, or File Upload and drop an .svg file.
  2. Check the starting Width (px) and Height (px), and keep the link icon locked to avoid distortion.
  3. Pick a Scale of 1x, 2x, 3x or 4x and confirm the output size stays within 8192 px.
  4. Click Convert to PNG and look over the preview on the checkerboard.
  5. Click Download PNG to save it as name-WIDTHxHEIGHT.png.

03Worked examples

Input: <svg viewBox="0 0 24 24">... (Icon / Logo sample), Scale 4x
Result: Starting size 24 x 24, output 96 x 96, file svg-export-96x96.png
No width or height, so the viewBox sets the size. Pasted code has no file name, hence svg-export.
Input: <svg width="2in" height="1in" ...> uploaded as badge.svg, Scale 1x
Result: Starting size 192 x 96, file badge-192x96.png
Inches convert at 96 px each.
Input: <svg width="5cm" height="72pt" ...>
Result: Starting size 189 x 96
1 cm is 96 / 2.54 px and 1 pt is 96 / 72 px, rounded.
Input: <svg width="100%" viewBox="0 0 200 60"> (Gradient Badge style)
Result: Starting size 200 x 60
Percentages are skipped and the viewBox is used.
Input: Width 3000, Height 3000, Scale 3x
Result: Error: Output dimensions exceed 8192px. Please reduce size or scale.
9000 px is over the 8192 limit per side.

04Common use cases

  • Exporting a 1024 x 1024 app icon from a square SVG for an app store listing
  • Making a 2x PNG of a logo for an HTML email, since many mail clients don't show SVG
  • Turning an SVG chart from a plotting library into a PNG for a slide deck
  • Producing PNG fallbacks of an icon set for a CMS that rejects SVG uploads
  • Checking how a converted icon looks over transparency before handing it to a mobile developer

05Tips

  • Edited the markup after pasting? The starting size isn't re-read, so type the Width and Height you want.
  • An SVG with neither width, height nor viewBox starts at 256 x 256. Add a viewBox so the drawing area is known.
  • Turn text into outlines or embed the font, because web fonts linked from the SVG won't load when it's rendered as an image.
  • Inline <image> references as data: URIs. External image links are blocked in this rendering mode.
  • Want 1024 px from a 24 px icon? Type 1024 in Width with the lock on rather than stacking scale, since 4x tops out at 96.

06Related concepts

Rasterization, PNG, viewBox, Retina display, HTML canvas.

Frequently Asked Questions

What is SVG to PNG Converter?

SVG to PNG Converter is a free, browser-based developer tool on AIDToolStack. Convert SVG to PNG images It requires no installation or sign-up and works entirely in your browser.

Is SVG to PNG Converter free to use?

Yes. No sign-up, no fees and no usage cap.

Does SVG to PNG Converter store my data?

No. It runs in your browser; nothing is uploaded.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…

What changed in AI dev tools, once a month

Renames, shutdowns, pricing changes and new MCP setups, each with a source.

Subscribe