Image Conversion API — Free Tier + Pay-As-You-Go
Convert between JPG, PNG, WebP, AVIF, HEIC, TIFF, GIF, BMP, and 41 more image formats. Sharp-backed, EXIF-aware, ICC-preserving.
What it does
The Image Conversion API supports 49 image formats with primary processing via libvips (through Sharp) and ImageMagick fallback for niche legacy formats such as PSD, EXR, XCF, and PCX. Conversion preserves ICC color profiles by default, can flatten or retain alpha channels, and exposes Sharp's full parameter surface: quality, compression level, chroma subsampling, progressive/interlaced encoding, lossless mode, effort level (for AVIF), JPEG XL distance, and per-format codec choice (mozjpeg vs libjpeg, libwebp lossless vs lossy, libaom vs libavif). HEIC, HEIF, and HEIF-sequence inputs from iOS devices decode natively via libheif, including images with multiple sub-images such as Live Photos, Depth Maps, and Burst Mode captures.
Camera RAW (CR2, CR3, NEF, ARW, DNG, ORF, RAF, RW2) decodes via libraw with optional Adobe DNG-camera-profile application before piping into the standard Sharp pipeline for white balance, exposure, and color matrix correction. The endpoint runs in under 500 ms for typical phone-camera JPEGs and supports batch jobs that group up to 200 inputs into a single ZIP output with manifest. EXIF rotation is auto-corrected so portrait iOS photos no longer arrive sideways downstream; pass `respectExifOrientation=false` to preserve the original orientation flag instead.
The API also handles the inverse case — stripping EXIF from outbound images for privacy-sensitive workflows where camera-make, lens, and GPS coordinates should be scrubbed before public delivery. JPEG XL outputs are supported on the Business tier for next-generation compression that beats AVIF on graphics-heavy images.
Supported formats
Source formats (32)
- jpg
- jpeg
- png
- webp
- avif
- heic
- heif
- tiff
- tif
- gif
- bmp
- ico
- svg
- psd
- raw
- cr2
- cr3
- nef
- arw
- dng
- orf
- raf
- rw2
- tga
- pbm
- pgm
- ppm
- exr
- hdr
- jp2
- jxr
- jxl
Target formats (11)
- jpg
- png
- webp
- avif
- tiff
- gif
- bmp
- ico
- svg
- jp2
- heif
Quick start
All three SDK languages show the same conversion: a single POST to /v1/convert with your API key in the X-Api-Key header.
curl -X POST https://api.convertintomp4.com/v1/convert \
-H "X-Api-Key: ck_your_api_key" \
-F "file=@input.heic" \
-F "target=jpg"
-F "quality=90"import { ConvertIntoMP4 } from "@convertintomp4/sdk";
import fs from "node:fs";
const client = new ConvertIntoMP4({ apiKey: process.env.CIM4_API_KEY });
const job = await client.convert({
file: fs.createReadStream("input.heic"),
target: "jpg",
});
const result = await client.waitForJob(job.id);
console.log("Output URL:", result.outputUrl);from convertintomp4 import Client
client = Client(api_key="ck_your_api_key")
with open("input.heic", "rb") as f:
job = client.convert(file=f, target="jpg")
result = client.wait_for_job(job.id)
print("Output URL:", result.output_url)Features
- 49 image formats including iOS HEIC/HEIF and Camera RAW
- Sharp + ImageMagick + libraw pipeline
- EXIF auto-rotation, ICC profile preservation
- Per-job quality, progressive, chroma subsampling, alpha handling
- Lossless and lossy AVIF, WebP, JPEG XL output
- Batch jobs — up to 200 images → single ZIP
- Sub-500 ms typical latency for phone-camera JPEGs
Pricing
From $9.99/mo (Pro) or $24.99/mo (Business) — or pay-as-you-go on the API plan.
Free tier: 5 conversions/day, 100 MB file size, no API key required (IP-gated). Pro $9.99/mo: 100/day (2,000/month), 2 GB files. Business $24.99/mo: 1,000/day (20,000/month), 10 GB files, GPU encoding, dedicated support.
See full pricing breakdown →Built for production
99.9% uptime SLA
Multi-region failover, transparent status page, 60-second response-time guarantee on Business.
Encryption + auto-delete
TLS 1.2+ in transit, AES-256 at rest. Files deleted after 1h / 24h / 7d depending on plan, or instantly via DELETE endpoint. See the security page.
~7s median latency
Most sub-100 MB jobs complete in 6-9 seconds. Webhook-driven async for heavier workloads; waitForJob for synchronous flows.
Frequently Asked Questions
Does the API decode iPhone HEIC photos?
Yes. HEIC, HEIF, and HEIF-sequence inputs decode natively via libheif. Live Photo still frames are extracted automatically; pass `livePhotoFrame=key` to choose between primary, before, or after frames.
Are EXIF and ICC profiles preserved?
By default, EXIF orientation is applied to the pixel data (rotated correctly) and the EXIF block is stripped. ICC profiles convert losslessly into the target color space. Pass `keepExif=true` to retain the EXIF block on the output.
What's the difference between AVIF lossless and lossy via the API?
Pass `lossless=true` for AVIF — typically ~30% smaller than PNG with bit-exact fidelity. Lossy AVIF accepts `quality` (1-100) and `effort` (1-9, higher = slower + smaller). Default effort 4 balances speed and size.
Can I convert RAW camera files?
Yes. Canon CR2/CR3, Nikon NEF, Sony ARW, Adobe DNG, Olympus ORF, Fuji RAF, and Panasonic RW2 all decode via libraw. The image API outputs JPEG, PNG, TIFF, or WebP after demosaicing.
How do I batch-convert a folder of images?
POST a multipart/form-data request with multiple `file` fields and set `batch=true`. The job response includes a single ZIP URL containing all converted images plus a manifest.json mapping inputs to outputs.
Related APIs
- File Conversion APIOne unified file conversion API for video, audio, image, document, ebook, archive, and font formats — 255 formats, 2,290+ conversion pairs.
- Convert APIProduction-grade file conversion API with 9 language SDKs, async webhooks, and cloud-to-cloud workflows. Free tier available.
- Media Conversion APIVideo and audio conversion API in one endpoint. 27 video + 21 audio formats, FFmpeg-backed, GPU-accelerated.
Or browse the full catalogue of 23 API products →
Get an API key
Start integrating the Image Conversion API in five minutes. Read the docs, grab a key, and ship your first conversion before the trial coffee cools.