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

# Convert JPEG to WebP API

Convert JPEG or JPG images to WebP from a URL or file upload. Returns a binary download or a signed URL for storage and faster delivery.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/convert-jpeg-to-webp/url/link` | What it does Converts a publicly accessible JPEG image URL into a WebP image and returns the result… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-jpeg-to-webp/multi-part/download` | What it does Converts an uploaded JPEG/JPG image to WebP and returns the resulting file as a binary… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-jpeg-to-webp/multi-part/link` | What it does Converts a JPEG/JPG image provided in the request body into WebP format using a multip… | 30 |
| POST | `https://api.eu.apyhub.com/apyhub/convert-jpeg-to-webp/url/download` | What it does Converts a JPEG image available at a publicly accessible URL into WebP and returns the… | 30 |

## Endpoint reference

### Convert JPEG to WebP 

`POST https://api.eu.apyhub.com/apyhub/convert-jpeg-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 JPEG image to convert. Mandatory. Example: `https://assets.apyhub.com/samples/sample.jpg`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Convert a JPEG from a public URL into WebP by sending the image URL in the JSON body.

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

#### What you'll get back

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

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

### Convert JPEG to WebP

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

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

#### Quickstart

Upload a JPEG image and optionally set the output name to download the converted WebP file.

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

#### What you'll get back

Returns a binary file response containing the converted WebP image.

### Convert JPEG to WebP

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

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

#### Quickstart

Convert a JPEG/JPG image file to WebP by sending the required image upload and a destination name in the query string.

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

#### What you'll get back

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

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

### Convert JPEG to WebP 

`POST https://api.eu.apyhub.com/apyhub/convert-jpeg-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 JPEG image to convert. Mandatory. Example: `https://assets.apyhub.com/samples/sample.jpg`. |
| `output` | query | string | no | Example: `my-invite`. |

#### Quickstart

Convert a JPEG image from a public URL to WebP by sending the source image URL in JSON.

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

#### What you'll get back

Returns a binary file (`string` with `format: binary`) containing the converted WebP image.

## About

## What it does
JPEG to WebP Converter turns a JPEG or JPG image into a WebP file. Send either a public image URL or a binary image upload, and choose whether you want the result returned as a downloadable file or as a signed URL in the response.

Use the URL-based endpoints when the source image already lives online, or the multipart endpoints when you're uploading a local file. The request body only needs `url` for URL conversions or `image` for multipart conversions. If you need a named output, pass `output` as a query parameter.

The response matches the delivery mode you choose: the download endpoints return binary WebP content, while the signed-URL endpoints return a JSON object with a `data` field containing a URI. That makes this service a good fit for image pipelines, CMS uploads, storage optimisation, and client-side delivery where smaller WebP assets reduce transfer size.

## 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-jpeg-to-webp
