SVG optimizer

Minify an SVG, compare the size, and keep the viewBox unless you turn that off.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is optimize_svg.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "optimize_svg",
7 "arguments": {
8 "svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"10\" height=\"10\" viewBox=\"0 0 10 10\"></svg>",
9 "precision": 3,
10 "removeViewBox": false,
11 "removeDimensions": false
12 }
13 }
14}

How it works

Free SVG optimizer. SVGO runs in this browser: comments, metadata, and extra precision come out, and you can turn each pass off. The viewBox stays unless you remove it. The file is not uploaded.

  1. 01

    Paste or drop the SVG

    Add the markup. The original size is counted in bytes.

  2. 02

    Choose the passes

    Leave the viewBox on. Turn off a pass if it changes something you need.

  3. 03

    Copy or download

    Save the smaller file and check the preview.

FAQ