Tool Hub

SVG 最佳化

移除 SVG 中繼資料並最佳化檔案大小

從 SVG 檔案中清除編輯器中繼資料、註解、多餘空白和小數位數以減少檔案大小。可在壓縮 / 格式化模式下檢視結果。

00 bytes (0% 節省)

輸入 SVG

輸出 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>

原始預覽

原始預覽

優化預覽

優化預覽

使用方法

  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。

範例

  • 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。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.