Skip to content
Utilerio
All endpoints

SVG Sprite Generator

POST/api/v1/tools/svg-sprite-generator

Combine multiple SVG icons into one symbol-based sprite sheet, with a ready-to-use usage example.

Authentication

Requires an API key in the X-API-Key header.

Try it

POST/api/v1/tools/svg-sprite-generator

Parameters

iconsstringrequired

Array of {name, svgText} icon SVGs to combine into one sprite.

Request body

{
  "icons": [
    {
      "name": "home.svg",
      "svgText": "<svg viewBox=\"0 0 24 24\"><path d=\"M3 12l9-9 9 9\"/></svg>"
    }
  ]
}

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-sprite-generator \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"icons":[{"name":"home.svg","svgText":"<svg viewBox=\"0 0 24 24\"><path d=\"M3 12l9-9 9 9\"/></svg>"}]}'

Response

{ "spriteSvg": "<svg ...>...</svg>", "usageExample": "<svg class=\"icon\">\n  <use href=\"/sprite.svg#home\" />\n</svg>", "icons": [{ "id": "home", "viewBox": "0 0 24 24" }] }