Skip to content
UtilPick.
My toolbox
All tools
Favorites
Saved tools

Loading…

Recently used

Tools you open will appear here.

Get the desktop app
Settings
UtilPick.
All tools
All tools/SVG Optimizer

SVG Optimizer

Shrink an SVG by removing only what is safe to remove, like comments and metadata. Runs in your browser with no upload.

Loading the tool…

User reviews

No reviews yet. If you’ve used this tool, be the first to leave one.

User reviews

No reviews yet.

Write a review

Checking your sign-in status…

    From first step to finished result

    SVG Optimizer: complete guide

    Walk through the steps and examples, or jump straight to the topic you need.

    How to use
    Examples & choices
    Troubleshooting
    FAQ

    At a glance

    What is removed
    Comments, titles, descriptions and metadata, and editor-only attributes and namespaces.
    Whitespace
    Whitespace between tags and indentation (optional).
    Numbers
    Choose decimal places from 0 to 6 (optional).
    What is kept
    ids, rules inside <style>, anything inside <script>, and text content.
    Self-check
    It compares and tells you whether the drawing elements and attributes are unchanged.
    Check by eye
    It draws the before and after side by side.
    Safe preview
    It is drawn only as a picture, so scripts inside the SVG do not run.
    Where it runs
    Your file is not sent to a server.

    How to use SVG Optimizer

    1. 01

      Add your SVG

      Drag a file in or paste the content. If it does not start with <svg>, you are told.

    2. 02

      Choose what to remove

      You can turn comments, titles and metadata, editor information and whitespace on and off separately. You also set the decimal places.

    3. 03

      Compare before and after

      The two pictures appear side by side. Please check by eye that they are the same. The tool also checks that the drawing elements are unchanged and tells you.

    4. 04

      Take it with you

      Copy it or save it as .svg. It also tells you how much it shrank and how many of what it removed.

    What it’s good for

    It removes only what is safe to remove

    SVGs exported from Illustrator or Inkscape come with attributes and namespaces used by the editor, titles and metadata, and indentation. None of this is used to draw the picture, so removing it gives the same visible result. On the other hand, ids, rules inside style, and scripts are left as they are, because there is no way to tell where they are referenced. Trimming a few more bytes and changing the picture is far worse.

    It lets you check by eye that nothing changed

    It draws the before and after side by side. The tool also compares by itself whether the drawing elements and attributes are unchanged and tells you, but the final judgment is surest by eye. The preview draws it only as a picture, so even if the SVG contains a script, it does not run.

    Worked examples

    An icon exported from Inkscape

    Input and settings
    An SVG with inkscape:version, sodipodi:namedview, <title> and indentation
    Result
    Removes 2 editor-only attributes, 1 title and 1 comment, and the size shrinks
    The circle and rect that draw the picture, and their attributes, remain.

    Reducing decimal places

    Input and settings
    cx="60.000000" cy="60.000000" r="50.0000"
    Result
    cx="60" cy="60" r="50"
    Numbers with the same meaning are written shorter. If you cut the places too far, curves can get rough, so check in the preview.

    What is removed and what is kept

    Swipe the table sideways to see the rest.

    What is removed and what is kept
    ItemHandlingReason
    Comments, titles, metadataRemovedThey are not used to draw the picture.
    Editor-only attributesRemovedInformation used only by Inkscape and similar editors.
    idKeptCSS, use and gradients may reference it.
    Rules inside <style>KeptTouching the names breaks the picture.

    When the result isn’t what you expected

    The picture looks different

    Try raising the decimal places. If it still differs, tell us about that SVG and we will fix it. Do not use the result; use the original.

    It barely shrinks

    The SVG may already be tidy. Most of a large SVG is path data, and this tool does not change the shape of the paths themselves.

    It says it is not an SVG

    Check that the content starts with <svg>. Image files (PNG, JPG) are not handled.

    It says a script is included

    There is a <script> inside the SVG. It can be risky when you put it on the web, so please check the content. This tool does not touch what is inside it.

    Key terms

    Namespace
    The group that tags and attributes belong to, declared with xmlns. Some are editor-only.
    viewBox
    An attribute that sets the coordinate range the picture is drawn in.
    Path
    An element that draws a shape by writing coordinates one after another in the d attribute.
    Lossless
    Reduction that does not change the visible result.

    SVG Optimizer FAQ

    Why does it not reduce more?

    There are ways to reduce more, but the risk of changing the picture grows with them, for example removing ids or merging style rules. This tool chose to remove only what is certain.

    Does reducing decimal places change the picture?

    It can change very slightly. For small pictures like icons, 2 decimal places are enough, but for large pictures or precise curves, try more places and compare in the preview.

    Is my file uploaded to a server?

    No. It is processed only inside this browser.

    Does it shrink as much as SVGO?

    It shrinks less than that, because it deliberately skips processing that carries risk. In return, you worry less about the picture changing.

    Can I do several files at once?

    For now it handles one at a time. Comparing before and after by eye is the point, so looking at one at a time is safer.

    Does it work on SVGs with animation?

    Yes. Elements such as animate and their attributes are left as they are. Please check in the preview that the motion is the same too.

    Jump to a topic

    • #SVG optimize
    • #editor info
    • #safety first
    • #decimal places
    • #picture changed
    • #SVGO comparison

    Reviewed 2026.09.09

    Related tools

    View all
    Image Converter (PNG, JPG, WebP, AVIF)Images
    Stamp MakerImages
    Signature MakerImages
    UtilPick

    Simple tools for a complicated day. A free collection of online utilities.

    Service

    About UtilPick Get the desktop app

    Help

    Request a toolReport a problemContactinfo@utilpick.com

    Policies

    Privacy Policy (Korean)Terms of Use (Korean)
    Business registration no. 365-47-00936 (Republic of Korea)
    © 2026 UtilPick
    Featured on Twelve ToolsUtilPick - Featured on Startup FameFazier badgeFeatured on LaunchIgniter
    HomeSearchSavedMore
    Same drawing, smaller file

    Add SVG

    Drop an SVG file here

    Or paste it below · up to 1.9MB

    Fewer means smaller files, but curves may get rough

    Optimized result

    60.4%smaller

    467B → 185B · 282B (60.4%) smaller

    • Number digits8
    • Editor-only attributes2
    • Comments1
    • Titles1
    • Metadata1
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120"><circle cx="60" cy="60" r="50" fill="#3b6ff5"/><rect x="35.5" y="35.5" width="49" height="49" rx="8" fill="#ffffff"/></svg>
    What is removed and what is kept

    Only things that are certainly safe to remove are removed. ids, rules inside <style> and scripts are kept because their references can’t be known. Saving a few more bytes isn’t worth a changed drawing.

    Before and after

    Before and after are drawn side by side. Check by eye that they match before using it.

    Before · 467B
    Before · 467B preview
    After · 185B
    After · 185B preview

    Drawing elements and attributes are unchanged. Also check by eye that both images match.