Tool Hub

SVG Optimizer

Strip metadata and reduce SVG file size

Removes editor metadata, comments, redundant whitespace, and decimal-place excess from SVG files to reduce size. Switch between minified and pretty modes to inspect the output.

00 bytes (0% saved)

Input SVG

Output SVG
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
  <!-- Generated by Inkscape -->
  <metadata>noise</metadata>
  <title>circle</title>
  <circle cx="50.000000" cy="50.000000" r="40.123456" fill="red" />
</svg>

Original preview

Original preview

Optimized preview

Optimized preview

How to use

  1. Upload an SVG file using the upload button or drag it onto the tool.
  2. Set the decimal places field to control coordinate precision (0–6).
  3. Toggle between the input and output tabs in the editor to compare the original and optimized markup.
  4. Read the byte size comparison (e.g. 4,200 → 2,800 bytes, 33% saved) shown inline.
  5. Download the optimized SVG using the download button.

Examples

  • Uploading an icon SVG of 3,200 bytes with 2 decimal places typically produces an output around 2,000 bytes, a roughly 37% reduction.
  • Setting decimal places to 0 on a path-heavy illustration removes all fractional coordinates for maximum compression at some visual precision loss.

Verify outputs before using in production. No warranty — see Terms.