SVG Optimizer
Strip comments, metadata, and whitespace from SVG markup.
SVG input
Optimized SVG
About the SVG Optimizer
Clean up hand-written or exported SVG markup by removing comments, titles/descriptions, empty attributes, and extra whitespace, with a live before/after size comparison.
Examples
Optimize exported SVG
<svg><!-- comment --><title>x</title>...</svg>Output
<svg>...</svg>Keyboard shortcuts
- Copy the main outputCtrl / ⌘ + Shift + C
- Download the resultCtrl / ⌘ + S
- Share this toolCtrl / ⌘ + Shift + S
- Reset the inputsAlt + R
- Open the tool search paletteCtrl / ⌘ + K
Related tools
AVIF Converter
Images
Convert images to and from AVIF with quality control.
Base64 Image Encoder
Images
Convert images to Base64 data URLs and back again.
Favicon Generator
Images
Turn any image into a full favicon pack with .ico, PNGs, manifest and HTML.
HEIC to JPG / PNG Converter
Images
Convert iPhone HEIC/HEIF photos to JPG or PNG in your browser.
Image Format Converter
Images
Convert images between PNG, JPEG, and WebP in your browser.
Image to ASCII Art
Images
Convert any image into ASCII text art in your browser.
Frequently asked questions
Read more
- Compressing and converting images without uploading them
How Canvas-based compression works, when WebP wins, and how to keep quality while cutting page weight.
- Image optimization for the web: formats, compression and sizing
A practical framework for picking a format, a resolution and a compression level so images stop being the heaviest part of the page.
Version 1.0.0 · Updated 2026-08-06 · Runs entirely in your browser