247888.XYZ

SVG to PNG Converter

Paste SVG markup or open a vector file and render a transparent PNG. Choose an exact pixel width or scale the drawing to 1×, 2× or 4×.

Render PNG

Result

Loading tool controls…

Render PNG

  1. Supply a drawing
    Example
    SVG root

    Supply a drawing

    Paste a complete SVG or choose a file up to 2 MB. The file replaces the text in the editor.

  2. Choose pixel size
    Example
    2× scale

    Choose pixel size

    Use the viewBox proportions when no pixel width and height are specified.

  3. Inspect transparency
    Example
    Transparent canvas

    Inspect transparency

    Check the rendered PNG and the dimensions before saving it.

Export a double-density icon

The sample drawing measures 64 by 64 units. Set 2× to make a 128 by 128 PNG. Leave empty space around the shape to retain transparent pixels.

Export a double-density icon
64 × 64 at 2×
128 × 128
Export a double-density icon

Fit an exact width

Choose exact width and enter 96. For a drawing with a 2 to 1 aspect ratio the resulting height is 48 pixels. Small strokes can look different when they land between pixels.

Inspect the exported file with the image upload checker.

Fit an exact width
2 to 1 at 96 px
96 × 48
Fit an exact width

Check the drawing boundaries

ViewBox

A viewBox contains an origin and two dimensions. Extra space inside that rectangle remains in the exported image. Tighten the rectangle in the source to crop it.

Pixel export

Rendering at 4× creates sixteen times as many pixels as 1×. If the export exceeds the pixel limit, use exact width to choose an intermediate size.

SVG to PNG Converter examples
SettingResult
64 × 64 at 2×128 × 128
2 to 1 at 96 px96 × 48

What happens to your image?

The SVG is decoded in an isolated image context on your device. Scripts do not run and external images and fonts are unavailable. Privacy policy.

  1. Supply a drawing
  2. Choose pixel size
  3. Inspect transparency

SVG to PNG Converter questions

Why did the font change?

The browser uses fonts available locally. Convert lettering to paths in the source for consistent outlines.

Can I paste an HTML page?

Paste the SVG element itself, including its closing tag. The document must parse as valid SVG XML.

Why does the PNG have a background?

A filled rectangle in the drawing covers the transparent canvas. Remove that element in the source if appropriate.

Related tools