SVG to PNG Converter

Turn one SVG drawing into a PNG at the width you choose, with a transparent or solid background.

Files stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Convert controls

Drop your image here

or choose one from your device

One SVG file, up to 5 MiB. The page accepts basic shapes and text only; use, gradients, filters, images and external references are refused.

    Leave this empty to use the SVG size. A viewBox or a width and height attribute supplies it; an SVG with none of those is refused.

    Multiplies the width. The height follows the SVG shape, so the picture is never stretched.

    Used only when Background is set to a colour you choose.

    How to use SVG to PNG Converter

    1. Choose one SVG file, up to 5 MiB. The page parses and checks it first and accepts basic shapes and text only.
    2. Leave the width empty to use the size inside the file, or enter a width from 16 to 4096 pixels.
    3. Set the scale when you need a multiple of that width, then choose a transparent or solid background.
    4. 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.

    You add
    badge.svg, an SVG with width 48, height 24 and viewBox 0 0 48 24. Output width 96, Scale 1, Background transparent.
    You get
    badge.png at 96 by 48 pixels on a transparent background. The result reports the SVG size it read, the output 96 by 48 pixels and the file size.

    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

    InputOne SVG file up to 5 MiB
    OutputPNG, up to 4096 pixels on the longest side
    CheckScripts, images, hrefs and outside links are refused
    This page reads one SVG file up to 5 MiB and writes PNG only. The longest side is capped at 4096 pixels and the output must stay under 40 megapixels. Each file is parsed as XML and then checked against a fixed set of elements and attributes, so a document type declaration, an entity, a script, an event attribute, a foreignObject, an iframe, a nested svg, any href or xlink:href, an image element, an embedded raster image, a data URI, a use reference, a gradient, a filter, any url() reference, an outside address, a javascript address and an unknown element or attribute are all refused with the construct named. The root element must be an SVG in the http://www.w3.org/2000/svg namespace, and a file with more than 10000 elements or more than 64 levels of nesting is refused as well. Inside those limits the page draws basic shapes, groups, text, titles, descriptions and plain CSS from a style block or a style attribute, filled and stroked with solid colours. Text becomes pixels and cannot be selected or edited afterwards, and metadata from the SVG is not carried into the PNG.

    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.

    Project manager: Tony Hines · Content updated 1 October 2026 · Report a problem