Shrink SVG files by removing editor data, comments, metadata and extra precision, and check that the optimised file still draws exactly the same picture.
Initializing in your browser…
Make photos and graphics smaller as JPEG, WebP or PNG. Set a quality or a target size in KB, and compare the result with the original before you download.
Resize one photo or a whole batch to exact pixels, a percentage or a social media preset, with fit, fill and crop, or stretch, and save as JPEG, PNG or WebP.
Turn a logo, icon or drawing into a scalable SVG, in black and white or in a few colours, and see how closely the vector matches the picture.
The sample SVG: a sunset card saved by a drawing program, with editor settings, a metadata block, comments, an unused gradient and six-decimal coordinates.
File
sunset-card.svg, 3.30 KB
Result at each strength
Safe 1.93 KB 41.5% smaller picture unchanged Balanced 1.13 KB 65.7% smaller picture unchanged Aggressive 1.04 KB 68.5% smaller 18.61% of pixels changed
Safe removes only what cannot affect the picture: the editor settings, the metadata and the comments. Balanced also drops the unused gradient, rounds coordinates to 3 decimal places and shortens colours, and both pictures still match pixel for pixel. Aggressive rounds to 1 decimal place, which turns an opacity of 0.85 into 0.8 and shifts the colour of the far hills, so the comparison flags it; for this file Balanced is the better choice.
Make SVG files smaller without changing how they look. Drawing programs save a lot of extra information that browsers never use; this tool removes it, then draws the original and the optimised file side by side and compares every pixel, so you know the picture survived.
Smaller SVG icons and illustrations load faster.
Strip editor clutter from exports before they go into a code base.
Shorter markup is easier to read and paste into HTML.
Small SVGs make shorter data URLs.
The sample sunset card shrinks from 3.30 KB to 1.13 KB with Balanced, 65.7 percent smaller, and the picture is unchanged pixel for pixel.
Run each icon through Balanced, then use Find the smallest precision for the last few bytes without any visible change.
On the sample, Aggressive changes 18.6 percent of the pixels because rounding alters an opacity, and the page says so.
Three strengths. Safe removes only what cannot change the picture: comments, editor settings from programs such as Inkscape, Sketch and Figma, and metadata blocks. Balanced, the default, also removes unused definitions, rounds coordinates to 3 decimal places, shortens colours such as #aabbcc to #abc, tightens style attributes and removes the blank space between elements. Aggressive also rounds to 1 decimal place, shortens ids and removes titles, which gives the smallest file but can change the picture and makes it less accessible.
Careful, not blind. The file is read as real SVG markup rather than searched with text patterns, so a comment is only removed when it really is a comment, numbers are rounded only where they are numbers, colours are shortened only where they are colours, and the parts of a gradient that is in use are kept even when their own ids are not referenced. Choose what is removed lets you switch any rule on or off and set the number precision yourself.
Checked by drawing. After every change, both files are drawn at the same size and compared pixel by pixel. The page says plainly whether it is the same picture or how many pixels changed and by how much, and warns if the result is not valid XML or would not draw. Find the smallest precision that changes nothing tries each precision for you and picks the lowest that keeps the picture identical.
Result. See the original and optimised drawings side by side, the sizes and the saving, the list of what was changed, and the optimised markup. Copy it or download it as a new file. Everything happens in your browser.
With Safe and Balanced it usually looks exactly the same, and the page checks: it draws both files and compares every pixel. If anything changed, it tells you how much.
Balanced for most files. Use Safe for drawings with fine detail you cannot risk, and Aggressive only if the comparison still says Same picture.
Screen readers announce an SVG's title, so removing it makes the image less accessible. Only Aggressive removes it, and the page warns you.
How many decimal places coordinates keep. Drawing programs often write six, but two or three are usually enough. Fewer places means a smaller file but can move curves slightly.
Yes; the page checks that it is valid XML and that it draws, and warns you if either check fails.
No. Everything happens in your browser.
Images are decoded, edited, and exported entirely inside this browser tab. No originals, exports, or metadata are uploaded.