Integrate file conversion into your application. Simple REST API, 50+ formats, instant results.
Converting a file is a 3-step process: upload → convert → download.
# 1. Upload
UPLOAD=$(curl -s -X POST https://www.cococonvert.com/api/upload \
-F "file=@input.png")
FILE_ID=$(echo $UPLOAD | jq -r '.fileId')
FILE_NAME=$(echo $UPLOAD | jq -r '.fileName')
# 2. Convert
CONVERT=$(curl -s -X POST https://www.cococonvert.com/api/convert \
-H "Content-Type: application/json" \
-d "{\"fileId\":\"$FILE_ID\",\"fileName\":\"$FILE_NAME\",\"targetFormat\":\"jpg\"}")
DOWNLOAD_ID=$(echo $CONVERT | jq -r '.downloadId')
# 3. Download
curl -o output.jpg "https://www.cococonvert.com/api/download?id=$DOWNLOAD_ID"/api/uploadUpload a file for conversion
FormData with a `file` field
{ fileId: string, fileName: string, size: number }
curl -X POST https://www.cococonvert.com/api/upload \ -F "file=@photo.png"
/api/convertStart a conversion job
{ fileId: string, fileName: string, targetFormat: string }
{ downloadId: string, outputName: string }
curl -X POST https://www.cococonvert.com/api/convert \
-H "Content-Type: application/json" \
-d '{"fileId":"abc123","fileName":"photo.png","targetFormat":"jpg"}'/api/download?id={downloadId}Download the converted file
None
Binary file with appropriate Content-Type
curl -O https://www.cococonvert.com/api/download?id=abc123
The API supports all the same formats as the web converter — 50+ formats across images, video, audio, documents, spreadsheets, presentations, and more.
View all supported conversions →API access is included with your CocoConvert subscription. The same plan that powers the web converter also powers the API.
5 per day
100 per day
Unlimited
Free tier: 5 conversions per day, 25 MB max file size. No authentication required.
Plus: 100 conversions per day, 100 MB max file size. Sign in with your account.
Pro: Unlimited conversions, 2 GB max file size. Sign in with your account.
Rate limiting: API endpoints are rate-limited per IP to 20 requests/minute for upload and convert, 60 requests/minute for other endpoints.