Categories

Convert SVG to WebP

Convert SVG vector graphics to WebP raster format with modern compression and transparency support

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: image/svg+xml, text/xml

Output width in pixels (optional)

Output height in pixels (optional)

Rendering density for SVG (DPI)

1 80 100

WebP quality (1-100, higher = better quality)

Use lossless compression for perfect quality

0 4 6

CPU effort (0=fastest, 6=slowest/best compression)

0 4 6

Compression method (0=fastest, 6=slowest/smallest)

Keep SVG transparency in output WebP

Background color (if transparency is disabled)

API Documentation

Request Endpoint

POST /en/api/tools/svg-to-webp

Request Parameters

Parameter Name Type Required Description
svgFile file (Upload required) Yes -
width number No Output width in pixels (optional)
height number No Output height in pixels (optional)
density number No Rendering density for SVG (DPI)
quality range No WebP quality (1-100, higher = better quality)
lossless checkbox No Use lossless compression for perfect quality
effort range No CPU effort (0=fastest, 6=slowest/best compression)
method range No Compression method (0=fastest, 6=slowest/smallest)
preserveTransparency checkbox No Keep SVG transparency in output WebP
backgroundColor color No Background color (if transparency is disabled)

File type parameters need to be uploaded first via POST /upload/svg-to-webp to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-svg-to-webp": {
      "name": "svg-to-webp",
      "description": "Convert SVG vector graphics to WebP raster format with modern compression and transparency support",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=svg-to-webp",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]