# Image Converter API

> Image Converter transforms images between formats. Convert HEIC from iPhones, modern WebP and AVIF formats, or classic PNG, JPG, GIF, and TIFF. Includes optional resizing and quality control, and paid plans also get the pixel width and height of the converted file.

**Endpoint:** `POST https://api.apiverve.com/v1/imageconverter`  
**Category:** Images  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/imageconverter

## Overview

Image Converter is an image converter API that converts between image formats in one call. Convert HEIC from iPhones, modern WebP and AVIF, PDF and SVG input, or classic PNG, JPG, GIF, TIFF and BMP, and write PNG, JPG, WebP, GIF, TIFF, BMP or PDF. Common jobs are heic to png, heic to jpg, webp to png and avif to jpg.

Powered by ImageMagick, it handles format changes that browsers and simple libraries cannot, which is why it suits processing user uploads, converting Apple HEIC photos for web use, normalising images before storage and producing a single-page PDF from an image. Each result is a temporary download link.

The Free plan converts at the original size with a quality setting for JPG and WebP. Paid plans add a maximum width and height that scale the image with its aspect ratio kept, plus the input and output file sizes, the MIME type, and the converted file's actual pixel dimensions, read from the output itself, so you can confirm a resize without downloading it.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/imageconverter" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@photo.heic" \
  -F "outputFormat=png" \
  -F "quality=90" \
  -F "maxWidth=1920" \
  -F "maxHeight=1080"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `image` | string | Yes | Upload an image file to convert (supported formats: HEIC, HEIF, AVIF, WebP, PNG, JPG, GIF, TIFF, BMP, PDF, SVG) |
| `outputFormat` | string | Yes | Target format. One of: png, jpg, jpeg, webp, gif, tiff, bmp, pdf |
| `quality` | integer | No | Output quality (applies to jpg/webp). default 90. range 1-100 |
| `maxWidth` | integer | No | Maximum width in pixels (maintains aspect ratio). range 1-10000. Premium field |
| `maxHeight` | integer | No | Maximum height in pixels (maintains aspect ratio). range 1-10000. Premium field |

## Response fields

- `id` — string · Unique identifier for the converted image file
- `inputFormat` — string · Original format of the uploaded image file
- `outputFormat` — string · Format of the converted image result
- `inputSize` — number · File size in bytes of the input image · (premium)
- `outputSize` — number · File size in bytes of the output image · (premium)
- `mimeType` — string · MIME type of the converted image file · (premium)
- `expires` — number · Unix timestamp when converted image expires
- `downloadURL` — string · Direct URL to download the converted image file
- `outputWidth` — number · Pixel width of the converted image, read from the output file (omitted for PDF output) · (premium)
- `outputHeight` — number · Pixel height of the converted image, read from the output file (omitted for PDF output) · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
    "inputFormat": "heic",
    "outputFormat": "png",
    "inputSize": 2456789,
    "outputSize": 1834567,
    "mimeType": "image/png",
    "expires": 1707350400000,
    "downloadURL": "https://storage.googleapis.com/apiverve/imageconverter/a1b2c3d4.png",
    "outputWidth": 1280,
    "outputHeight": 960
  },
  "code": 200
}
```

## Use cases

- **Job Site Photo Submissions** — Contractors upload HEIC snapshots from job sites, converting them to standard JPG format through the download URL before attaching them to client progress reports.
- **Vector Logo Rasterization** — To prepare brand assets for presentation decks, marketing portals convert uploaded SVG files into PNG images with defined compression quality.
- **Graphic Design Submissions** — When digital artists submit heavy TIFF illustrations, the review platform converts each upload into WebP format for fast in-browser jury evaluation.
- **Signed Receipt Archiving** — Turn smartphone photos of paper invoices into standardized PDF files before routing expense claims to accounting teams for reimbursement.

## SDKs

- **npm** — `npm install @apiverve/imageconverter` (https://www.npmjs.com/package/@apiverve/imageconverter)
- **PyPI** — `pip install apiverve-imageconverter` (https://pypi.org/project/apiverve-imageconverter/)
- **NuGet** — `dotnet add package APIVerve.API.ImageConverter` (https://www.nuget.org/packages/APIVerve.API.ImageConverter)
- **Source** — https://github.com/apiverve/imageconverter-api

## More

- Full reference: https://docs.apiverve.com/ref/imageconverter
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
