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}
Related tools
- Image compressorShrink JPEG, PNG, WebP, and AVIF in the browser, with the real before and after size.ImageMCPNew
- Favicon generatorMake the ICO, the PNG sizes, the manifest, and the HTML snippet from a picture or letters.DesignMCPNew
- Color converterTurn any color into HEX, RGB, HSL, OKLCH, and CMYK, and check the contrast ratio.DesignMCPNew
- Image format converterConvert HEIC, WebP, PNG, JPG, and AVIF in the browser. Nothing is uploaded.ImageMCPNew
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.
- 01
Paste or drop the SVG
Add the markup. The original size is counted in bytes.
- 02
Choose the passes
Leave the viewBox on. Turn off a pass if it changes something you need.
- 03
Copy or download
Save the smaller file and check the preview.