html69// dev utilities

SVG tool

SVG Optimizer / Cleaner

An SVG optimizer that cleans editor markup, extra digits, and comments. See the byte savings, preview the result, then send it to JSX or Base64. It stays in this tab.

Like the tool? Find a bug?Share with us

Optimizer

Paste SVG. This SVG optimizer and SVG cleaner strips editor junk, comments, and extra digits in this tab. Files stay on your device.

Supported files: .svg
0 / 50,000
Optimized SVG will appear here.

Preview

SVG preview appears here.

Guide

How this SVG optimizer works

01

Optimize SVG in the tab

SVGO runs in the browser. Compact minifies. Pretty indents. Precision 1, 2, or 3 controls decimal places. Deep runs extra passes. Keep IDs leaves id attributes for CSS and JS.

02

Before and after bytes

UTF-8 byte counts show how much the SVG cleaner saved. Original and Clean preview the same graphic so you can check the optimize SVG result before you copy it.

Use it

What this SVG cleaner removes

Editor namespaces, empty defs, comments, unused IDs, and extra path precision. viewBox stays so the icon still scales. Scripts inside SVG are stripped. The 50,000 character cap still applies.

FAQ

Questions

Does this upload my SVG?

No. This SVG optimizer runs in this tab. There is no account and no API call.

How is this different from SVGOMG?

Same SVGO core, in your browser, next to JSX and Base64 on this site. JSX and Base64 buttons send the cleaned SVG straight into those converters.

Will Keep IDs change the savings?

Yes. Cleaning IDs is often a large cut. Turn Keep IDs on when CSS or JS targets those attributes.

Is there a size limit?

Paste is capped at 50,000 characters so a huge dump cannot freeze the tab.