Image Converter API: WebP, AVIF, HEIC, PNG & JPG avatar

Image Converter API: WebP, AVIF, HEIC, PNG & JPG

Pricing

$2.00 / 1,000 image converteds

Go to Apify Store
Image Converter API: WebP, AVIF, HEIC, PNG & JPG

Image Converter API: WebP, AVIF, HEIC, PNG & JPG

Image converter API for WebP, AVIF, HEIC, PNG, JPEG, TIFF, GIF and BMP (SVG input too). Convert from URLs or base64, with optional resize, EXIF stripping and a SHA-256 manifest. For n8n, Make and AI agents. $0.002 per image.

Pricing

$2.00 / 1,000 image converteds

Rating

0.0

(0)

Developer

Ferrolark

Ferrolark

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Image Convert: PNG, JPG, WebP, AVIF, HEIC & SVG Converter API

Convert batches of images between formats with one API call:

  • Input: PNG, JPEG, WebP, AVIF, HEIC/HEIF (iPhone photos), GIF (first frame), TIFF, BMP and SVG.
  • Output: WebP, AVIF, JPEG, PNG, HEIC, TIFF, GIF or BMP.
  • Optional resize in the same pass: inside, cover, contain or fill.
  • Privacy: EXIF metadata (GPS location, camera serial) is always removed. The ICC color profile is kept so colors stay right.
  • Manifest for every file: input and output format, dimensions, bytes, % saved and SHA-256, plus a ZIP of all outputs.

You can send files as URLs or as base64, which is the easy way to convert n8n or Make binaries without installing ImageMagick or a community node.

Real example

This input converted an iPhone-style HEIC, an AVIF and a transparent PNG to WebP:

{
"imageUrls": [
"https://raw.githubusercontent.com/strukturag/libheif/master/examples/example.heic",
"https://raw.githubusercontent.com/link-u/avif-sample-images/master/kimono.avif",
"https://upload.wikimedia.org/wikipedia/commons/4/47/PNG_transparency_demonstration_1.png"
],
"format": "webp",
"quality": 82
}
  • Run time: 4.1 s on Apify at 1,024 MB.
  • Platform usage: $0.0007.
  • Your cost: 3 images × $0.002 = $0.006.
OutputInputSizeInput bytesOutput bytesSaved
example.webpHEIC1280×854718,114286,22660.1%
kimono.webpAVIF722×102485,44593,436-9.4%
PNG_transparency_demonstration_1.webpPNG (alpha kept)800×600224,56670,38468.7%

AVIF is already more efficient than WebP, so converting it made the file slightly larger. The manifest shows that honestly instead of hiding it. The HEIC had 2 frames; only the first is converted, and you get a warning saying so.

A dataset row:

{
"fileName": "example.webp",
"mimeType": "image/webp",
"bytes": 286226,
"sha256": "f03592b58812f8106f1f88591bc71c8dd5d5077079b4f2de30e5448ea8094532",
"downloadUrl": "https://api.apify.com/v2/key-value-stores/<store-id>/records/example.webp",
"source": "https://raw.githubusercontent.com/strukturag/libheif/master/examples/example.heic",
"inputName": "example.heic",
"inputFormat": "heif",
"inputBytes": 718114,
"inputWidth": 1280,
"inputHeight": 854,
"format": "webp",
"width": 1280,
"height": 854,
"quality": 82,
"savedPercent": 60.1,
"keptOriginal": false
}

Price and limits

  • $0.002 per converted image. The ZIP is free.
  • Files that fail (unreadable, too large, broken URL) are skipped and listed in OUTPUT.errors. They are not charged.
  • Limits:
    • 50 images and 100 MB per run;
    • 50 megapixels per image;
    • animated GIF, WebP and HEIC sequences are converted from their first frame.
  • The Actor stops converting when the next image would exceed your max total charge.

Input

FieldDefaultWhat it does
imageUrlsnonePublic image URLs.
filesnone[{"base64": "...", "name": "photo.heic"}] for n8n and Make binaries. Keep the input under about 9 MB.
formatwebpwebp, avif, jpeg, png, heic, tiff, gif or bmp.
quality82For JPEG, WebP, AVIF and HEIC.
losslessfalseLossless WebP or HEIC.
width, height, fit, allowUpscalenoneOptional resize. Images are never enlarged unless you allow it.
backgroundColor#ffffffFills transparency for JPEG and BMP.
keepColorProfiletrueKeep the ICC profile. EXIF is always stripped.
createZip / createShareableUrltrue / falseZIP bundle and token-free signed links.

For compressing to a target size in KB, use Image Compress & Resize.

