Skip to content
benchline
ToolsMCPAbout
benchline

82 tools for people who ship the web. 70 run entirely in your browser. No account, no upload.

All tools operational

Tools

All toolsllms.txt generatorAI SEO checkerOG image generatorJWT decoder

Categories

All categoriesDeveloperData & FormatsSEO & AI SearchImage & MediaPDF & Documents

For agents

MCP setupAI accessllms.txtllms-full.txtOpenAPI

Benchline

AboutFounderPrivacyGitHubSitemap

benchline

© 2026 Benchline. Built by Waseem Anjum. MIT licensed.Built for the browser, callable over MCP.
  1. Tools
  2. Image & Media
  3. Image
  4. SVG optimizer

SVG optimizer

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

Runs in your browser
Use via MCP

MCP

Use this tool from your agent

Add the server once, then ask for the job in plain words. No key.

Setup guideAll MCP tools

Tool name

optimize_svg

Endpoint

https://benchline.fabwaseem.com/mcp
Auth
None
Rate
60 / min
  1. 1Add the server config for your client.
  2. 2Ask your agent to run optimize_svg, or describe the job.
  3. 3Or send the tools/call request yourself.
~/.cursor/mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/call requestjson
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}

Next

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

Guide

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. 1Paste or drop the SVGAdd the markup. The original size is counted in bytes.
  2. 2Choose the passesLeave the viewBox on. Turn off a pass if it changes something you need.
  3. 3Copy or downloadSave the smaller file and check the preview.

FAQ

Questions people ask

Markup

Nothing is uploaded.
The viewBox stays unless you turn that pass on. Scripts are always removed.
Drop an .svg, or paste markup below
SVGxml
1
2
3
4
5
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64">
<!-- sample -->
<rect width="64.000" height="64.000" fill="#336699"/>
<circle cx="32" cy="32" r="12.500" fill="#ffffff"/>
</svg>
3

Decimal places kept in paths and transforms.

Clean attributes
Remove the doctype
Remove comments
Remove metadata
Remove unused defs
Shorten IDs
Shorten colors
Drop unused stroke and fill
Remove hidden elements
Merge paths
Simplify paths
Sort attributes
Remove the XML declaration
Remove viewBoxCan change how the SVG scales.
Remove width and height

Optimized

No output yet

Optimize the sample, or drop your own SVG.

218 B inRuns in this browser