# Convert PNG to WebP from image links

**Use case:** 

Paste direct image links to PNG, JPEG or GIF files that you have the right to use, and get each image back as a WebP file at the quality you choose, with EXIF, GPS, XMP and IPTC removed. Each row shows the old and new size, and a link that fails is not charged. Run it as it is to convert three built-in samples (the PNG screenshot goes from 25,355 to 7,060 bytes), then add your links.

## Input

```json
{
  "imageUrls": [],
  "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 PNG to WebP from image links". [Sign up or log in](https://console.apify.com/create-task-from-example/LHDMwbyablBE9A4R2) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Convert PNG to WebP from image links" 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 image links, output format, and more, to match your specific use case.

### 3. Receive the "Convert PNG to WebP from image links" 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 PNG to WebP from image links" task via API](https://apify.com/quietworkslab/image-converter.md).

## FAQ

### Which links does the PNG to WebP task accept?

The PNG to WebP task accepts direct links to image files (PNG, JPEG, WebP, GIF, AVIF or TIFF), up to 1,000 per run, read one GET each. A link to a web page is refused with NOT_AN_IMAGE and is not charged.

### Are transparent PNG images kept transparent?

The PNG to WebP task keeps transparency: WebP has an alpha channel, so the transparent areas of a PNG stay transparent. Animated GIFs stay animated as WebP.

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

The Image Converter charges $0.003 per image up to 16 megapixels on the FREE tier, less with Apify Store discounts, plus Apify's Actor start event. Failed images and the three built-in samples 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`).
