# WebP Converter API

> WebP Converter transforms WebP images to classic formats like PNG and JPG, or converts other formats to WebP for better compression. Essential for handling modern web images.

**Endpoint:** `POST https://api.apiverve.com/v1/webpconverter`  
**Category:** Images  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/webpconverter

## Overview

WebP is Google's modern image format offering superior compression. While most browsers support it, some applications and platforms don't. This API converts between WebP and traditional formats seamlessly.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/webpconverter" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@photo.webp" \
  -F "outputFormat=png" \
  -F "quality=90" \
  -F "maxWidth=1920" \
  -F "maxHeight=1080"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | string | Yes | Upload an image file to convert (supported formats: WebP, PNG, JPG, GIF) |
| `outputFormat` | string | Yes | Target format. One of: png, jpg, webp, gif, tiff |
| `quality` | integer | No | Output quality (applies to jpg/webp). default 90. range 1-100 |
| `maxWidth` | integer | No | Maximum width in pixels (maintains aspect ratio). range 1-10000. Premium field |
| `maxHeight` | integer | No | Maximum height in pixels (maintains aspect ratio). range 1-10000. Premium field |

## Response fields

- `id` — string · Unique identifier for conversion request · (premium)
- `inputFormat` — string · Format of uploaded input image file
- `outputFormat` — string · Format of converted output image file
- `inputSize` — number · Size of input image in bytes · (premium)
- `outputSize` — number · Size of converted output image bytes · (premium)
- `mimeType` — string · MIME type of converted output image
- `expires` — number · Unix timestamp when converted image expires
- `downloadURL` — string · URL to download converted image file

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "id": "c9d8e7f6-5432-10ba-dcfe-210987654321",
    "inputFormat": "webp",
    "outputFormat": "png",
    "inputSize": 156789,
    "outputSize": 234567,
    "mimeType": "image/png",
    "expires": 1707350400000,
    "downloadURL": "https://storage.googleapis.com/apiverve/webpconverter/c9d8e7f6.png"
  },
  "code": 200
}
```

## Use cases

- **Storefront Media Optimization** — When merchants upload product photography in PNG or JPG, store backends convert files into WebP and fetch the download link to cut page weight.
- **Legacy Document Archival** — Convert incoming WebP screenshots to PNG or JPG before archiving, allowing older enterprise software that lacks WebP decoding to render customer attachments reliably.
- **Editorial Asset Publishing** — To speed up article delivery, CMS pipelines convert heavy desktop graphics into WebP and retrieve the download URL for delivery across content delivery networks.
- **Mobile Profile Uploads** — Mobile social apps convert user-submitted JPG profile pictures to WebP with custom quality settings to reduce user data consumption during feed scrolling.

## SDKs

- **npm** — `npm install @apiverve/webpconverter` (https://www.npmjs.com/package/@apiverve/webpconverter)
- **NuGet** — `dotnet add package APIVerve.API.WebPConverter` (https://www.nuget.org/packages/APIVerve.API.WebPConverter)
- **Source** — https://github.com/apiverve/webpconverter-api

## More

- Full reference: https://docs.apiverve.com/ref/webpconverter
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
