---
title: Convert SVG to WebP API
slug: convert-svg-to-webp
url: https://apyhub.com/apyhub/service/convert-svg-to-webp
provider: ApyHub
categories: [Media Kit]
tags: [conversion, images, svg, webp]
auth: api_key
version: 1.1
service_type: sync
endpoints: 4
atoms: 30
mcp: true
alias: image-converter-svg-webp
---

# Convert SVG to WebP API

Convert SVG files or URLs to WebP. Returns binary downloads or signed URLs for image pipelines, CMS imports, and asset standardization.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/multi-part/download` | What it does Converts an uploaded SVG image to WebP and returns the generated file as binary downlo… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/multi-part/link` | What it does Converts an uploaded SVG image to WebP and returns a JSON object containing a data URI… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/url/download` | What it does Converts an SVG image fetched from a publicly accessible URL into WebP and returns the… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/url/link` | What it does Converts an SVG image from a publicly accessible URL into a WebP image. The request se… | 30 |

## Endpoint reference

### Convert SVG to WebP (multipart, download)

`POST https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/multi-part/download` · 30 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image` | body | string (binary) | yes | The source image file in SVG format. Mandatory. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Convert an SVG file to WebP and download the result.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/multi-part/download?output=my-invite" \
  -H "apy-token: $APY_TOKEN" \
  -F "image=@/path/to/image.svg"
```

#### What you'll get back

Returns a binary file containing the converted WebP output.

### Convert SVG to WebP (multipart, signed URL)

`POST https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/multi-part/link` · 30 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `image` | body | string (binary) | yes | The source image file in SVG format. Mandatory. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Convert an SVG image from a multipart upload into a WebP link.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/multi-part/link" \
  -H "apy-token: $APY_TOKEN" \
  -F "image=@/path/to/image.svg"
```

#### What you'll get back

Returns a JSON object with a `data` string field containing the generated WebP URI.

```json
{
  "data": "https://example.com/my-invite.webp"
}
```

### Convert SVG to WebP (URL, download)

`POST https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/url/download` · 30 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Publicly accessible URL of the SVG image to convert. Mandatory. Example: `https://assets.apyhub.com/samples/sample.svg`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Convert a public SVG URL to WebP by sending the SVG link in the request body.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/url/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.svg"}'
```

#### What you'll get back

Returns a binary file response in WebP format.

### Convert SVG to WebP (URL, signed URL)

`POST https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/url/link` · 30 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string (uri) | yes | Publicly accessible URL of the SVG image to convert. Mandatory. Example: `https://assets.apyhub.com/samples/sample.svg`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Convert a publicly accessible SVG URL to WebP by sending the source URL in the request body.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/convert-svg-to-webp/url/link" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.svg"}'
```

#### What you'll get back

Returns a JSON object with a `data` string field containing the URI of the generated WebP file.

```json
{
  "data": "https://..."
}
```

## About

## What it does
Convert SVG images to WebP with the SVG to WebP Converter. Send either a source SVG file as multipart form data or a publicly accessible SVG URL, and get back the converted WebP as a file download or a signed URL.

Use the multipart endpoints when you already have the SVG in your application or upload pipeline. The `image` field accepts the source image file in SVG format. If you prefer remote conversion, send a `url` pointing to a publicly accessible SVG image. In both cases, you can pass an optional `output` query parameter to control the output filename.

The responses are simple and direct: either binary WebP content for download or a JSON object containing a `data` URI for the signed URL flow. That makes the service a good fit for asset pipelines, CMS imports, product image workflows, and any backend that needs to standardize vector artwork into a browser-friendly raster format.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/apyhub/service/convert-svg-to-webp
