File Conversion API

Every tool on AllFreeConvert.com is available through one HTTP endpoint. Send a multipart/form-data POST and get JSON back with download links.

Endpoint

POST http://allfreeconvert.com/api/process.php

Parameters

FieldDescription
toolTool slug (see the table below), e.g. mp4-to-mp3.
files[]One or more files. Tools like pdf-merge combine them in order.
urlInstead of uploading, a public http(s) link to the file.
targetOutput format for converters, e.g. mp3, png, pdf.
optionsAny option listed for the tool, e.g. bitrate=128k.

Example

Conversions run in a queue, so the upload returns straight away with a job id:

curl -F tool=mp4-to-mp3 -F bitrate=192k -F "files[][email protected]" http://allfreeconvert.com/api/process.php
{ "ok": true, "job": "…", "status": "queued", "status_url": "/api/status.php?job=…" }

Then check status_url every 1–2 seconds. status goes from queued (waiting for a free slot) to processing, then done or error:

curl "/api/status.php?job=…"

{
  "ok": true,
  "status": "done",
  "files": [
    { "name": "video.mp3", "size": 3145728, "url": "/download.php?job=…&file=video.mp3" }
  ]
}

When a job produces several files (for example PDF → JPG), the first entry is a ZIP with everything. Download links expire after 8 hours. Errors return {"ok": false, "error": "…"}. Uploads are rate-limited; too many in a short time returns HTTP 429.

Tool reference

