Convert images
POST /api/v1/convertConvert between 15 image formats. Response: application/zip.
format is required. Choose one of the 15 supported image formats below.
Developer hub · REST API v1
Seven API tools, a single bearer key, and complete examples in ten languages. Every endpoint returns the finished file directly.
Base URL: https://dropandconvert.com. Use Authorization: Bearer YOUR_API_KEY. These are direct HTTP examples, with no Drop & Convert SDK to install.
# macOS / Linux shell export DROPANDCONVERT_API_KEY='YOUR_API_KEY' # PowerShell 7 $env:DROPANDCONVERT_API_KEY = 'YOUR_API_KEY'
Keep keys in backend environment variables. Do not commit them or embed them in frontend code. Keys expire after one year. Revoke an exposed key immediately in the dashboard. Canceling a free subscription disables API requests; free reactivation restores them. Paid plans are managed through Stripe billing in the dashboard. See API pricing and allowances.
All endpoints accept multipart/form-data with repeated files parts. Do not manually set Content-Type when your HTTP library creates the multipart boundary.
POST /api/v1/convertConvert between 15 image formats. Response: application/zip.
format is required. Choose one of the 15 supported image formats below.
POST /api/v1/optimizeRe-encode and resize without enlarging. Response: application/zip.
Default output: WebP at quality 80. Choose quality and maxWidth for your workflow. A smaller output file is not guaranteed.
Open web tool →POST /api/v1/images-to-pdfCombine images in upload order, one image per page. Response: application/pdf.
One JPEG image per PDF page, fitted to A4 bounds, in upload order. Output is image-only, without searchable text. The format field is ignored.
Open web tool →POST /api/v1/cropExtract a pixel rectangle from each image. Response: application/zip.
Required integer fields: x and y (0–19999), width and height (1–20000). Coordinates begin at the top left after automatic orientation correction. Every rectangle must fit the corresponding image; an out-of-bounds rectangle returns 422. Crop occurs before optional resizing. Default output: PNG.
POST /api/v1/rotateRotate clockwise and optionally mirror horizontally or vertically. Response: application/zip.
rotation: 0, 90, 180, or 270 degrees clockwise (default 90). flip: none, horizontal, or vertical (default none). Mirroring happens after rotation. Set rotation=0 to mirror only. Default output: PNG.
POST /api/v1/grayscaleTurn color images into monochrome images. Response: application/zip.
No extra fields required. Default output: PNG. Optional format, quality, and maxWidth are supported.
Open web tool →POST /api/v1/redactReplace one rectangle with opaque black pixels in JPG, PNG or single-page TIFF images. PNG output, original dimensions, no automatic detection. Response: application/zip.
Required integer fields: x, y (0-19999), width, height (1-20000). Coordinates start at the top left after orientation correction. The same rectangle must fit every image. Only JPG/JPEG, static PNG and single-page TIFF are accepted. Output is PNG only (format=png); maxWidth must be 0 or omitted. Masked pixels are replaced with opaque black; metadata is stripped. No automatic sensitive-data detection. Review each result before sharing. Unsupported or multipage inputs and out-of-bounds rectangles return 422 with no partial download.
| Field | Accepted values | Default |
|---|---|---|
| files | 1–25 image file parts; required | None |
| format | jpg, png, webp, avif, bmp, tiff, gif, ico, tga, ppm, pgm, pbm, pam, pcx, qoi | Required for convert; see each endpoint |
| quality | Integer 40–95; affects lossy encoders | 80 |
| maxWidth | 0 for original width, or integer 100–4096; never enlarges | 0 |
Live format catalog. JPEG/JPG and TIF/TIFF aliases count as one format each.
Loading examples…
Repeat the files field to upload multiple images. The same operation and settings apply to every image. ZIP entries use numbered names such as image-01.png; PDF pages follow upload order. A failed image fails the whole batch. No partial ZIP is returned.
curl --fail-with-body --max-time 110 \ https://dropandconvert.com/api/v1/convert \ -H "Authorization: Bearer $DROPANDCONVERT_API_KEY" \ -F '[email protected]' -F '[email protected]' \ -F 'format=webp' --output images.zip
In Node.js, call form.append('files', blob, filename) for each file. In Python, add more tuples to the files list. In C#, repeat form.Add(new StreamContent(file), "files", filename).
apiKey to your own key; keep the value local and secret.files form-data field, and send.The downloads contain no credentials. OpenAPI can also be imported into clients that support multipart file uploads.
Processing is synchronous. Use a timeout of at least 110 seconds. Conversion errors generally return JSON; rate-limit and infrastructure responses may have an empty or non-JSON body. Always check the HTTP status before saving the response as a file.
{ "error": "A readable explanation of the problem." }| 400 | Invalid or missing fields; correct the request. |
|---|---|
| 401 | Missing, expired, or revoked bearer key. |
| 403 | Subscription inactive; check your dashboard. |
| 408 | Upload or processing timed out; try a smaller batch. |
| 413 | Upload exceeds limits. |
| 422 | Invalid image, unsupported animation, or crop outside image bounds. |
| 429 | Worker busy, global rate limited, or monthly allowance reached. |
| 500 | Processing failure; try fewer files or retry later. |
| 503 | Service or database temporarily unavailable. |
For worker or global rate limits (429) and temporary failures (503), retry after 2, 4, then 8 seconds with a small random delay, up to three retries. A monthly allowance 429 requires a plan change or the next UTC month. Do not retry other 4xx errors without correcting the request. There is no idempotency-key feature; a retry is another request and appears separately in history. Do not assume a Retry-After header is present.
25 images per batch, 10 MB per image, 50 MB total, and 20 megapixels per image. One shared batch at a time and 30 conversion requests per minute globally, across web tools and API users. The processing deadline is 90 seconds. This free release has no uptime guarantee.
Images are automatically oriented, metadata is removed, and resizing preserves proportions. GIF, TIFF and ICO inputs use only the first frame/page/icon. Animated PNG/WebP are rejected. Formats without alpha use a white background. GIF output is static and palette-limited; ICO fits within 256 pixels. Files are returned directly and temporary files are deleted after the response; interrupted jobs are cleaned up after 15–20 minutes while the service runs. Request history retains tool, timestamp, duration and status for 90 days, without uploaded contents or filenames. Privacy details.
Office conversion, PDF input/editing, OCR, webhooks, remote-URL uploads, and official language SDKs are not available in this release.