Image Converter — WebP · AVIF · JPEG · PNG (Resize + Batch)
Pricing
$4.00 / 1,000 image conversions
Image Converter — WebP · AVIF · JPEG · PNG (Resize + Batch)
Convert images between WebP, AVIF, JPEG, PNG, GIF and TIFF with optional resizing, quality control and metadata stripping. Batch URLs in, converted files + direct download links out. $0.004 per image converted; failures are never charged.
Pricing
$4.00 / 1,000 image conversions
Rating
0.0
(0)
Developer
Anthony Snider
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a day ago
Last modified
Categories
Share
Image Converter — WebP · AVIF · JPEG · PNG · GIF · TIFF
Batch-convert images between modern and classic formats with optional resizing, quality control and metadata stripping. Feed it public image URLs; it returns one converted file per image in the run's key-value store, with a direct download URL, dimensions, byte sizes and the exact space saved in every dataset row.
Powered by libvips (sharp) — the same engine behind most production image CDNs — so conversions are fast and color-accurate.
Try it free first
Run the actor with no input at all and it converts a built-in demo image (unbilled) so you can see the exact output shape before spending anything.
What it does
- Formats: WebP, AVIF, JPEG, PNG, GIF, TIFF — any direction. Animated GIF/WebP inputs keep their animation when converting between those two.
- Resize: target width/height with five fit modes (
inside,cover,contain,fill,outside). Images are never upscaled. - Quality: 1–100 for lossy formats. WebP at quality 80 typically cuts a JPEG's size 25–35%; AVIF often more.
- Privacy by default: EXIF/GPS/ICC metadata is stripped unless you set
keepMetadata. Orientation is applied to the pixels first, so photos never come out sideways. - Honest billing: you pay per successfully converted image. Dead URLs, non-images, and oversized sources are recorded in the dataset but never charged. Output is stored before the charge, so hitting your spending limit never loses finished work.
Input
| Field | Type | Default | Notes |
|---|---|---|---|
imageUrls | string[] | [] | Empty = free demo conversion |
format | enum | webp | webp / avif / jpeg / png / gif / tiff |
quality | integer | 80 | Lossy formats only |
width / height | integer | 0 | 0 keeps original; never upscales |
fit | enum | inside | Used when both width & height are set |
keepMetadata | boolean | false | Keep EXIF/ICC |
maxFileSizeMb | integer | 50 | Larger sources skipped (unbilled) |
Example output
{"sourceUrl": "https://example.com/photo.jpg","outputFormat": "webp","fileKey": "image-0001.webp","downloadUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/image-0001.webp","sourceFormat": "jpeg","sourceWidth": 4032,"sourceHeight": 3024,"width": 1600,"height": 1200,"bytesIn": 2871442,"bytesOut": 214930,"savedPercent": 92.5,"convertedAt": "2026-08-03T19:30:00.000Z"}
Run it from the API
curl -X POST "https://api.apify.com/v2/acts/<username>~image-converter/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \-H "Content-Type: application/json" \-d '{"imageUrls":["https://example.com/photo.jpg"],"format":"webp","width":1600,"quality":80}'
Each row's downloadUrl serves the converted file directly — pipe it into the next step of your workflow, no unzipping.
Honest limits
- Sources are capped at
maxFileSizeMb(max 100 MB) and 60 s download time each. - SVG input is rasterized at its intrinsic size; fonts inside SVGs may not render.
- AVIF encoding is the slowest of the six formats — expect a few seconds per large photo.
- The actor fetches only the public URLs you explicitly supply — no crawling, no login-walled content.
Pricing
$0.004 per image converted — billed as the image-converted event, only on success: dead URLs, non-images, and oversized sources are recorded but never charged, and output is stored before the charge so a spending cap never loses finished work. Run with no input at all for a free, unbilled demo conversion.
FAQ
How do I convert an image to WebP (or AVIF) by URL? Put the URLs in imageUrls, set format, run — each row returns a downloadUrl serving the converted file directly, plus byte sizes and the exact percentage saved.
How much smaller do images get? WebP at quality 80 typically cuts a JPEG's size 25–35%; AVIF usually more. Every result reports bytesIn, bytesOut, and savedPercent, so the answer for your images is measured, not estimated.
Can it resize images too? Yes — set width/height with one of five fit modes. Images are never upscaled, so thumbnails stay sharp and originals stay untouched.
Does it keep EXIF and GPS metadata? Stripped by default for privacy (set keepMetadata to keep it). Orientation is applied to the pixels first, so photos never come out sideways.
Do animated GIFs stay animated? Yes when converting between GIF and WebP — the two animated formats. Converting an animation to a still format keeps the first frame.
Is there a free way to test the output format? Run with no input at all — a built-in demo image is converted unbilled so you can inspect the exact output shape before spending anything.