Embed this tool on your site
About this tool
SVG to PNG Converter rasterises an SVG file into a PNG at the size you choose, entirely in your browser. Set an exact output width and height, or leave them blank and pick a scale such as 2x for sharp high-DPI exports. The background stays transparent by default, or you can fill it with white, black, or a custom colour for platforms that flatten alpha. SVG scales to any size without pixelation, but many platforms cannot read it: LinkedIn rejects it, Slack will not embed it, Open Graph previews skip it, and print shops want a raster file. The tool draws your SVG with the browser's native renderer, the same engine that displays SVG on web pages, so gradients, clip paths, and filters come out as they look on screen. Your files never leave your tab.
Why use it
Render at Any Resolution: Set the output to exactly 200×200, 1024×1024, or 2400×1200 pixels. Because SVG is a vector format, the browser renders it crisply at any size — unlike upscaling a small PNG, which introduces blur and compression artefacts at every doubling of size.
Transparent Background Preserved: Empty canvas areas in the SVG remain transparent in the PNG output by default, giving you a clean asset that composites over any background colour. Optionally pick white, black or a custom fill if the destination platform flattens alpha.
Scale Slider for Retina: With width and height left blank, the Scale slider multiplies the SVG's own size from 1× up to 8×. Export a 24×24 icon at 48×48 (2×) or 72×72 (3×) without calculating dimensions by hand.
Aspect-Ratio Preserved: Setting only the output width (or only the height) makes the tool derive the other side from the SVG's proportions, so logos and icons emerge at the correct shape. Fill in both when you need a specific canvas size, such as exactly 1200×630 for an Open Graph image.
Native Browser Rendering: The browser's SVG renderer handles gradients, masks, clip paths, filters and inline styles, so what you see in the preview is what you get in the PNG.
Browser-Local Rasterise: Brand logos, unreleased product mockups, and confidential design assets stay inside your browser tab. The Canvas and Image APIs rasterise the SVG locally — there is no server upload, no file transfer, and no log of your assets on any external system.
How to use
- Upload an .svg file from your device by clicking or dragging it onto the upload area.
- Optionally set an Output width in pixels — leave height blank and it is calculated from the SVG's proportions.
- Or leave both blank and move the Scale slider (1× to 8×, default 2×) for retina-ready exports.
- Choose a Background: Transparent, White, Black, or Custom colour.
- Click Convert to PNG and inspect the preview and the reported pixel size.
- Click Download PNG to save the file.
When it helps
- Exporting a Figma or Illustrator SVG as a PNG for LinkedIn, Slack, or another platform that rejects SVG uploads.
- Creating Open Graph images (1200×630 PNG) from an SVG logo or illustration for social sharing previews.
- Generating retina app icons at 2x and 3x from a single SVG source without opening a design tool.
- Preparing print-ready PNG assets when the print vendor requires raster images rather than vector files.
- Embedding an SVG graphic in a Word document, PowerPoint deck, or PDF form that does not support SVG.
- Testing what an SVG looks like rasterised at small sizes — such as 16×16 or 32×32 — before committing to a favicon.
Examples
Inputlogo.svg (8 KB, viewBox 0 0 240 80), width 1200
Expected resultPNG: 1200×400 transparent — height derived from the 3:1 proportions
Inputicon.svg (2 KB, 24×24), width and height blank, Scale 2×
Expected resultPNG: 48×48 transparent (2x retina from 24×24 base)
03Marketing graphic with gradient
Inputhero.svg (45 KB, gradient + drop shadow), width 1920, height 1080
Expected resultPNG: 1920×1080 transparent — gradient and shadow preserved
Tips
- Use 2x export for retina assets — a 24×24 icon exported at 48×48 looks crisp on all modern screens without wasting bytes on 3x when 2x already exceeds the screen's DPI.
- If your SVG uses a web font, convert the text to outlines in your design tool before exporting — fonts loaded from a URL are not available when the SVG is rendered as an image.
- Set only the width and let the height follow the SVG's proportions — manually entering both dimensions can accidentally squish logos if they differ from the original proportions.
- For Open Graph images (1200×630), set both width and height explicitly so the PNG has the exact canvas size Facebook and Twitter expect for share card previews.
- Keep the background transparent unless your destination flattens alpha — a transparent PNG composites cleanly over any surface, while a white-filled PNG is visually wrong on dark pages.
Frequently Asked Questions
What size PNG should I export for retina screens?⌄
Export at 2x the intended display size for standard retina and 3x for high-DPI mobile screens. For example, a 24×24 icon should be exported as 48×48 (2x) or 72×72 (3x). Most platforms and CSS frameworks expect the 2x variant tagged with @2x in the filename.
Will my SVG's transparent background be preserved?⌄
Yes. The default output is a transparent PNG. If the SVG has no explicit background fill, those pixels are exported as fully transparent in the PNG. You can optionally choose a solid background colour if the destination platform does not support alpha transparency.
Can I export at 4x or higher resolutions?⌄
Yes. The Scale slider goes up to 8×, or you can type any width and height. The practical limit is your browser's Canvas memory ceiling, which varies by device. Very large exports may be slow on older machines.
What if my SVG uses external fonts?⌄
The SVG is rendered as an image, and browsers do not load external files such as web fonts or linked images in that mode. Text set in a URL-referenced font falls back to a system font. To guarantee the look, convert text to outlines in your design tool, or embed the font as a data URI inside the SVG.
Why does my exported PNG look pixelated?⌄
Pixelation occurs when the output resolution is too low — for example exporting a 24×24 icon at 24×24 and then displaying it at 96×96. Re-export at a higher resolution (2x or 3x the display size) to get crisp results. SVG never loses quality at the source; only the exported PNG resolution determines sharpness.
Can I batch convert multiple SVGs?⌄
The current tool converts one SVG at a time to let you inspect the preview and dial in the correct dimensions for each asset. Your width, height, scale and background settings stay in place, so you can load the next file and convert it with the same configuration.
Will gradients and filters render correctly?⌄
Yes, as long as they are defined inside the SVG. This tool uses the browser's native SVG renderer — the same engine that draws gradients, drop shadows, blur filters, and clip paths on web pages. Only externally referenced resources are skipped.
Are my files uploaded anywhere?⌄
No. Rasterisation uses the browser's Image and Canvas APIs entirely in your tab. SVG content is never sent to any server. This means unreleased brand assets and confidential design mockups stay completely private throughout the conversion process.
Glossary
- SVG viewBox
- An attribute in SVG files that defines the internal coordinate system: four values specifying the origin x, origin y, width, and height of the drawing canvas. The viewBox is what allows the tool to auto-calculate the output aspect ratio when you specify only one output dimension.
- Rasterise
- The process of converting a vector graphic (defined by mathematical curves and shapes) into a raster image (a fixed grid of pixels). Rasterisation is irreversible — the resulting PNG cannot be scaled up without quality loss, unlike the original SVG.
- Transparent PNG
- A PNG file that includes an alpha channel, allowing individual pixels to be fully or partially transparent. Transparent PNGs composite cleanly over coloured backgrounds without a visible white or black bounding box around the graphic.
- Retina (2x/3x)
- Display technology that packs more physical pixels into each logical pixel. A retina screen has a device pixel ratio (DPR) of 2 or 3, meaning an image exported at 2x or 3x the intended CSS size renders sharply instead of appearing blurry.
- Vector
- An image format that stores shapes as mathematical descriptions — points, curves, and fills — rather than pixels. Vector files like SVG can be scaled to any size without loss of quality because the renderer re-calculates the pixel output for each new size.
- Anti-aliasing
- A rendering technique that blends edge pixels with the background colour to produce smooth, non-jagged curves and diagonal lines at any resolution. The browser's SVG renderer applies anti-aliasing automatically, which is why exported PNGs look smoother than screenshots taken with integer scaling.
A LITTLE HELP. A LOT DONE.
Good tools.
Great flow.
Your shortcut to the everyday. Create, convert, calculate,
and get back to what you love.
✳
✳
✓ Free to use✓ No sign-up✓ 500+ possibilities