Skip to main content
Free File Converter

SVG minifier

Produce the smallest safe SVG, with all formatting stripped.

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.

No file selected.

About this tool

The smallest the file can safely be: editor metadata, comments, empty groups, and unused ids removed, coordinates rounded to one decimal place, and every byte of indentation stripped.

This is what you want for an icon that ships inside a page or a stylesheet, where the file is never read by a person again.

Supported formats and limits

Input
.svg
Output
.svg (image/svg+xml)
Output name
The original name with -min, for example logo.svg becomes logo-min.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. Select Convert, then download it.

Limitations

  • The output is deliberately unreadable. Keep your original if you will need to edit it.
  • One decimal place is coarse. On a large canvas a shape can shift visibly, so check the result before using it at size.
  • Unused ids are always removed, which breaks any external CSS or JavaScript that targets them. Use the optimizer if you need to keep them.
  • Scripts, event handlers, and external references are removed. That is a security measure, not an optimization.
  • Path data is rounded but not restructured.

Frequently asked questions

Is my file uploaded?
No. Everything runs in your browser and the file never leaves your device.
When should I use this instead of the optimizer?
When nobody will read the file again: an icon inlined into a page, a sprite sheet, or anything shipped to a browser. Use the optimizer when the file stays in a repository.
Is it safe to inline the result into my HTML?
Safer than the original, because scripts and external references have been removed. Inlining SVG from an untrusted source is still worth avoiding on principle.