How to use SVG to PNG Converter
- Choose one SVG file, up to 5 MiB. The page parses and checks it first and accepts basic shapes and text only.
- Leave the width empty to use the size inside the file, or enter a width from 16 to 4096 pixels.
- Set the scale when you need a multiple of that width, then choose a transparent or solid background.
- Select Convert, then download the PNG and check the pixel size in the result.
Example: SVG to PNG Converter
A badge that needs a PNG copy for a form which will not accept SVG.
Options
- Width
- The pixel width of the PNG. Empty uses the size the file declares: the width and height attributes first, then the viewBox. A file with none of those is refused. A file that names only a height, with no viewBox, is read as 300 pixels wide.
- Scale
- Multiplies the width, so 240 pixels at a scale of 2 gives 480. The height follows the drawing's shape, so nothing is stretched.
- Background
- Transparent keeps the PNG alpha channel. White, black or a colour you choose is painted behind the drawing first, which suits a file that will sit on a fixed page colour.
Supported inputs and limits
Where your input is processed
This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.
Why the file is parsed before it is drawn
An SVG is a small document rather than only a picture. It can carry a script, an event attribute, a reference to another server or a second document inside the first. The page parses the file as XML, walks the parsed tree and checks every element and attribute name against a fixed list. Only a file that passes is serialised and drawn, so nothing outside the list can reach the renderer. A refusal names the construct that failed, which is quicker to repair than a picture that quietly loses a detail.
What the pixel size means
An SVG describes shapes instead of a grid of pixels, so it has no single true resolution. The page reads the size from the width and height attributes, then from the viewBox, and refuses a file that gives neither. Writing a larger PNG does not invent detail the drawing never described, it only gives the receiving program more pixels to work with.
Questions about SVG to PNG Converter
Why was my file refused?
The file contained something the page will not run, such as a script, an event attribute, a gradient reference, an image element, an outside link or a document type declaration. The message names the construct, so you can open the file in a text editor, remove it and try again.
An icon with a gradient will not convert. What can I do?
Gradients, filters, image elements and use references are outside the supported set. Draw the artwork with the supported shapes and solid fills instead, or export a PNG from the drawing program and use an image tool for the rest.
Can I place a logo or a raster image inside the SVG?
No. Image elements, embedded raster images and data URIs are not supported, and neither are use, gradients, filters or external references. The page draws basic shapes, groups and text with solid fills and strokes only.
The PNG came out at the wrong size. What decides it?
The output width multiplied by the scale. Leave the width empty to use the size in the file, which comes from its width and height attributes or its viewBox. A file with none of those is refused.
Does the PNG keep the text as text?
No. The drawing is rasterised, so every glyph becomes pixels. Keep the SVG when you need selectable or searchable text.