Convert SVG to PNG without uploading the file
An SVG is markup rather than pixels, so converting produces a raster image at a size you choose. It also drops everything the markup carried, which for a design export often includes layer names and editor comments.
At a glance
- Tool
- /tools/svg-to-png
- Output formats
- PNG, JPEG or WebP
- Input
- SVG markup
- Discarded by rasterising
- Element names, comments, editor metadata and hidden elements
- Scaling
- The source can be rendered at any size, the output cannot
- Transparency
- Kept by PNG and WebP, not by JPEG
In detail
An SVG exported from a design tool is a text file, and text files remember. Layer and artboard names come through the export as identifiers, and those names are candid: a client, an internal project code, the working name of an unreleased feature, someone's initials. Anyone who opens the file in a text editor reads them without doing anything clever.
Rasterising is therefore a way to hand over a picture with nothing behind it. Only what renders ends up in the output, so names, comments and hidden elements do not survive into the PNG. It is a one way trip: you are trading the ability to scale for the certainty that the file contains only the image.
Because it is one way, choose the output size deliberately. The point of the source was resolution independence, so export at the largest size you plausibly need, and pick PNG or WebP if any part of the artwork is transparent. JPEG will fill transparency in and is the wrong choice for a logo.
The whole conversion runs without a network. Load the page, disconnect, drop the SVG in, and the PNG downloads anyway. If you keep the network panel open instead, you should see no outbound request unless the SVG itself references something remote, which is worth knowing before you rasterise it.
Things that catch people out
- An SVG can reference remote images and fonts. If it does, rendering it requests them, so embed or remove those references first if that matters.
- Hidden elements are still in the markup even though nobody sees them. Rasterising drops them; sending the SVG does not.
- The raster copy has a fixed resolution. Keep the SVG if you will ever need a larger version.
- Fonts named in the markup render with whatever your machine has available. If the exact typeface matters, convert the text to outlines in the design tool before you export.
Try it: Hash Generator
The file hasher is on every page here because it takes any file at all and proves the point: disconnect from the network, drop a file in, and it still returns a checksum you can compare against a published one.
Hash Generator
LOCAL · Browser-OnlyGenerate MD5, SHA-1, SHA-256, SHA-384, SHA-512, SHA3-256, SHA3-512, Keccak-256, CRC32, and HMAC hashes from text or files
MD5 is cryptographically broken and should not be used for security purposes. Use SHA-256 or SHA-512 instead.
Related Working without uploading
All working without uploading →Optimise an SVG without uploading it
Clean up SVG markup in your browser. What an exported SVG carries beyond the drawing, and why that is a disclosure risk, not just weight.
Convert between image formats without uploading
Convert to JPEG, PNG, WebP, BMP or AVIF in your browser. What each format is for, and why a GIF converts as its first frame only.
Turn HTML into a PDF without uploading your markup
Render HTML to PDF in your browser. Your markup is not uploaded, though remote images and fonts it references are still fetched normally.
Watermark a photo without uploading the original
Add a text or image watermark to a photo in your browser. Why a watermarked photo still carries all the EXIF it started with.
Format and validate JSON without uploading it
Tidy and check JSON in your browser. The JSON people paste into a formatter is usually a live API response full of real records.
Open and filter a CSV without uploading it
Sort, filter and hide columns across up to 100,000 rows locally. A customer export is personal data, and opening it should not be a transfer.
Tools for this
- SVG to PNG Converter Free online SVG to png converter - convert SVG images to PNG or JPEG format
- SVG Optimizer Free online SVG optimizer - paste SVG code and get a minified, optimized version instantly
- Image Format Converter Free online image format converter - convert between JPG, PNG, WebP, and AVIF formats