Hunt
Skip to content

SVG to PNG Converter

Turn SVG files or pasted SVG code into PNG images at exactly the size you need: 2× or 4× for sharp screens, or a set width such as 512 pixels for app icons. The SVG is drawn as vectors at the final size, so edges stay crisp. Keep the background transparent or fill it with a colour, and convert many files at once.

Runs in your browser

or drop or paste them here. Nothing is uploaded.

How the size is worked out

An SVG's own size comes from its width and height attributes. When one is missing, the other side follows the viewBox proportions; when both are missing, the viewBox size is used, and with no viewBox either, browsers use 300 × 150. Units such as pt, mm and in are converted at 96 pixels per inch.

Scale multiplies that size, so a 24 × 24 icon at 4× becomes 96 × 96. Width or Height sets one side in pixels and keeps the proportions.

How to use the SVG to PNG Converter

  1. Choose or drop SVG files, paste SVG code, or press Sample.
  2. Pick a scale, or set a width or height in pixels.
  3. Keep the background transparent or choose a colour; pick PNG, WebP or JPEG.
  4. Download each image, or all of them as a ZIP.

Examples

A 24 × 24 icon at 4×

Input
<svg width="24" height="24" viewBox="0 0 24 24">
Output
PNG, 96 × 96

A logo with only a viewBox, 600 pixels wide

Input
<svg viewBox="0 0 120 40">
Output
PNG, 600 × 200

Without width and height, the viewBox gives the proportions: 120 × 40 is 3:1.

Sizes in inches

Input
<svg width="2in" height="1in" viewBox="0 0 200 100">
Output
JPEG, 192 × 96

2 inches at 96 pixels per inch. JPEG has no transparency, so the background is filled (white unless you pick a colour).

No size at all

Input
<svg xmlns="http://www.w3.org/2000/svg">
Output
PNG, 300 × 150

The default size browsers use. Add a viewBox to SVGs you export.

Sharp at any size

Scaling a small PNG up makes it blurry. Here the SVG itself is drawn at the output size, so a 16-pixel icon exported at 1024 pixels is as sharp as one designed at that size. Export the largest size you need from the SVG rather than resizing a PNG.

Options

Size by
Scale (1× to 4×), or a width or height in pixels with the other side in proportion. Up to 16,384 pixels a side.
Format
PNG (lossless, default), WebP or JPEG.
Transparent background
On by default for PNG and WebP. Turn off to fill with a colour; JPEG always has one.
Quality
For WebP and JPEG, 1–100.

Limitations

  • SVGs that load external images, fonts or stylesheets render without them: browsers block outside resources when drawing an SVG as an image. Embed them, or convert text to paths.
  • Scripts and animations don't run; the first frame is drawn.
  • Output up to 16,384 pixels a side and 50 megapixels.
  • Rendering may differ very slightly between browsers, especially for text.

Frequently asked questions

How do I convert SVG to PNG with a transparent background?

Keep Transparent background on and choose PNG or WebP. Areas the SVG doesn't paint stay transparent.

How do I get a high-quality PNG?

Choose a larger scale or width. The SVG is drawn at that size as vectors, so it stays sharp; don't upscale a small PNG afterwards.

Why is the text in my PNG in a different font?

Fonts that the SVG loads from the web or that aren't installed on your device can't be used. Convert text to outlines in your design tool before exporting.

Are my files uploaded?

No. Your browser draws the SVG and the image is encoded on your device.