Image format converter JPG PNG WEBP avatar

Image format converter JPG PNG WEBP

Pricing

from $0.00005 / actor start

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

from $0.00005 / actor start

Rating

0.0

(0)

Developer

Akash Kumar Naik

Akash Kumar Naik

Maintained by Community

Actor stats

3

Bookmarked

51

Total users

3

Monthly active users

8 days ago

Last modified

Security

Limited permissions

Share

Image Format Converter is an Apify Actor that converts images between JPEG, PNG, WebP, AVIF, GIF, TIFF, BMP, and HEIF with quality control and compression optimization. Point it at any public image URL and get a converted, optimized file back — built for web optimization, batch processing, and automated image pipelines for web developers, photographers, and e-commerce platforms.

What Is Image Format Converter?

Image Format Converter processes images from any public URL — including Google Drive links — and converts them to your target format with adjustable quality (1-100) and automatic compression reporting. Every conversion reports the original and converted file sizes so you can measure savings, and results are stored in the Apify Key-Value Store with a direct download URL in the dataset.

Key Features

FeatureDescription
8+ Output FormatsJPEG, PNG, WebP, AVIF, GIF, TIFF, BMP, HEIF
Quality ControlAdjustable quality (1-100) for lossy and lossless formats
Compression OptimizationAutomatic ratio reporting and size optimization
Google Drive SupportConvert images from Google Drive files, Docs, Sheets, Slides
Format DetectionAutomatic input format detection from MIME type and URL
Retry LogicBuilt-in retry with exponential backoff for failed downloads
Dimension LimitsSupports images up to 10,000 x 10,000 pixels
Size LimitsHandles files up to 50MB

Supported Formats

FormatBest Use CaseLossy/LosslessCompression
WebPWeb images, modern browsersBothExcellent
AVIFNext-generation web, best compressionBothSuperior
JPEGPhotographs, universal compatibilityLossyGood
PNGTransparency, logos, graphicsLosslessMedium
GIFAnimated imagesLosslessLow
TIFFArchival, print qualityBothVariable
BMPUncompressed bitmapLosslessNone
HEIFApple ecosystem, high efficiencyBothExcellent

Use Cases

  • Web optimization — convert images to WebP or AVIF for faster page loads and reduced bandwidth
  • E-commerce — standardize product images to consistent formats across catalogs
  • Digital asset management — batch convert and optimize large image libraries
  • Content marketing — prepare images for blogs, social media, and publishing platforms
  • Photography workflows — convert RAW and high-quality formats for web delivery

Input Parameters

ParameterTypeRequiredDefaultDescription
imageUrlstringYes—Public URL of image to convert (max 50MB, max 10,000×10,000px). Supports direct image URLs and Google Drive links
outputFormatstringYeswebpTarget format: jpeg, png, webp, gif, avif, tiff, bmp, heif
qualityintegerNo85Quality 1-100. For lossy formats (JPEG, WebP, AVIF), 80-90 is optimal for web; recommended 85 for web optimization

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
}

Sample Output

Each conversion produces a result object with the following fields:

FieldTypeDescription
originalUrlstringSource image URL
outputUrlstringConverted image URL in Key-Value Store
originalFilenamestringOriginal file name
outputFilenamestringConverted file name
originalFormatstringDetected input format (e.g., "JPEG")
targetFormatstringOutput format (e.g., "WEBP")
originalSizeintegerOriginal file size in bytes
convertedSizeintegerConverted file size in bytes
compressionRatiostringPercentage size change (e.g., "25.00%")
compressionSavingsstringHuman-readable savings (e.g., "0.59MB saved")
statusstringsuccess or error
processingTimeintegerProcessing time in milliseconds
errorstringError message if conversion failed

Example output (success):

{
"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
}

How to Use Image Format Converter

  1. Open the Actor page on Apify Store.
  2. Provide the public URL of the image you want to convert.
  3. Select the output format — WebP is recommended for web optimization.
  4. Optionally set quality (1-100; default 85, optimal for web delivery).
  5. Run the Actor and download the converted file from the outputUrl in the dataset.

Connect via API

cURL:

curl -X POST "https://api.apify.com/v2/acts/akash9078/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}'

Python with the Apify Client:

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("akash9078/image-format-converter").call(
run_input={
"imageUrl": "https://example.com/image.png",
"outputFormat": "webp",
"quality": 90,
}
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)

Node.js with the Apify Client:

const { ApifyClient } = require('apify-client');
const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('akash9078/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);

Error Responses

{
"originalUrl": "https://example.com/broken-image.jpg",
"status": "error",
"error": "Failed to download image after 4 attempts: 404 Not Found",
"processingTime": 0
}

Technical Specifications

SpecificationValue
Maximum file size50 MB
Maximum dimensions10,000 × 10,000 pixels
Memory allocation128 MB – 256 MB
Timeout300 seconds
Retry attempts3 (exponential backoff)

Pricing

Pay-per-event (PPE) pricing model — you only pay for successful conversions.

EventPriceDescription
image-converted$0.01Successfully converted image
image-download-failed$0.001Failed download attempt

Estimated cost: 1 image = $0.01, 100 images = $1.00, 1,000 images = $10.00, 10,000 images = $100.00.

Set a maximum spending limit per run in Apify Console. The Actor automatically stops when the limit is reached.

Why Use Image Format Converter Instead of Manual Conversion?

Manual desktop conversion does not scale: renaming, quality settings, and size reporting must be redone for every file, and nothing can be triggered by an API. Image Format Converter runs in the cloud with automatic format detection, retry logic, compression reporting, and a JSON dataset you can wire into build pipelines, DAM systems, and product feeds — no infrastructure to manage.

Limitations

  • Output to BMP format converts to PNG due to Sharp library constraints
  • Google Drive integration exports Docs/Sheets/Slides as PDF
  • This Actor processes one image per run; for batch processing, use the Apify API to trigger multiple runs programmatically

FAQ

Which format should I use for web images?

WebP offers the best balance of compression and compatibility. AVIF provides superior compression but has limited browser support.

What quality setting should I use?

80-90 is optimal for web images, balancing quality and file size. Use 95-100 for high-quality archival purposes.

Does the Actor charge for failed conversions?

Yes, a reduced fee ($0.001) applies for download failures to cover processing costs.

Can I convert multiple images in one run?

This Actor processes one image per run. For batch processing, use the Apify API to trigger multiple runs programmatically.

Does this support Google Drive images?

Yes, paste a Google Drive share link and the Actor will automatically convert it for download.

If you need more image and document processing from Apify, check out my other Apify Actors:


Built and maintained by akash9078 on the Apify platform.