Image format converter JPG PNG WEBP
Pricing
from $0.00005 / actor start
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
Maintained by CommunityActor stats
3
Bookmarked
51
Total users
3
Monthly active users
8 days ago
Last modified
Categories
Security
Limited permissionsShare
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
| Feature | Description |
|---|---|
| 8+ Output Formats | JPEG, PNG, WebP, AVIF, GIF, TIFF, BMP, HEIF |
| Quality Control | Adjustable quality (1-100) for lossy and lossless formats |
| Compression Optimization | Automatic ratio reporting and size optimization |
| Google Drive Support | Convert images from Google Drive files, Docs, Sheets, Slides |
| Format Detection | Automatic input format detection from MIME type and URL |
| Retry Logic | Built-in retry with exponential backoff for failed downloads |
| Dimension Limits | Supports images up to 10,000 x 10,000 pixels |
| Size Limits | Handles files up to 50MB |
Supported Formats
| Format | Best Use Case | Lossy/Lossless | Compression |
|---|---|---|---|
| WebP | Web images, modern browsers | Both | Excellent |
| AVIF | Next-generation web, best compression | Both | Superior |
| JPEG | Photographs, universal compatibility | Lossy | Good |
| PNG | Transparency, logos, graphics | Lossless | Medium |
| GIF | Animated images | Lossless | Low |
| TIFF | Archival, print quality | Both | Variable |
| BMP | Uncompressed bitmap | Lossless | None |
| HEIF | Apple ecosystem, high efficiency | Both | Excellent |
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
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
imageUrl | string | Yes | — | Public URL of image to convert (max 50MB, max 10,000×10,000px). Supports direct image URLs and Google Drive links |
outputFormat | string | Yes | webp | Target format: jpeg, png, webp, gif, avif, tiff, bmp, heif |
quality | integer | No | 85 | Quality 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:
| Field | Type | Description |
|---|---|---|
originalUrl | string | Source image URL |
outputUrl | string | Converted image URL in Key-Value Store |
originalFilename | string | Original file name |
outputFilename | string | Converted file name |
originalFormat | string | Detected input format (e.g., "JPEG") |
targetFormat | string | Output format (e.g., "WEBP") |
originalSize | integer | Original file size in bytes |
convertedSize | integer | Converted file size in bytes |
compressionRatio | string | Percentage size change (e.g., "25.00%") |
compressionSavings | string | Human-readable savings (e.g., "0.59MB saved") |
status | string | success or error |
processingTime | integer | Processing time in milliseconds |
error | string | Error 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
- Open the Actor page on Apify Store.
- Provide the public URL of the image you want to convert.
- Select the output format — WebP is recommended for web optimization.
- Optionally set quality (1-100; default 85, optimal for web delivery).
- Run the Actor and download the converted file from the
outputUrlin 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 ApifyClientclient = 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().itemsprint(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
| Specification | Value |
|---|---|
| Maximum file size | 50 MB |
| Maximum dimensions | 10,000 × 10,000 pixels |
| Memory allocation | 128 MB – 256 MB |
| Timeout | 300 seconds |
| Retry attempts | 3 (exponential backoff) |
Pricing
Pay-per-event (PPE) pricing model — you only pay for successful conversions.
| Event | Price | Description |
|---|---|---|
image-converted | $0.01 | Successfully converted image |
image-download-failed | $0.001 | Failed 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.
Related Actors
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.