---
title: "Convert Image to WebP, AVIF, PNG or JPG API"
slug: convert-image-to-webp-avif-png-jpg-api
url: https://apyhub.com/frolic/service/convert-image-to-webp-avif-png-jpg-api
provider: Hakimi Labs
categories: [Ingestion Kit, Media Kit]
tags: [image-conversion, image-optimization, format-conversion, webp, avif, metadata-stripping]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Convert Image to WebP, AVIF, PNG or JPG API

Convert uploaded images to JPG, PNG, WebP, or AVIF. Strip metadata and tune output quality for web delivery and image pipelines.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/frolic/convert-image-to-webp-avif-png-jpg-api` | What it does Converts an uploaded image file to a different format and returns the converted image… | 10 |

## Endpoint reference

### Convert Image

`POST https://api.eu.apyhub.com/frolic/convert-image-to-webp-avif-png-jpg-api` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `to` | body | string | yes | jpg, png, webp or avif One of: jpg, png, webp, avif. Example: `webp`. |
| `file` | body | string (binary) | yes | Image (max 10 MB, 40 megapixels): JPEG, PNG, WebP, AVIF, TIFF or GIF |
| `strip` | body | boolean | no | Remove EXIF, XMP and IPTC metadata such as GPS location Default: `false`. |
| `quality` | body | integer (int32) | no | 1-100, for jpg, webp and avif Default: `85`. |

#### Quickstart

Convert an image to your chosen format by uploading the file and setting the target type.

```bash
curl -X POST "https://api.eu.apyhub.com/frolic/convert-image-to-webp-avif-png-jpg-api" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.png" \
  -F "to=webp"
```

#### What you'll get back

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

## About

## What it does
Image Converter turns an uploaded image into JPG, PNG, WebP, or AVIF and returns the converted file as binary output.

Send a JPEG, PNG, WebP, AVIF, TIFF, or GIF file up to 10 MB and 40 megapixels, then choose the target format with `to`. For JPG, WebP, and AVIF output, you can also set `quality` from 1 to 100 to control compression. If you need to remove embedded metadata, set `strip` to true to remove EXIF, XMP, and IPTC data, including GPS location.

Use Image Converter when you need to normalize uploads into a browser-friendly format, generate smaller assets for delivery, or strip sensitive metadata before storing or sharing images. It is a straightforward fit for upload pipelines, content processing workflows, and media backends that need a consistent output image type.

## 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/frolic/service/convert-image-to-webp-avif-png-jpg-api
