Image Converter API Reference
Upload an image and convert it to another format. Supports PNG, JPEG, WebP, AVIF, TIFF, GIF as both input and output; SVG is accepted as input only. Maximum input size is 3 MB. Returns the converted image as a base64 string along with dimensions and file size.
Endpoint
/api/image-converterFull URL: https://quickhelp.dev/api/image-converter
Request
Content-Type: application/json. No authentication required for the anonymous free tier (30 req/min per IP).
| Field | Type | Required | Description |
|---|---|---|---|
| image | string | Yes | Base64-encoded image data (no data-URL prefix) |
| from | enum | Yes | Source format of the input image |
| to | enum | Yes | Target format for the converted image |
| quality | default | No | Output quality 1–100, applies to JPEG / WebP / AVIF |
Response
Returns application/json. On error, returns a JSON object with an error string field and an appropriate HTTP status code.
| Field | Type | Description |
|---|---|---|
| image | string | Base64-encoded converted image |
| format | string | — |
| width | number | — |
| height | number | — |
| size_bytes | number | — |
Example
PNG to WebP
curl
curl -X POST https://quickhelp.dev/api/image-converter \
-H 'Content-Type: application/json' \
-d '{"image":"<base64-png>","from":"png","to":"webp","quality":80}'Request body
{
"image": "<base64-png>",
"from": "png",
"to": "webp",
"quality": 80
}Response
{
"image": "<base64-webp>",
"format": "webp",
"width": 800,
"height": 600,
"size_bytes": 24576
}Error codes
| Status | Meaning |
|---|---|
| 200 | Success — result in response body |
| 400 | Bad request — invalid input; error field describes the problem |
| 404 | Tool not found |
| 429 | Rate limit exceeded (30 req/min anonymous, 300 req/min free key) |
| 500 | Internal server error — transient; retry with exponential back-off |
OpenAPI spec
The full OpenAPI 3.1 specification for all tools is available at /openapi.json. Import it into Postman, Insomnia, or any OpenAPI-compatible client to get all endpoints with schema validation automatically.