SVG Toolkit
Format, minify or inspect SVG markup.
What is SVG Toolkit
The SVG Toolkit processes SVG markup in three modes: Format re-indents with 2 spaces, Minify strips comments and extra whitespace, and Info lists the viewBox, width/height, file size and a per-element breakdown — plus a portability note when <text> elements depend on viewer fonts. Everything runs locally.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
It must have an <svg> root, and that check is the first filter
The tool refuses input without an <svg> element, which catches the common mistake of pasting the inner shapes only, or pasting an HTML fragment that merely contains an icon. A file that fails this check is not an SVG document regardless of its extension.
Once parsed, the operations are structural: tidy attributes, remove metadata and editor namespaces (inkscape:, sodipodi:), and optionally reduce coordinate precision. None of them rasterise the image, so nothing is lost to rounding at the pixel level — only in the numeric text.
Precision reduction is a visible trade
Rounding coordinates to two decimals shrinks the file noticeably on path-heavy artwork and is imperceptible on icons. On maps, charts or fine linework the same rounding produces visible wobble, because thousands of points shift by a fraction in the same direction.
Removing metadata is almost always safe; removing elements that look unused is not. A <defs> entry may be referenced by url(#id) from a style attribute, and a gradient that appears unused in the markup may be applied from an external stylesheet.
The classic rendering failures
A missing viewBox means the graphic will not scale — width and height pin it, and CSS resizing crops rather than shrinks. A viewBox with the wrong coordinate origin shifts everything off-canvas. Both are one-line fixes that are very hard to spot in code and obvious on screen.
Fill and stroke inheritance is the other one: shapes with no fill attribute inherit from CSS, so the same file can appear black on one page and invisible on another. If an icon disappears after embedding, check for a fill="currentColor" against a matching text colour before editing the paths.
How to use
- 1.Paste your SVG
- 2.Pick Format / Minify / Info
- 3.Run and review the output
How this compares
There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.
| Aspect | This tool | Upload-based converters | Desktop software |
|---|---|---|---|
| Where the file is processed | In your browser, on this page | On the vendor's servers, after an upload | On your own machine, after installing an app |
| Account required | No | Usually — free tiers ask you to sign in before lifting a limit | No, though a licence may be needed |
| Size you can process for free | No size cap, no run limit | A few files per hour, or a ~5–10 MB cap before a paywall | Whatever your disk and RAM allow |
| Price | Free. Pro is $9/month, and only buys larger files and AI features | Usually a subscription — roughly $7–15/month as of November 2026 | A one-off licence, or a subscription |
| Works offline | Yes, once the page has loaded | No | Yes |
| Time before work starts on a 20 MB file | Immediate — there is nothing to upload | Dominated by the upload — about 16 s on a 10 Mbps uplink | Just the app launch |
| What it cannot preserve | Invalid input returns the parser error position instead of a repaired file | The same — the conversion is the same maths | The same, though some desktop apps re-render styles more faithfully |
Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.
Frequently asked questions
What does Info mode show?
viewBox, width/height, file size, counts per element type, and whether <text> elements exist (a font-dependency portability check).
Does it optimize paths?
No — minify is lossless: comments and whitespace only. Path coordinates are never recalculated.
What this kind of conversion cannot keep
Formatters parse the input into a tree and print it back with consistent indentation. If the input is invalid, you get the parser's error position instead of a silently mangled file — malformed JSON stays malformed rather than being «repaired» into something that is no longer yours.
More in Format
On this page
- What is SVG Toolkit
- What it does with your file
- How it actually behaves
- How to use it
- How this compares
- FAQ
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →