SVG to PNG Converter
Use the CaseSwitch SVG to PNG Converter to rasterize a vector SVG to PNG locally with Canvas. Script-bearing SVG is rejected for safety. Files are not uploaded.
Written by the CaseSwitch editorial team. We maintain these tools in the browser so drafts, keys, and images stay on your device.
Last reviewed: 23 July 2026
Images are converted in your browser with the Canvas API. Nothing is uploaded.
Drag and drop a SVG here, or choose a file
Examples
Logo for email signature
Input
brand-mark.svg (intrinsic 512×512)
Output
brand-mark.png · ~512×512 raster
Icon with outlined text
Input
wordmark.svg (text converted to paths)
Output
wordmark.png · fonts match the design file
Rejected scripted SVG
Input
evil.svg containing <script>
Output
Error: SVG files with script content are not supported.
Rejected inline handlers
Input
onclick.svg with onload=
Output
Error: SVG files with inline event handlers are not supported.
Webfont caution
Input
poster.svg referencing a missing font family
Output
poster.png · fallback font metrics may shift layout
How to use
- Choose an `.svg` file (scripts and inline handlers will be rejected).
- Convert — output size follows the SVG’s intrinsic dimensions in the browser.
- Download the PNG; if it looks soft, increase the SVG’s width/height or viewBox sizing in a vector editor and re-export.
What this tool is for
Drop a logo or icon SVG into workflows that only accept pixels — app store assets, emails, social images, and slide decks. The SVG is rendered at its intrinsic pixel size as the browser lays it out; there is no separate scale slider in this tool. Embed text as paths when fonts must match exactly.
How it works
The file is validated (type, size up to 5 MB) and scanned for `<script>` tags and inline event handlers — those are blocked. A safe SVG is drawn to a canvas at the image’s natural width/height and exported as PNG. External CSS or webfonts the browser cannot resolve may fall back.
When to use it
Exporting a logo for CMS fields that reject SVG, creating PNGs for email signatures, and handing pixels to partners who cannot open vectors.
When not to use it
Hostile SVG from strangers without review (treat like code — this converter blocks scripts/handlers but is not a full sanitizer for every SVG attack). SVGs that depend on unloaded webfonts when typography must be perfect — outline text first. Infinite or missing viewBox surprises that yield tiny or huge canvases.
How it compares to related tools
PNG to JPG if you then need a photo format. Image to ASCII Art is a novelty raster path. PNG to WebP can shrink the PNG you just made for the web.
Common mistakes
Exporting a tiny intrinsic SVG and upscaling the PNG later, assuming Google Fonts inside the SVG will load during canvas draw, and opening untrusted SVG without caring about scripts (blocked here, but still be cautious).
Safety checks
CaseSwitch refuses SVG that includes script tags or inline `on*` handlers so conversion is safer in the browser. That is not a promise that every malicious SVG construct is caught. Prefer files you created or trust.
Intrinsic size and fonts
There is no scale control on this page — change dimensions in the SVG (or export a larger SVG) when you need more pixels. For reliable type, convert text to outlines in your vector tool before rasterizing.
Frequently asked questions
Why do fonts look wrong?+
The canvas uses fonts available to the browser. Embed text as paths in the SVG for reliable rasterization, or install the font.
Can I pick the PNG width?+
Not via a dedicated slider here. Output matches the SVG’s intrinsic size as decoded. Edit the SVG dimensions for a larger raster.
Why was my SVG rejected?+
Files with script tags or inline event handlers are blocked to keep conversion safe.
Is the SVG uploaded?+
No. Reading and rasterization stay in your browser.
Does transparency work?+
PNG can keep transparent areas from the SVG render. Verify on a contrasting background.
Max file size?+
SVG validation allows up to 5 MB — enough for most logos; simplify huge path dumps first.
Are images uploaded to a server?+
No. Image tools use the Canvas API in your browser. Files stay on your device and object URLs are revoked after use.
Related tools
PNG to JPG Converter
Photos that were saved as PNG for no good reason, email attachments with size limits, and web photos that do not need transparency.
JPG to PNG Converter
A CMS that rejects JPEG, a print tool that wants PNG, and pipelines that expect a PNG extension even when content started as a photo.
Image to ASCII Art
README headers, workshop demos of sampling, and playful social posts in monospace blocks. Keep width modest so the “image” remains scannable.
JPG to WebP Converter
Web performance passes, replacing heavy JPG heroes, and building `<picture>` experiments when you still keep a JPEG fallback elsewhere.
PNG to WebP Converter
Web performance for graphics, replacing heavy PNGs on marketing pages, and stickers that need a transparent background.
WebP to JPG Converter
Printers and CMS boxes that want JPEG, Outlook-era workflows, and sharing a photo with someone whose apps lack WebP.