SlugTargetsOptions
video-converter
Video Converter
mp4, webm, mov, avi, mkv, flv, wmv, m4v, 3gp, gif resolution (keep|2160|1080|720|480|360)
quality (18|23|28)
bitrate (320k|256k|192k|128k|96k)
audio-converter
Audio Converter
mp3, wav, ogg, aac, m4a, flac, opus, wma, aiff bitrate (320k|256k|192k|128k|96k|64k)
samplerate (keep|48000|44100|22050)
mp3-converter
MP3 Converter
mp3 bitrate (320k|256k|192k|128k|96k|64k)
samplerate (keep|48000|44100|22050)
mp4-to-mp3
MP4 to MP3
mp3 bitrate (320k|256k|192k|128k|96k|64k)
samplerate (keep|48000|44100|22050)
video-to-mp3
Video to MP3
mp3 bitrate (320k|256k|192k|128k|96k|64k)
samplerate (keep|48000|44100|22050)
mp4-converter
MP4 Converter
mp4, webm, mov, avi, mkv, gif, mp3 resolution (keep|2160|1080|720|480|360)
quality (18|23|28)
bitrate (320k|256k|192k|128k|96k)
mov-to-mp4
MOV to MP4
mp4 resolution (keep|2160|1080|720|480|360)
quality (18|23|28)
bitrate (320k|256k|192k|128k|96k)
mp3-to-ogg
MP3 to OGG
ogg bitrate (320k|256k|192k|128k|96k|64k)
samplerate (keep|48000|44100|22050)
image-converter
Image Converter
jpg, png, webp, gif, bmp, tiff, ico, avif, svg, pdf quality
width
webp-to-png
WEBP to PNG
png quality
width
jfif-to-png
JFIF to PNG
png quality
width
png-to-svg
PNG to SVG
svg svgmode (trace|embed)
threshold
heic-to-jpg
HEIC to JPG
jpg quality
width
heic-to-png
HEIC to PNG
png quality
width
webp-to-jpg
WEBP to JPG
jpg quality
width
svg-converter
SVG Converter
png, jpg, webp, pdf, ico width
pdf-converter
PDF Converter
pdf, docx, jpg, png, txt, epub dpi (72|150|300)
document-converter
Document Converter
any compatible —
ebook-converter
Ebook Converter
epub, mobi, azw3, fb2, pdf, txt —
pdf-to-word
PDF to Word
docx, doc, odt, rtf layout (editable|exact)
pdf-to-jpg
PDF to JPG
jpg, png dpi (72|150|300)
pdf-to-excel
PDF to Excel
— sheets (one|page)
password
bank-statement-pdf-to-excel
Bank Statement PDF to Excel
— password
filldates
pdf-to-epub
PDF to EPUB
epub —
epub-to-pdf
EPUB to PDF
pdf —
heic-to-pdf
HEIC to PDF
— page (fit|a4|letter)
orientation (auto|portrait|landscape)
margin (0|20|40)
combine
docx-to-pdf
DOCX to PDF
pdf —
jpg-to-pdf
JPG to PDF
— page (fit|a4|letter)
orientation (auto|portrait|landscape)
margin (0|20|40)
combine
video-to-gif
Video to GIF
gif fps (5|10|12|15|20|25)
width (keep|800|640|480|320|240)
start
duration
mp4-to-gif
MP4 to GIF
gif fps (5|10|12|15|20|25)
width (keep|800|640|480|320|240)
start
duration
webm-to-gif
WEBM to GIF
gif fps (5|10|12|15|20|25)
width (keep|800|640|480|320|240)
start
duration
apng-to-gif
APNG to GIF
gif fps (5|10|12|15|20|25)
width (keep|800|640|480|320|240)
start
duration
gif-to-mp4
GIF to MP4
mp4 —
gif-to-apng
GIF to APNG
apng —
image-to-gif
Image to GIF
gif quality
width
mov-to-gif
MOV to GIF
gif fps (5|10|12|15|20|25)
width (keep|800|640|480|320|240)
start
duration
avi-to-gif
AVI to GIF
gif fps (5|10|12|15|20|25)
width (keep|800|640|480|320|240)
start
duration
archive-converter
Archive Converter
zip, tar, tar.gz, 7z —
video-compressor
Video Compressor
— level (24|28|32|36)
resolution (keep|1080|720|480|360)
mp3-compressor
MP3 Compressor
— bitrate (128k|96k|64k|48k|32k)
mono
wav-compressor
WAV Compressor
— samplerate (44100|32000|22050|16000|8000)
mono
depth (16|8)
image-compressor
Image Compressor
— quality
maxwidth
jpeg-compressor
JPEG Compressor
— quality
maxwidth
png-compressor
PNG Compressor
— quality
maxwidth
pdf-compressor
PDF Compressor
— level (printer|ebook|screen)
gif-compressor
GIF Compressor
— colors (256|128|64|32)
width
fps
crop-video
Crop Video
— aspect (1:1|16:9|9:16|4:3|4:5|custom)
w
h
x
y
trim-video
Trim Video
— start
end
fast
gif-maker
GIF Maker
— delay
width
loop
resize-image
Resize Image
— mode (px|pct)
width
height
pct
keep
crop-image
Crop Image
— aspect (1:1|16:9|9:16|4:3|3:2|4:5|custom)
w
h
x
y
rotate-image
Rotate Image
— angle (90|180|270|custom)
custom
flip-image
Flip Image
— dir (h|v|both)
image-enlarger
Image Enlarger
— scale (1.5|2|3|4)
sharpen
pdf-to-black-and-white
PDF to Black and White
— mode (gray|bw)
dpi (300|200|150)
password
pdf-merge
PDF Merge
— —
pdf-split
PDF Split
— ranges
flatten-pdf
Flatten PDF
— —
resize-pdf
Resize PDF
— paper (a3|a4|a5|letter|legal)
unlock-pdf
Unlock PDF
— password
rotate-pdf
Rotate PDF
— angle (90|180|270)
pages
protect-pdf
Protect PDF
— password
crop-pdf
Crop PDF
— top
right
bottom
left
organize-pdf
Organize PDF
— order
reverse
extract-image-from-pdf
Extract image from PDF
— —
pdf-page-remover
PDF page remover
— pages
extract-pages-from-pdf
Extract Pages from PDF
— pages
file-converter
File Converter
any compatible —