SVG Optimizer & SVG to PNG

Link copied

Two SVG tools in one private, browser-based page. The optimizer runs a set of safe, lightweight passes over your markup — removing comments, the XML declaration and DOCTYPE, <metadata> blocks, vector-editor leftovers like Inkscape attributes, empty attributes, and unnecessary whitespace — then shows exactly how many bytes you saved. The renderer rasterizes any SVG to a crisp PNG at 1×–4× resolution using the HTML canvas, sizing the output from the SVG's own width/height or viewBox. Paste markup or drop in a file; nothing is ever uploaded, so logos and icons stay on your machine.

Drop an .svg file here
or
Choose file

How to use

Drop an .svg file onto the upload area or paste SVG markup into the text box. A live preview appears once the markup is valid. To optimize, tick the passes you want and click Optimize — the original, optimized, and saved sizes are shown, and you can copy the result or download it as an .svg. To export a raster image, choose a resolution multiplier (1×–4×) and click Download PNG. Optimizing first is optional; if you do, the export uses the optimized markup. Use Start over to clear everything.

Frequently asked questions

Is my SVG uploaded anywhere?
No. Parsing, optimizing, and rasterizing all happen locally in your browser — the optimizer is a set of pure string transforms and the PNG is drawn on an HTML canvas. Your files never leave your device, which makes this safe for proprietary logos and icons.
Is the optimization lossless?
It is conservative by design. Each pass only removes things that have no effect on rendering — comments, the XML declaration and DOCTYPE, metadata, editor-specific attributes, empty attributes, and redundant whitespace. It never reformats path data or rounds coordinates, so the visual result is unchanged. For maximum compression you can still run a heavier tool like SVGO afterwards.
What size will the exported PNG be?
The base size comes from the SVG's own width and height attributes, or from its viewBox when those are missing, and is then multiplied by the resolution you choose (1×–4×). For example, a 24×24 icon exported at 4× becomes a 96×96 PNG. If an SVG declares neither, a 512×512 default is used.