Use synchronous endpoints when your app needs converted files in the same request. Convertly handles upload intake, format validation, resizing, compression, optional storage records, and download URL generation. For larger batches or long-running work, use Async Jobs.Documentation Index
Fetch the complete documentation index at: https://docs.convertly.sh/llms.txt
Use this file to discover all available pages before exploring further.
Convert
Change the output format, resize images, normalize orientation, and control output quality.
Compress
Keep the file format compatible while reducing size by quality or target byte size.
When to use it
Use synchronous conversion for profile uploads, asset optimization, document export tools, admin dashboards, and user-facing forms where the file count is modest and the user is waiting for the result. If your user can leave the page, if the file is large, or if you are processing many files at once, prefer async jobs. Jobs return ajobId immediately and let Convertly workers finish the media processing in the background.
Convert files
POST /api/convert accepts one or more files fields and conversion settings.
mono=true only when you want the older black-and-transparent tracing behavior:
Compress files
POST /api/compress keeps the output format compatible with the original file.
Per-file settings
When you upload multiple files, you can either send one setting for the full batch or JSON arrays with one value per file. Convertly validates that every uploaded file has matching settings before processing starts. For example, if you upload two files and sendformats, compressions, or monos, each array must contain two values.
Supported output formats
jpg, png, webp, avif, tiff, gif, heif, svg, pdf, mp4, webm, mov, mp3, wav, ogg, m4a, flac, zip, tar, tgz, 7z, rar, gz, bz2, xz.
Resize modes
original, website, email, instagram, linkedin, ecommerce, square, width, height.
SVG tracing
Whenformat=svg, Convertly traces raster images into layered vector paths. Color is preserved by default. Use mono=true or per-file monos=[true,false] for monochrome tracing.
Response fields
| Field | Description |
|---|---|
filename | Converted or compressed output filename. |
originalSize | Input file size in bytes. |
finalSize | Output file size in bytes. |
savedPercent | Size reduction percentage. |
mimeType | Output MIME type. |
downloadUrl | Data URL or signed storage URL for the generated file. |
storedFileId | Stored file ID when the user is authenticated and the file is saved. |
Storage behavior
API-key requests return downloadable results without saving files by default. AddsaveToStorage=true when your product needs Convertly to persist uploads and outputs.