What is SVG to PNG?
This page draws an SVG into a PNG at a size you choose. Drop a file, pick one from disk, or paste <svg text when an icon or interface graphic needs a bitmap. Conversion stays in the browser. Files are not uploaded.
Size is a scale (1×, 2×, or 3×) or a custom width in pixels. Height follows the aspect ratio. If the long edge would pass 4096 pixels, the export shrinks in proportion and the file card says so. The default background is transparent. White or a custom color flattens the pixels. You can process about 10 files and download them as a ZIP. For a PDF of the same drawing, use SVG to PDF. That PDF embeds a raster image. It is not a vector PDF.
When it fits
- An SVG from a design file has to land in slides, email, or an older tool that only accepts PNG
- An icon needs a bitmap with a transparent background, not a white plate
- The file has no width or height, but it does have a viewBox, and you want the artwork's own ratio
To edit paths and colors, use the SVG editor. If the file is already a bitmap and you want JPG or WebP, use the image converter. To shrink the PNG afterward, use Tiny Image.
How it works
Export paints pixels. It does not rewrite paths. Three steps run in the browser:
- Sanitize. Scripts,
javascript:URLs, external images, andforeignObjectare removed. The cleaned markup is loaded from a blob URL in an<img>. MDN's img element describes that mode: scripts do not run. - Render to canvas. The image is drawn at the pixel size you chose. Transparent is the default. White or a custom color is painted underneath when you flatten.
- Scale. 1×, 2×, and 3× multiply the SVG's own size. A custom width sets the width in pixels and keeps the ratio. If the long edge would pass 4096 pixels, both sides shrink together.
This page does not trace bitmaps. Tracing on the other SVG pages quantizes colors and fits curves, and it scales the long edge to 1024 pixels first.
Privacy
The SVG never leaves your browser. A drop or paste is read with the local File API. Sanitizing, the canvas, and the ZIP stay on this device. There is no upload and no account.
Limits
- Export is PNG. PNG can carry an alpha channel, as defined in the W3C PNG specification. Transparent is the default. White and a custom color paint a background first.
- Preview and rasterizing both load a blob URL in an
<img>. MDN's img element reference describes that mode: scripts inside an SVG used as an image do not run. - External images,
javascript:URLs, scripts, andforeignObjectare removed before export.@font-faceand page fonts are unreliable when SVG is loaded as an image, so type may fall back. - Animation, filters, and HTML inside
foreignObjectcan disappear. Scale is a pixel multiplier, not print DPI. - Each file must be 8 MB or smaller. The export long edge stays at or below 4096 pixels. Tracing pages use a separate 1024-pixel edge before they fit curves.