Skip to main content
Free File Converter

SVG optimizer

Strip editor metadata and round coordinates to make an SVG much smaller.

Processed in your browser. This file is converted on your device and is never uploaded.

Converter

Input

.svg up to 50 MB. You can also drag a file here.

Options
Fewer decimal places means a smaller file. Two is enough for almost any artwork.
Ids nothing references are dropped. Turn this off if your CSS or JavaScript targets them from outside the file.
Removes the indentation between elements, which makes the file smaller but harder to read.

No file selected.

About this tool

An SVG exported from a design tool is usually several times larger than it needs to be. Most of the file is bookkeeping the editor left behind: layer names, canvas positions, metadata blocks, comments, and coordinates carried to a dozen decimal places that no screen can show.

This tool removes all of that without changing what the file draws, and tells you what it took out and how much smaller the result is.

Supported formats and limits

Input
.svg
Output
.svg (image/svg+xml)
Output name
The original name with -optimized, for example logo.svg becomes logo-optimized.svg.
File size limit
50 MB
Processing
In your browser. The file is not uploaded.

How to use it

  1. Choose a .svg file, or paste the markup.
  2. Pick a coordinate precision. Two decimal places is enough for almost any artwork.
  3. Select Convert, then download the optimized file.

Limitations

  • Only provably inert content is removed. Shapes are never deleted on the assumption that they are hidden, so this will not shrink a file as aggressively as a tool that takes that risk.
  • Rounding coordinates changes them very slightly. At one decimal place, a shape can visibly shift on a large canvas.
  • Removing unused ids breaks any CSS or JavaScript outside the file that targets them. Turn that option off if the SVG is styled from a stylesheet.
  • Scripts, event handlers, and external references are removed as part of the same pass. That is a security measure and cannot be turned off.
  • Path data is rounded but not otherwise rewritten. Converting curves to shorter equivalents is not attempted.

Frequently asked questions

Is my file uploaded?
No. The optimization runs entirely in your browser. The file never leaves your device.
Will the image look different?
Not at any normal size. Coordinates are rounded, so at very high magnification a shape can differ by a fraction of a pixel. Everything else removed had no effect on rendering at all.
How much smaller will it get?
A typical export from a design tool drops by half or more, because so much of it is editor metadata. A file that has already been optimized will barely change.
What is the difference from the minifier?
The minifier applies the most aggressive settings and strips all formatting, producing the smallest possible file. This tool leaves the result readable and lets you choose.