conversion

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

POST/api/image-converter

Full 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).

FieldTypeRequiredDescription
imagestringYesBase64-encoded image data (no data-URL prefix)
fromenumYesSource format of the input image
toenumYesTarget format for the converted image
qualitydefaultNoOutput 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.

FieldTypeDescription
imagestringBase64-encoded converted image
formatstring
widthnumber
heightnumber
size_bytesnumber

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

StatusMeaning
200Success — result in response body
400Bad request — invalid input; error field describes the problem
404Tool not found
429Rate limit exceeded (30 req/min anonymous, 300 req/min free key)
500Internal 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.

We use cookies to serve ads and measure traffic. Cookie policy · Privacy policy