Bulk Image Compressor & Converter — WebP, AVIF, JPEG, PNG
Compress and convert images in bulk from URLs: WebP, AVIF, JPEG (mozjpeg) or PNG, resize to max width/height, set quality, strip EXIF, fix rotation. Each image gets a public download link and the bytes saved. Pay per image.
Run it on Apify →Paste a list of image URLs and get back lighter, web-ready images with a public download link for each, plus the exact bytes saved. Convert to WebP, AVIF, JPEG (mozjpeg) or PNG, resize to a maximum width/height, choose the quality, strip EXIF/GPS data. Powered by libvips (sharp), the fastest image library for Node.js.
Features
- Formats: WebP, AVIF, JPEG (progressive, mozjpeg), PNG (palette quantization or lossless), or keep the source format and only compress.
- Input: JPEG, PNG, WebP, AVIF, GIF (animated GIF → animated WebP), TIFF, SVG.
- Resize: max width and/or height; inside (keep ratio), cover (crop), contain (pad with a background color) or fill; no upscaling unless you allow it.
- Clean output: EXIF orientation applied (no sideways phone photos), metadata and GPS location removed by default, transparency flattened on a color of your choice for JPEG.
- Report: source and output format, dimensions, size in bytes and % saved for every image.
- Custom file names with
{ "url": "...", "name": "hero-banner" }.
What it is for
- Core Web Vitals / PageSpeed: convert a site's or a store's images to WebP or AVIF and cut page weight by 50-90%.
- E-commerce catalogs: normalize supplier product photos to one size and format before importing them into Shopify, WooCommerce or a PIM.
- Scraping pipelines: shrink images collected by another Actor before storing them.
- Privacy: remove GPS coordinates and camera data from photos before publishing.
- No-code automation: call it from Make, Zapier or n8n and get the new image links back.
Input example
{
"imageUrls": [
"https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
{ "url": "https://example.com/images/banner.jpg", "name": "hero-banner" }
],
"format": "webp",
"quality": 80,
"maxWidth": 1200
}
imageUrls— links, or objects withurlandname.format—webp(default),avif,jpeg,pngororiginal.quality,lossless,maxWidth,maxHeight,fit,allowUpscale,keepMetadata,background— conversion options.maxFileSizeMb,maxResults— limits;maxResultscaps the cost.
Output example
One dataset row per image; the files are in the run's key-value store.
{
"index": 1,
"url": "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png",
"name": null,
"outputUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/img-00001-PNG_transparency_demonstration_1.webp?signature=<signature>",
"key": "img-00001-PNG_transparency_demonstration_1.webp",
"format": "webp",
"originalFormat": "png",
"originalWidth": 800,
"originalHeight": 600,
"width": 400,
"height": 300,
"originalBytes": 224566,
"outputBytes": 28518,
"savedPercent": 87.3,
"error": null
}
(Real result for that image with maxWidth: 400.)
Good to know
- An image that cannot be downloaded (broken link, login required, blocked), a link that returns a web page instead of an image, or a file that is not an image returns a row with an
errormessage and is not charged. - Downloads use plain HTTP requests with the Actor's own User-Agent (
OpenRegistry-ImageCompressor) and respectrobots.txt; no browser imitation, no proxies. Process images you own or are allowed to reuse. - Links are signed, so they open without an Apify token even when your storages are private. They stay valid as long as the run's storage is kept (7 days on the free plan for unnamed storages); download the files if you need them longer.
- AVIF gives the smallest files but encodes more slowly; give the run more memory for large batches of big photos.
Pricing
$0.001 per image ($1 per 1,000 images). Failed images are free. Set a maximum charge per run in the Apify console and the Actor stops cleanly when it is reached.
Open Bulk Image Compressor & Converter on Apify →