All endpoints
SVG Optimizer
POST
/api/v1/tools/svg-optimizerShrink an SVG's file size by stripping redundant markup — see the before/after size and a live preview.
Authentication
Requires an API key in the X-API-Key header.
Try it
POST
/api/v1/tools/svg-optimizerParameters
svgstringrequiredSVG markup to optimize.
multipassbooleanoptionalRun multiple optimization passes. Default true.
Request body
{
"svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 10 10\"><rect x=\"0\" y=\"0\" width=\"10\" height=\"10\"/></svg>",
"multipass": true
}Response codes
200Success.400Invalid request — check your body or parameters.401Missing or invalid API key.403The API key is not scoped to this endpoint.429Rate limit exceeded — retry after a short wait.
Language
cURL
Request
curl -X POST https://utilerio.com/api/v1/tools/svg-optimizer \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 10 10\"><rect x=\"0\" y=\"0\" width=\"10\" height=\"10\"/></svg>","multipass":true}'Response
{ "optimized": "<svg ...><path d=\"M0 0h10v10H0z\"/></svg>", "originalBytes": 108, "optimizedBytes": 84 }
