SVG Optimizer
Shrink SVG code using SVGO — the industry-standard optimization engine — right in your browser.
Safely preview SVG code and check its width, height, and viewBox.
SVG Preview lets you safely render pasted SVG code on the spot. The preview is rendered inside a sandboxed iframe that doesn’t allow script execution, so even if the SVG contains malicious scripts, they won’t run.
All processing happens entirely in your browser — your SVG code is never sent to a server. If you also want to optimize your SVG, check out the SVG Optimizer.
Yes, it is completely free to use.
No. All processing happens in your browser. Your SVG code is never sent to a server.
The preview is rendered inside a sandboxed iframe that doesn't allow script execution, so any scripts or event handlers embedded in the SVG won't run.
This tool is preview-only. If you want to optimize your SVG (remove comments, reduce size), use the SVG Optimizer instead.