Batch Image Converter & Resizer: WebP, AVIF, PNG & JPEG
Pricing
from $1.36 / 1,000 image converteds
Batch Image Converter & Resizer: WebP, AVIF, PNG & JPEG
Convert and resize images in bulk: image URLs in, WebP, AVIF, PNG or JPEG files out with signed download links. Resize by width, height, fit or percent, set quality, strip metadata, hit a max file size. Direct image files only; no HEIC, SVG or web pages.
Pricing
from $1.36 / 1,000 image converteds
Rating
0.0
(0)
Developer
Data Done Right
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
16 days ago
Last modified
Categories
Features
Share
Use this batch image converter to convert images to WebP, AVIF, PNG or JPEG in bulk from a list of image URLs, and to resize them on the way. Paste direct image links, pick an output format, and get one converted file per image with a signed download link, the size before and after, and a clear status. It is also a bulk image resizer: scale by width, height, fit mode or percent, set the quality, strip EXIF, or ask for a maximum file size.
What it does NOT do (read this first)
- It takes direct links to image files, not web pages. A page URL is reported as failed; it does not find images on pages (use "Download Images from URLs: Bulk Image & File Downloader" for that).
- No HEIC/HEIF, SVG, PDF or RAW input. Readable inputs: JPEG, PNG, WebP, AVIF, GIF, BMP, TIFF. Output is only WebP, AVIF, PNG or JPEG.
- It honours the host's robots.txt and does not log in, use proxies or work around hotlink protection. A 401, 403 or 429 from the host is reported as failed, and a URL that robots.txt disallows is skipped.
- Images above 64 megapixels and files above your source size limit (25 MB by default, 100 MB at most) are refused.
- Resizing is plain resampling: it can enlarge an image but it does not add detail. No AI upscaling, no cropping by subject, no watermarks.
What you get
- One dataset row per URL: signed download link, output format, bytes before and after,
savedPercent, pixel size before and after, quality used,statusand a plain-languagenote. - The converted files in the run's key-value store (kept as long as the run's storage is kept).
- A
SUMMARYrecord with totals, and aFAILEDrecord that lists every URL that failed and why.
What can this image converter do
- Convert JPEG, PNG, WebP, AVIF, GIF, BMP and TIFF sources to WebP, AVIF, PNG or JPEG.
- Resize with
widthand/orheight(fitinsidekeeps the ratio and never enlarges,covercrops to the exact size,containpads to the exact size) or withresizePercent(50 for half, 200 for double). - Quality control: lossy quality 1-100 for WebP, AVIF and JPEG, or
losslessfor WebP and AVIF. PNG is always lossless. - Target file size: set
targetSizeKband the Actor lowers the quality (or the PNG palette) until the file fits. If quality alone cannot do it, turn onshrinkToTargetto also reduce the pixel size. Each row says whether the target was reached (targetMet). - Strip metadata (on by default): removes EXIF, including GPS, after the orientation has been applied to the pixels, so photos are not turned sideways.
- Transparency: kept for WebP, AVIF and PNG; for JPEG it is replaced by your
backgroundColor(white by default). - Animated GIF/WebP to animated WebP keeps every frame. Other formats keep the first frame and say so in
note. - Safe with bad input: one bad URL never stops the run. Private, loopback and cloud-metadata addresses are refused.
How to convert images to WebP in bulk
- Paste the image links in Image URLs, one per line.
- Leave Output format on
webp(or chooseavif,png,jpeg). - Optionally set a Width (for example 1200) and a Quality (75-85 is a good start).
- Run it. Open the dataset, or download the CSV or JSON. Each
urlis a signed link that works without an API token.
How to resize images in bulk
Set width and/or height. With fit: "inside" every image is scaled down to fit the box and keeps its shape; smaller images stay as they are unless allowUpscale is on. For thumbnails of exactly the same size use fit: "cover" (crops from the center) or "contain" (adds the background color), with both width and height set. To scale everything by the same factor use resizePercent.
How to convert PNG to JPEG (or JPEG to PNG) in bulk
Set outputFormat to jpeg or png. Transparent areas of a PNG become your backgroundColor in a JPEG. JPEG to PNG is lossless from the decoded pixels; the file is usually much larger.
How to get images under a maximum file size
Set targetSizeKb (for example 200). For WebP, AVIF and JPEG the highest quality that fits is found by bisection, starting from quality. PNG is reduced to a smaller color palette in steps (256 down to 16 colors) unless lossless is on. If it still does not fit, the row says targetMet: false; turn on shrinkToTarget to also shrink the pixel size (never below 16 px a side).
Input example
{"urls": ["https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png","https://interactive-examples.mdn.mozilla.net/media/cc0-images/grapefruit-slice-332-332.jpg"],"outputFormat": "webp","quality": 80,"width": 600,"stripMetadata": true}
More examples:
{"outputFormat": "jpeg", "quality": 85, "backgroundColor": "#ffffff"}: PNG to JPEG with a white background.{"outputFormat": "avif", "width": 320, "height": 320, "targetSizeKb": 10}: AVIF thumbnails under 10 KB.{"outputFormat": "png", "resizePercent": 50}: half-size lossless PNG.{"outputFormat": "webp", "width": 400, "height": 400, "fit": "cover"}: 400 x 400 square crops.
Input
| Field | Default | What it does |
|---|---|---|
urls (required) | two sample images | Direct image links, one per line |
outputFormat | webp | webp, avif, png or jpeg |
quality | 80 | 1-100 for WebP, AVIF, JPEG (highest quality tried when a size target is set) |
lossless | off | Lossless WebP/AVIF (ignored for JPEG; PNG is always lossless) |
stripMetadata | on | Remove EXIF/GPS and the color profile |
backgroundColor | #ffffff | Replaces transparency in JPEG, pads contain |
width, height | 0 (off) | Box or exact size in px |
fit | inside | inside, cover (needs both sizes), contain (needs both sizes) |
resizePercent | 0 (off) | 1-400; replaces width, height and fit |
allowUpscale | off | Let width/height enlarge small images |
targetSizeKb | 0 (off) | Largest allowed file size in KB (1 KB = 1000 bytes) |
shrinkToTarget | off | Also reduce pixel size to hit the target |
maxImages | 100 | Most images per run (up to 5,000); extra URLs are skipped, not charged |
maxSourceSizeMb | 25 | Skip larger source files (up to 100) |
concurrency | 4 | Images processed in parallel (1-16) |
Output
One dataset row per URL. This row comes from a real local run of the example above (the link shown is the form it takes on the Apify platform, where it also carries a signature):
{"index": 1,"sourceUrl": "https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png","fileName": "PNG_transparency_demonstration_1.webp","url": "https://api.apify.com/v2/key-value-stores/<storeId>/records/PNG_transparency_demonstration_1-1-c2d7093b4cc8.webp?signature=...","format": "webp","originalFormat": "png","originalBytes": 224566,"outputBytes": 46368,"savedPercent": 79.4,"widthBefore": 800,"heightBefore": 600,"widthAfter": 600,"heightAfter": 450,"quality": 80,"targetMet": null,"status": "converted","error": null,"note": "converted png to webp; resized 800x600 to 600x450"}
status:converted(delivered, charged),skipped(duplicate URL,maxImages, robots.txt, spending limit, SVG, address not allowed; not charged) orfailed(download error, not an image, too many pixels; not charged).errorsays why.savedPercentis negative when the output is larger than the source (for example a JPEG photo converted to PNG). You asked for that format, so it is still delivered and charged.targetMetisnullwhen no size target was set, otherwisetrueorfalse.
How much does it cost to convert images
Pay per event: $0.0017 per converted image (event image-converted, $1.70 per 1,000 images), plus the normal Apify platform usage of the run, which is small for typical images. Skipped and failed URLs are free, and there is no start fee.
- 1,000 images: $1.70
- 10,000 images: $17.00
- 100,000 images: $170.00 (run it in batches of up to 5,000 images per run)
Set a maximum spending limit on the run: it stops cleanly when reached and the rest are reported as skipped.
Use cases
- Move a website or shop to WebP or AVIF and cut page weight.
- Make thumbnails of one exact size for a catalogue, app or marketplace.
- Convert PNG screenshots to JPEG for tools that reject transparency or large files.
- Get every image under an upload limit (CMS, email, marketplace) with a size target.
- Add a conversion step to a pipeline: another Actor or an AI agent passes image URLs and reads the signed links from the dataset.
FAQ
Does it convert HEIC (iPhone photos)? No. Use the "HEIC to JPG Converter: Convert HEIC/HEIF to JPG & PNG" Actor first, or send JPEG, PNG, WebP, AVIF, GIF, BMP or TIFF.
Can it take a web page and find the images?
No. Only direct links to image files. A page returns failed with a message that it is a web page.
Will it make my images bigger?
Not by pixel size unless you ask: inside and cover never enlarge, and only allowUpscale or a resizePercent above 100 does. File size can grow, for example when you convert a JPEG photo to PNG; savedPercent then shows a negative number.
What happens to transparency?
It is kept for WebP, AVIF and PNG. JPEG cannot store it, so the transparent areas are filled with backgroundColor.
What happens to a URL that robots.txt disallows? It is skipped with the reason and not charged. If a host's robots.txt cannot be read because of a server error, its images are skipped too rather than guessed.
Is AVIF slow?
AVIF encoding is slower than WebP or JPEG, and a size target means several encodes per image, so very large images with targetSizeKb take longer. Typical web-size images take well under a second each in our local tests.
Use with the Apify API, MCP, n8n and Make
Python:
from apify_client import ApifyClientclient = ApifyClient("<APIFY_TOKEN>")run = client.actor("<username>/batch-image-converter").call(run_input={"urls": ["https://example.com/photo.jpg"],"outputFormat": "webp","width": 1200,})for row in client.dataset(run["defaultDatasetId"]).iterate_items():print(row["status"], row["url"], row["savedPercent"])
JavaScript:
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: '<APIFY_TOKEN>' });const run = await client.actor('<username>/batch-image-converter').call({urls: ['https://example.com/photo.jpg'],outputFormat: 'webp',width: 1200,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map((r) => [r.status, r.url]));
The same input works from the Apify MCP server (an AI agent calls the Actor with a list of image URLs), from n8n and from Make through their Apify modules.
Related tools
- Download Images from URLs: Bulk Image & File Downloader : collect the images from pages first, then convert them here.
- Image Compressor & Resizer: Compress Images in Bulk : shrink images and keep the original format, charged only when the file got smaller.
- Background Remover for Images (rembg, CPU) : cut out the subject and save a transparent PNG or WebP.
- HEIC to JPG Converter: Convert HEIC/HEIF to JPG & PNG : turn iPhone HEIC photos into JPG or PNG first.