Call it from code, n8n or an AI agent

API (synchronous):

curl -X POST "https://api.apify.com/v2/acts/ferrolark~image-convert/run-sync-get-dataset-items?maxTotalChargeUsd=0.1" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"imageUrls": ["https://example.com/photo.heic"], "format": "jpeg"}'

n8n: paste this workflow on the canvas (Ctrl+V). Then add a Header Auth credential with the name Authorization and the value Bearer <your Apify token>, and use it in both HTTP nodes. The second node downloads each converted image as an n8n binary.

{
"name": "Ferrolark image-convert",
"nodes": [
{
"parameters": {},
"name": "When clicking Test workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
0,
0
]
},
{
"parameters": {
"method": "POST",
"url": "https://api.apify.com/v2/acts/ferrolark~image-convert/run-sync-get-dataset-items?maxTotalChargeUsd=0.05",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "{\"imageUrls\": [\"https://raw.githubusercontent.com/strukturag/libheif/master/examples/example.heic\"], \"format\": \"jpeg\"}",
"options": {
"timeout": 300000
}
},
"name": "Run Actor",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
220,
0
]
},
{
"parameters": {
"url": "={{ $json.downloadUrl }}",
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"options": {
"response": {
"response": {
"responseFormat": "file"
}
}
}
},
"name": "Download file",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
440,
0
]
}
],
"connections": {
"When clicking Test workflow": {
"main": [
[
{
"node": "Run Actor",
"type": "main",
"index": 0
}
]
]
},
"Run Actor": {
"main": [
[
{
"node": "Download file",
"type": "main",
"index": 0
}
]
]
}
}
}

To convert binaries that are already in n8n, send them in files as {"base64": "{{ $binary.data.data }}", "name": "{{ $binary.data.fileName }}"}.

Make / Zapier: use the Apify app's "Run Actor" action with ferrolark/image-convert, then download each downloadUrl with the same Authorization header.

AI agents (MCP): add ferrolark/image-convert to the Apify MCP server (https://mcp.apify.com?actors=ferrolark/image-convert).

Use cases

  • Turn iPhone HEIC uploads into JPEG or WebP that every browser and CMS accepts.
  • Convert product photos to WebP or AVIF for faster pages.
  • Rasterize SVG logos to PNG for tools that don't accept SVG.

Troubleshooting

  • "not a readable image": the URL returns HTML (a gallery page or a login wall). Use the direct image URL.
  • The output is larger than the input: the source was already in an efficient format (AVIF, or optimized WebP). Pick another format, or lower quality.
  • Colors look washed out: keep keepColorProfile on for wide-gamut (Display P3) photos.

Limitations

  • No AI upscaling, background removal or RAW camera formats.
  • Animated images are not re-encoded as animations.
  • SVG is rasterized at 2048 px wide; external resources in the SVG are not loaded.

Changelog

  • 1.0 (November 2026): first release. 9 input and 8 output formats, HEIC and SVG input, optional resize, EXIF stripping, ZIP and SHA-256 manifest.

More Ferrolark tools

  • Brand Name Availability Checker: domains, GitHub, npm, PyPI and more in one report.
  • Domain Intelligence Report: WHOIS, DNS, email security, SSL and hosting for any domain.
  • Launch Asset Pack: favicons, PWA icons, OG image and head tags from one logo.
  • Live Deploy QA: meta tags, canonical, robots, OG image and favicon of your deployed routes, with diffs between deploys.
  • Sitemap Delta: new, removed and broken URLs in any sitemap since the last run.
  • RSS Delta: only new RSS, Atom and JSON Feed items, de-duplicated.
  • PDF Merge API: merge PDFs from URLs or base64 with page ranges and a SHA-256 manifest.
  • PDF Split API: split a PDF by page ranges or every N pages, or extract pages, with a ZIP and manifest.
  • Image Compress & Resize: resize images and compress them to a target size in KB, WebP or AVIF.
  • PDF to Image: PDF pages to PNG, JPG or WebP at the DPI you choose.
  • Image to PDF: JPG, PNG, HEIC and WebP images to one PDF, JPEGs embedded without recompression.
  • PDF Compress: smaller PDFs, lossless or with image downsampling; charged only when smaller.
  • HTML to PDF & URL to PDF: web pages or raw HTML to PDF with headless Chrome.
  • Markdown to PDF: Markdown with tables, code and footnotes to a clean PDF.
  • DOCX to PDF: Word, Excel, PowerPoint and ODT to PDF with LibreOffice.
  • Data Convert: CSV, JSON, NDJSON and Excel XLSX in any direction.

Built by Ferrolark.