Skip to main content
L
Loopaloo
Buy Us a Coffee
All ToolsImage ProcessingAudio ProcessingVideo ProcessingDocument & TextPDF ToolsCSV & Data AnalysisConverters & EncodersWeb ToolsMath & ScienceGames
Guides & BlogAboutContact
Buy Us a Coffee
L
Loopaloo

Free online tools for developers, designers, and content creators. Your files are processed in your browser and are never uploaded - no accounts required. A few network utilities (like What's My IP and Currency Converter) call public APIs to do their job and say so on their pages.

support@loopaloo.com

Tool Categories

  • Image Tools
  • Audio Tools
  • Video Tools
  • Document & Text
  • PDF Tools
  • CSV & Data
  • Converters
  • Web Tools
  • Math & Science
  • Games

Company

  • About Us
  • Contact
  • Blog
  • FAQ

Legal

  • Privacy Policy
  • Terms of Service
  • Disclaimer

Support

Buy Us a Coffee

© 2026 Loopaloo. All rights reserved. Built with privacy in mind.

Privacy|Terms|Disclaimer
  1. Home
  2. Image Processing
  3. SVG Optimizer
Add to favorites

SVG Optimizer

Shrink SVG files by removing editor data, comments, metadata and extra precision, and check that the optimised file still draws exactly the same picture.

Edits stay in your browserMore image processingJump to full guide
Related readingTurning a Bitmap Into SVG: How Image Tracing Works12 minIntroduction to SVG: Scalable Vector Graphics for the Web10 min

Initializing in your browser…

You might also like

Image Compressor

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.

Image Resizer

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.

Image to SVG Tracer

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.

SVG Optimizer: a worked example

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
What SVG Optimizer produces

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.

About the SVG Optimizer

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.

How to use

  1. 1Drop in an SVG file, or press Try a sample SVG.
  2. 2Choose Safe, Balanced or Aggressive.
  3. 3Check that the comparison says Same picture.
  4. 4Optionally open Choose what is removed to fine-tune the rules.
  5. 5Copy the markup or download the optimised SVG.

Where this helps

  • Web performance

    Smaller SVG icons and illustrations load faster.

  • Design hand-off

    Strip editor clutter from exports before they go into a code base.

  • Inline SVG

    Shorter markup is easier to read and paste into HTML.

  • Email and embedding

    Small SVGs make shorter data URLs.

Key features

  • Safe, Balanced and Aggressive strengths
  • Removes editor data, metadata, comments and unused definitions
  • Rounds coordinates and shortens colours and ids
  • Pixel-by-pixel comparison of the original and the result
  • Finds the smallest number precision that changes nothing
  • Warns about invalid output and lost accessibility
  • Side-by-side previews and a list of every change
  • Copy or download; nothing is uploaded

Tips & best practices

  • Optimise SVG files from drawing programs before adding them to a website.
  • Use the precision finder for icons you ship many times.
  • Keep titles on informative graphics for accessibility.
  • Compare the previews when you try Aggressive.

Examples

  • A drawing program export

    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.

  • Icons for a website

    Run each icon through Balanced, then use Find the smallest precision for the last few bytes without any visible change.

  • When aggressive goes too far

    On the sample, Aggressive changes 18.6 percent of the pixels because rounding alters an opacity, and the page says so.

How the optimiser works

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.

Frequently asked questions

Will my SVG look different?

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.

Which strength should I use?

Balanced for most files. Use Safe for drawings with fine detail you cannot risk, and Aggressive only if the comparison still says Same picture.

Why keep the title?

Screen readers announce an SVG's title, so removing it makes the image less accessible. Only Aggressive removes it, and the page warns you.

What does number precision mean?

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.

Is the output valid SVG?

Yes; the page checks that it is valid XML and that it draws, and warns you if either check fails.

Is my file uploaded?

No. Everything happens in your browser.

Related tools and how they differ

  • SVG to PNG/JPG: Turns an SVG into a PNG, JPG or WebP at any size.
  • Image to SVG Tracer: Turns a picture into an SVG drawing.
  • Image to Base64: Embeds a small SVG or picture directly in HTML or CSS.

Further reading

  • Turning a Bitmap Into SVG: How Image Tracing Works12 min read
  • Introduction to SVG: Scalable Vector Graphics for the Web10 min read

Private by design

Images are decoded, edited, and exported entirely inside this browser tab. No originals, exports, or metadata are uploaded.