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×.
- Supply a drawing
- Choose pixel size
- Inspect transparency
Render PNG
- 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.
- Choose pixel size
- Example
- 2× scale
Choose pixel size
Use the viewBox proportions when no pixel width and height are specified.
- 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.
- 64 × 64 at 2×
- 128 × 128
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.
- 2 to 1 at 96 px
- 96 × 48
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.
| Setting | Result |
|---|---|
| 64 × 64 at 2× | 128 × 128 |
| 2 to 1 at 96 px | 96 × 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.
- Supply a drawing
- Choose pixel size
- 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.