SVG Preview & Optimizer
Paste SVG code or open a file to see it rendered, then remove the clutter design tools leave behind — comments, editor namespaces, metadata and redundant whitespace.
Runs entirely in your browser. Your input and files are not uploaded to any server.
How to use
- Paste SVG markup or choose an .svg file.
- Select the clean-up options. Number rounding gives the biggest savings but can shift tiny details.
- Compare the preview and the size saving.
- Copy the optimised code or download it.
Examples
Removing editor metadata and whitespace often cuts 30–60% from exported icons.
Enable “Remove XML declaration” — it is not needed when the SVG is inlined in HTML.
Privacy
Runs entirely in your browser. Your input and files are not uploaded to any server. See the privacy policy for what is stored in your browser (favorites and history only). Privacy policy
Check it yourself: open your browser’s developer tools, select the Network tab and use the tool. Your file never appears in an upload request. Once this page is saved for offline use, you can also disconnect from the internet and keep working. Ads and anonymous visit statistics, when enabled, make their own requests, but they never receive your files or text.
Frequently asked questions
Is the preview safe for untrusted SVGs?
The preview is rendered as an image, which prevents scripts inside the SVG from running.
How does this compare to SVGO?
This is a lighter, conservative clean-up. SVGO performs deeper path optimisations; use it in a build pipeline if you need maximum compression.