SVG Cleaner

Same look, cleaner SVG code.
Remove metadata and editor-specific data to make files lighter.

01

Files

Drop SVG files here

or

SVG · Multiple files

02

What gets cleaned

Metadata and commentsInkscape and other editor attributesExcess decimals and whitespaceUnsafe script attributes

Path shapes, colors, stroke widths, viewBox and everything else needed for drawing are kept.

Runs on your deviceYour SVGs stay in your browser.
HOW IT WORKS

Parse. Strip. Compare and save.

01

Parse the SVG

The file is parsed safely as XML, separating drawing elements from extra information.

02

Clean it up

Metadata and editor attributes are removed, and numbers and whitespace are compacted.

03

Compare

Check the look and size before and after, then save individually or as a ZIP.

SAFE CLEANUP

Keep everything needed to draw.

Only the safe subset of common SVG optimizations is applied: the ones unlikely to change how the file looks.

Before and after previews are shown side by side.

FAQ

Common questions

Are my files uploaded?+

No. SVG parsing and cleanup happen entirely inside your browser.

Will my SVG look different?+

Path shapes, colors, stroke widths, viewBox and everything else needed for drawing are kept. You can compare before and after previews before saving.

What is removed?+

Metadata, comments, attributes specific to editors such as Inkscape, excess decimal precision and whitespace, and unsafe attributes such as scripts.

Can I still open the file in my editor?+

Yes. However, editor-specific information such as layer names may be lost, so keep your original file for further editing.

Example

One practical use.

Example: remove editor metadata and redundant attributes from exported SVG files.