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
.svg up to 50 MB. You can also drag a file here.
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
- Choose a .svg file, or paste the markup.
- Pick a coordinate precision. Two decimal places is enough for almost any artwork.
- 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.
Common problems
The file was refused before anything started.
SVG optimizer checks the extension before it reads a byte, and it accepts .svg. Browsers report file types inconsistently enough that the extension is what decides.
Rename the file if the extension is simply wrong, or convert it to one of those first. A file whose extension does not match its contents is refused for the same reason, and that one needs converting rather than renaming.
It said the file was too large.
The limit here is 50 MB. It is not a policy but a measurement: everything runs on your own device, and past that size a phone runs out of memory rather than finishing slowly.
Split the file, reduce it before converting, or use a desktop program for that one. A machine with more memory will manage more, but the limit does not know which machine it is on.
I selected several files and only one converted.
This tool takes one file at a time. Doing several at once would multiply the memory in use, which is the thing most likely to fail on a phone.
Convert them one after another. Nothing is kept between them, so there is no state to reset.
The tab reloaded itself part-way through.
The browser ran out of memory and restarted the page. At sizes approaching 50 MB this is the failure a phone hits first, and it looks like a crash rather than an error.
Try a smaller file, close other tabs, or run it on a computer. Nothing was uploaded or lost — the original file is untouched on your device.
The result opened in the wrong program.
The output is a .svg file, and your system opens that extension with whatever it was told to. Nothing about the conversion decides it.
Open it from inside the program you want, or change the default for .svg in your system settings. The file itself is correct.
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.
- Do I need to install anything or create an account to use SVG optimizer?
- No, to all of it. SVG optimizer runs inside the browser you already have, with no sign-up, no download, no watermark on the result, and no cap on how many files you convert. There is nothing to uninstall afterwards either, because nothing was installed.
- Does SVG optimizer work offline?
- Once the page has loaded, yes. The conversion runs on your device, so it needs no connection to do the work. The first visit fetches the page and the code that does the converting; after that a lost connection stops nothing, and a converted file appears exactly as it would online.
- How large a file can SVG optimizer handle?
- The limit is 50 MB. It is a deliberate one rather than a technical ceiling: the real constraint is memory, and a file that decodes to more than the device can hold fails in a way that is hard to explain. Phones run out well before laptops do, which is why the limit is set where it is.
- Can I convert several files at once with SVG optimizer?
- Not here: this tool takes one file at a time, because what it does depends on choices you make about that particular file. Convert them one after another, or look at the batch converters in the same category, which are built for a folder at a time.