# Convert JPEG and PNG images to WebP in bulk

**Use case:** 

Converts every image in your Apify key-value store, your uploaded files or direct image links to WebP at the quality you choose. The EXIF rotation is applied first, and EXIF, GPS location, XMP and IPTC metadata are removed. Each result row shows the old and new size. Run it as it is to convert three built-in sample images (no per-image charge), then choose your own images.

## Input

```json
{
  "outputFormat": "webp",
  "quality": 80,
  "colorProfile": "srgb",
  "keepMetadata": false,
  "pngReduceColors": false
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "inputKey": {
    "label": "Input key",
    "format": "string"
  },
  "linkNumber": {
    "label": "Link number",
    "format": "integer"
  },
  "outputUrl": {
    "label": "Output URL",
    "format": "string"
  },
  "inputFormat": {
    "label": "Input format",
    "format": "string"
  },
  "outputFormat": {
    "label": "Output format",
    "format": "string"
  },
  "inputBytes": {
    "label": "Input size (bytes)",
    "format": "integer"
  },
  "outputBytes": {
    "label": "Output size (bytes)",
    "format": "integer"
  },
  "savedPercent": {
    "label": "Saved (%)",
    "format": "number"
  },
  "inputWidth": {
    "label": "Input width",
    "format": "integer"
  },
  "inputHeight": {
    "label": "Input height",
    "format": "integer"
  },
  "outputWidth": {
    "label": "Output width",
    "format": "integer"
  },
  "outputHeight": {
    "label": "Output height",
    "format": "integer"
  },
  "hadExif": {
    "label": "Had EXIF",
    "format": "boolean"
  },
  "hadGps": {
    "label": "Had GPS location",
    "format": "boolean"
  },
  "hadXmp": {
    "label": "Had XMP",
    "format": "boolean"
  },
  "hadIptc": {
    "label": "Had IPTC",
    "format": "boolean"
  },
  "hadIccProfile": {
    "label": "Had color profile",
    "format": "boolean"
  },
  "hadComments": {
    "label": "Had comments",
    "format": "boolean"
  },
  "rotatedByExif": {
    "label": "Rotated by EXIF",
    "format": "boolean"
  },
  "chargedEvents": {
    "label": "Charged events",
    "format": "integer"
  },
  "errorCode": {
    "label": "Error code",
    "format": "string"
  },
  "errorMessage": {
    "label": "Error message",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Image Converter & Compressor - WebP, AVIF, strip EXIF/GPS Actor is ready to run with the inputs already set for "Convert JPEG and PNG images to WebP in bulk". [Sign up or log in](https://console.apify.com/create-task-from-example/zkybS8t0sV93tEqP6) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert JPEG and PNG images to WebP in bulk" task

The Image Converter & Compressor - WebP, AVIF, strip EXIF/GPS Actor will start running based on the input automatically. You can also change all the input fields, like output format, quality, and more, to match your specific use case.

### 3. Receive the "Convert JPEG and PNG images to WebP in bulk" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, input key, link number, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Convert JPEG and PNG images to WebP in bulk" task via API](https://apify.com/quietworkslab/image-converter.md).

## FAQ

### What does the WebP conversion task return?

The WebP conversion task saves each converted image in the run's key-value store and writes one dataset row per image with its download link, the old and new size in bytes, the pixel size and which metadata the original had.

### Where do the images come from?

The WebP conversion task reads images from direct links to image files, from a key-value store in your Apify account (optionally only keys with a prefix) or from files you upload. Use only images you have the right to use.

### How much does converting images to WebP cost?

The Image Converter charges $0.003 per image up to 16 megapixels (AVIF output counts double), plus Apify's Actor start event. The three built-in sample images have no per-image charge.

## About this Actor

This example demonstrates how to use [Image Converter & Compressor - WebP, AVIF, strip EXIF/GPS](https://apify.com/quietworkslab/image-converter.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/quietworkslab/image-converter.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/quietworkslab/image-converter.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
