Image format converter JPG PNG WEBP avatar

Image format converter JPG PNG WEBP

Pricing

$2.50/month + usage

Go to Apify Store
Image format converter JPG PNG WEBP

Image format converter JPG PNG WEBP

Effortlessly convert and optimize images between formats like JPEG, PNG, WebP, AVIF, and more. Maintain high quality while reducing file size for faster websites, stunning social media visuals, and print-ready graphics.

Pricing

$2.50/month + usage

Rating

0.0

(0)

Developer

Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

2

Bookmarked

34

Total users

2

Monthly active users

11 days ago

Last modified

Share

Image Format Converter

Convert images between formats with quality control and optimization. This Apify Actor provides a simple, reliable way to transform images for web optimization, batch processing, and automated pipelines.

What does Image Format Converter do?

Image Format Converter processes images from URLs and converts them to your desired format with customizable quality settings. It supports popular formats including JPEG, PNG, WebP, AVIF, GIF, TIFF, BMP, and HEIF.

Key capabilities:

  • Convert between 9 image formats
  • Quality control from 1-100 for lossy formats
  • Automatic format detection from input URLs
  • Google Drive link support
  • Compression ratio reporting

Why use Image Format Converter?

  • Web optimization: Convert images to modern formats like WebP or AVIF for faster page loads
  • E-commerce: Standardize product images to consistent formats
  • Content management: Prepare images for blogs, social media, and digital platforms
  • Batch processing: Integrate into automated workflows via Apify API
  • API integration: Use in custom applications requiring on-demand image conversion

How to use Image Format Converter

  1. Provide image URL: Enter the direct URL of the image you want to convert
  2. Select output format: Choose your desired format (WebP recommended for web)
  3. Set quality: Adjust quality from 1-100 (higher = better quality, larger file)

Input

The Actor accepts the following input parameters:

FieldTypeRequiredDefaultDescription
imageUrlstringYes-URL of the image to convert (max 50MB, max 10,000x10,000px)
outputFormatstringYeswebpOutput format: jpeg, jpg, png, webp, gif, avif, tiff, bmp, heif
qualityintegerNo90Quality 1-100 (applies to lossy formats)

Example input

{
"imageUrl": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/47/PNG_transparency_demonstration_1.png/640px-PNG_transparency_demonstration_1.png",
"outputFormat": "webp",
"quality": 85
}

Output

Each processed image produces a result object stored in the dataset:

FieldTypeDescription
originalUrlstringURL of the original image
outputUrlstringURL of the converted image
originalFilenamestringOriginal filename
originalFormatstringDetected input format
targetFormatstringOutput format
originalSizeintegerOriginal file size in bytes
convertedSizeintegerConverted file size in bytes
compressionRatiostringPercentage size change
compressionSavingsstringHuman-readable size difference
statusstringsuccess or error
processingTimeintegerProcessing time in milliseconds
errorstringError message (if failed)

Example output

{
"originalUrl": "https://example.com/photo.jpg",
"originalFilename": "photo.jpg",
"originalFormat": "JPEG",
"targetFormat": "WEBP",
"originalSize": 2457600,
"convertedSize": 1843200,
"compressionRatio": "25.00%",
"compressionSavings": "0.59MB saved",
"outputUrl": "https://api.apify.com/v2/key-value-stores/abc123/records/photo.webp",
"outputFilename": "photo.webp",
"status": "success",
"processingTime": 1250
}

Pricing

This Actor uses pay-per-event (PPE) pricing at $0.01 per image processed.

How pay-per-event works

  • You only pay for successful processing - Errors do not incur charges
  • Simple, transparent pricing - One flat rate per image
  • Platform costs included - Compute units are covered in the event price
  • Spending control - Set a maximum charge limit per run

Cost examples

ImagesCost
1$0.01
100$1.00
1,000$10.00
10,000$100.00

Spending limits

You can set a maximum spending limit per run in the Apify Console. The Actor will respect this limit and stop processing when reached.

Supported formats

Input formats

JPEG, PNG, WebP, GIF, TIFF, BMP, HEIC, AVIF, and various RAW camera formats

Output formats

FormatBest forLossy/Lossless
WebPWeb images, modern browsersBoth
AVIFNext-gen web, best compressionBoth
JPEGPhotographs, universal supportLossy
PNGTransparency, logosLossless
GIFAnimated imagesLossless
TIFFArchival, printBoth
BMPUncompressed bitmapLossless
HEIFApple ecosystemBoth

Limitations

  • Maximum file size: 50MB
  • Maximum dimensions: 10,000 x 10,000 pixels
  • BMP output is converted to PNG (Sharp library limitation)

Tips

  • Use WebP or AVIF for web images - they offer the best compression
  • Set quality to 85-90 for good balance between size and quality
  • For PNG images, quality controls compression level (not image quality)
  • Use quality 100 with WebP for lossless compression

Integration

API usage

curl -X POST "https://api.apify.com/v2/acts/image-format-converter/runs" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"imageUrl": "https://example.com/image.png",
"outputFormat": "webp",
"quality": 90
}'

JavaScript/Node.js

const { ApifyClient } = require("apify-client");
const client = new ApifyClient({ token: "YOUR_API_TOKEN" });
const run = await client.actor("image-format-converter").call({
imageUrl: "https://example.com/image.png",
outputFormat: "webp",
quality: 90,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);

Support

If you encounter any issues or have questions:

  • Check the Apify documentation
  • Open an issue on the Actor page
  • Contact the developer through Apify Console