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
Your files and text stay in your browser while you use this tool, and ads or anonymous visit statistics do not receive them. Only your favorites and recent tools are saved on your device. Privacy policy
Want proof? Check it with your browser’s Network tab: How to check that a tool does not upload your files
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.