Bulk Image Converter: WebP, AVIF, Resize [USD 1/1K]
Pricing
from $1.00 / 1,000 image converteds
Bulk Image Converter: WebP, AVIF, Resize [USD 1/1K]
Convert images in bulk to WebP, AVIF, JPEG or PNG from links, a dataset or stored files. Resize, set quality or a target file size, strip metadata; SVG, GIF, TIFF, BMP and AVIF in. USD 1 per 1,000 images, plus USD 0.0001 per extra megapixel and 0.0002 per extra MB.
Pricing
from $1.00 / 1,000 image converteds
Rating
0.0
(0)
Developer
Useful API
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Features
Share
Bulk Image Converter: WebP, AVIF, JPEG, PNG, resize
Convert images in bulk. Give it image links, a dataset of links, or a key-value store of images; get WebP, AVIF, JPEG or PNG files back, resized if you ask, with one row per image (formats, pixel sizes, bytes in and out, percent saved) and one signed ZIP link. USD 1 per 1,000 images, plus a small amount per extra megapixel and per extra megabyte (see Pricing).
What it does
- Reads JPEG, PNG, WebP, AVIF, GIF (animated too), TIFF, BMP and SVG. The format is read from the file's bytes, not from the link or the server's Content-Type.
- Writes WebP, AVIF, JPEG or PNG. PNG is lossless (pixel for pixel) unless you turn on the 256-colour palette; greyscale JPEG and PNG stay greyscale, and a 16-bit PNG stays 16-bit as PNG (other outputs are 8-bit).
- Options: quality (or lossless for WebP and AVIF), resize by max width and max height with five fit modes (no enlargement unless you ask), strip metadata (on by default: removes EXIF, GPS, colour profile) or keep it, apply the EXIF rotation, background colour for transparency when writing JPEG, a target file size (the quality is searched, best first, in at most 8 encodings), PNG palette mode, SVG scale, animated GIF kept as animated WebP.
- Safe by default: a size cap per file (25 MB, hard limit 100 MB), a pixel cap (50 megapixels, hard limit 100), a time cap per image, a memory check from the image header and a watch on the converter's real memory, so one huge file can never end the run. A bad link is a row with a status, never a failed run.
- Conversion runs in the cloud, files go to a key-value store made for the run, with a signed link for each file and a signed ZIP of all of them (valid 7 days, no login needed; the store itself is deleted after your plan's data retention, 7 days on most plans).
Input example
{"urls": ["https://upload.wikimedia.org/wikipedia/commons/6/69/MarsSunset.jpg","https://upload.wikimedia.org/wikipedia/commons/e/e3/Snow_crystals.png"],"outputFormat": "webp","quality": 80,"maxWidth": 1600,"stripMetadata": true}
Other inputs: datasetId (+ datasetUrlField, for example the dataset of the Bulk Image Downloader: its fileUrl or imageUrl field is found automatically; rows without a link are listed and skipped), keyValueStoreId (+ keyPrefix) for images already stored in a key-value store of yours, targetMaxKb, lossless, avifEffort (0 to 2), fit, allowEnlargement, background, animation, svgScale, maxFileSizeMb, maxMegapixels, timeoutSecs, retries, concurrency, maxInputs. The input form has the full descriptions.
Output example (one row, real run of 19 Nov 2026 on build 1.0.17, trimmed)
{"status": "ok","input": "https://raw.githubusercontent.com/recurser/exif-orientation-examples/master/Landscape_6.jpg","inputFormat": "jpeg","inputWidth": 1200, "inputHeight": 1800,"outputFormat": "webp","outputWidth": 1800, "outputHeight": 1200,"inputBytes": 352727, "outputBytes": 335624, "percentSaved": 4.8,"quality": 80, "qualityTries": 1,"frames": 1, "hasAlpha": false, "megapixelsIn": 2.16,"key": "converted__Landscape_6-9b344e9f.webp","fileUrl": "https://api.apify.com/v2/key-value-stores/<store>/records/converted__Landscape_6-9b344e9f.webp?signature=...","zipUrl": "https://api.apify.com/v2/key-value-stores/<store>/records?prefix=converted__&signature=...","billedAs": { "event": "image-converted", "megabytes": 0 }}
This photo was stored rotated (EXIF orientation 6); the output is upright. The run summary (record OUTPUT) has counts by status, the billed events, the ZIP link and why a run stopped early, if it did.
Statuses: ok, not_found, forbidden, rate_limited, server_error, unreachable, timeout, too_slow, tls_error, dns_not_found, private_address, blocked_port, too_large (over your file size cap), too_many_pixels (over your pixel cap or what the run's memory can convert), memory_limit (the conversion needed more memory than the run has), output_too_large (WebP is limited to 16,383 px a side), not_an_image, unsupported_format, corrupt_image, convert_failed, cost_limit, store_failed, invalid_input.
Pricing (pay per event)
| Event | Price |
|---|---|
| Run start (per GB; the Actor uses 2 GB) | USD 0.0025 per GB, USD 0.005 per run |
| Image converted | USD 0.001 |
| Link or file without a converted image (broken, not an image, HEIC, over a cap, timeout) | USD 0.0002 |
| Each started megabyte beyond the first of an input file, or of the converted file when it is larger | USD 0.0002 |
| Each started megapixel beyond the first of the image worked on: the input, or the output when it is larger (enlarging, SVG drawn at its output size); every frame of an animation counts; palette PNG output also counts its output megapixels | USD 0.0001 |
| Each started megapixel of AVIF output (every encoding pass) | USD 0.0002 |
Worked examples: a 12.05 MB, 23.3 megapixel phone photo converted to WebP costs 0.001 + 12 x 0.0002 + 23 x 0.0001 = USD 0.0057; to AVIF, + 24 x 0.0002 = USD 0.0105. A run of one small image costs 0.005 + 0.001 = USD 0.006, a thousand thumbnails under 1 MB and 1 megapixel USD 1.005. Lossless PNG of a photo is often larger than the JPEG it came from: a 5.2 MB, 15.9 megapixel JPEG gave a 29.4 MB PNG, billed 0.001 + 29 x 0.0002 + 15 x 0.0001 = USD 0.0083 (the megabytes of the larger file). Measured platform cost is a few hundredths of a cent per web-size image (details and run ids in the repository's PRICING.md). Set your maximum cost per run: the Actor stops cleanly before it passes it (rows already converted are kept, an image stopped part way is a cost_limit row, and the inputs not started are counted in OUTPUT as inputsNotStarted, so you can run them again). With the target-size option each extra encoding pass is billed as megapixels, and reserved against your limit first. A file that fails while it is being converted (damaged, timeout, memory) is billed as a link without a converted image plus the megapixels reserved for it.
Limits (honest)
- HEIC and HEIF photos (iPhone) cannot be read: the image library has no HEVC decoder. AVIF files can. ICO, JPEG XL and compressed (RLE) BMP files are refused with a clear status. PDF and RAW camera files are not images here.
- Direct file links are downloaded as given (no web page is read and robots.txt is not consulted), on ports 80, 443, 8080 and 8443 only; to find the images on a page use the Bulk Image Downloader first and pass its dataset id.
- A server slower than 1 MB/s after an 8 s allowance is stopped (
too_slow); in a very small run a slow failed download may not be retried. - Certificates are verified: a site with an invalid or expired certificate is the status
tls_errorand its file is not read. - AVIF is slow to encode: effort is limited to 0 to 2 (default 2). On Apify's servers effort 3 took 45 seconds for a 4.6 megapixel image against 2 seconds for effort 2, so it is not offered.
- AVIF output is limited by the run's memory to about 50 megapixels (other formats about 90; these are estimates from measured peaks: a 48 megapixel photo to AVIF used 1,056 MB, to WebP 404 MB); WebP to 16,383 px a side. Larger images get
too_many_pixelsoroutput_too_largebefore the file is downloaded further; resize with a smaller source or choose JPEG or PNG. - Animated GIF stays animated only as WebP. JPEG, PNG and AVIF output use the first frame (
framesDroppedsays how many were left out). TIFF with several pages: first page. - CMYK JPEGs are converted to sRGB with their embedded profile; a CMYK sample we compared with Apple's own decoder differed by about 4 levels in the mean red value (24 against 28 of 255). A truncated file that cannot be read is
corrupt_image. - SVG: external references (links, @import, scripts, external entities) are removed before drawing (plain text entities, as Illustrator writes them, are kept); the file is drawn at 2x its own size unless you set max width or height (never above 4,096 px a side without them), and its megapixels are billed on the size it is drawn at.
- Metadata: with "Strip metadata" on (default) EXIF, XMP and the colour profile are removed; the colours are converted to sRGB first. Turn it off to keep them.
- No email addresses or phone numbers are put in error messages or echoed input (they are replaced by "[removed]").
- Files are stored in an unnamed store that expires after your plan's retention period (7 days on most plans); download the ZIP or copy the files before then.
- A conversion that takes longer than its time cap is stopped and reported as
timeout(billed as a link without a converted image plus its reserved megapixels).
FAQ
Is the original file kept? No. Only converted files are stored; the input is read once and deleted from the run's disk.
Can it convert images I already stored in Apify? Yes: pass the id of the key-value store (every image record is converted, INPUT, OUTPUT and STATE skipped) or of a dataset with links.
How do I get under 100 KB per image? Set targetMaxKb to 100 with JPEG, WebP or AVIF; the row says if the target could not be reached (and at which quality).
How is the ZIP made? Apify serves every record whose key starts with converted__ as one ZIP through the signed link in OUTPUT (and in each row).
Related Actors
- Bulk Image Downloader: find and download every image of web pages, then pass the dataset id here.
- Favicon and Brand Assets Extractor.
- PDF Text, OCR and Tables.