API Documentation
A free REST API for PDF and file processing. No API key, no signup. Works with Claude, ChatGPT, Python, JavaScript — any HTTP client.
Integrate with Claude
Paste directly into any Claude chat
Copy the snippet below and paste it as your first message in any Claude conversation. Claude will immediately understand FreeDoculane and start processing your files — no setup, no refusing.
I want you to use the FreeDoculane API to help me process files.
FreeDoculane (https://www.freedoculane.com) is a free online PDF and file tools platform with a REST API. Here are all the endpoints:
Base URL: https://www.freedoculane.com/api
Auth: pass X-API-Key header (or omit — it works without a key too)
PDF TOOLS — POST with multipart/form-data:
• /api/merge-pdf fields: files[] (2+ PDFs) → merged PDF
• /api/split-pdf fields: file, ranges ("1-2,3-5") → PDF or ZIP
• /api/rotate-pdf fields: file, angle (90/180/270), pages (optional, comma list) → PDF
• /api/delete-pdf-pages fields: file, pages ("2,4") → PDF
• /api/extract-pdf-pages fields: file, pages ("1,3") → PDF
• /api/watermark-pdf fields: file, text → PDF
• /api/add-page-numbers fields: file, position (bottom-left/center/right) → PDF
• /api/pdf-to-word fields: file → .docx
• /api/pdf-to-excel fields: file → .xlsx
• /api/word-to-pdf fields: file (.docx) → PDF
• /api/excel-to-pdf fields: file (.xlsx) → PDF
• /api/jpg-to-pdf fields: files[] (images) → PDF
IMAGE TOOLS — POST with multipart/form-data:
• /api/image-compressor fields: file, level (low/medium/high) → compressed image
• /api/image-resizer fields: file, width, height (optional) → resized image
• /api/image-converter fields: file, format (jpeg/png/webp) → converted image
TEXT TOOLS — POST with Content-Type: application/json:
• /api/base64 body: {"text":"...","mode":"encode"} → {"result":"..."}
• /api/url-encode body: {"text":"...","mode":"encode"} → {"result":"..."}
• /api/csv-to-json body: {"text":"csv string"} → {"result":"..."}
• /api/json-to-csv body: {"text":"json array string"} → {"result":"..."}
• /api/json-formatter body: {"text":"minified json"} → {"result":"..."}
• /api/zip-creator fields: files[] → .zip
• /api/zip-extractor fields: file (.zip) → extracted files
Rules:
- Binary responses (PDF/image/zip): save to disk and tell me the filename
- JSON responses: show me the "result" value directly
- All endpoints return 200 on success; errors return JSON with an "error" field
- All 22 endpoints are free and working
To confirm setup: reply with "FreeDoculane ready ✓ — send me a file and tell me what to do (e.g. compress this PDF, merge these files, convert to Word)." Then wait for me to attach a file.Then just talk to Claude naturally
Advanced: MCP Server (Claude Desktop)
For power users — adds FreeDoculane as a native tool inside Claude Desktop
Add this to your claude_desktop_config.json and restart Claude:
{
"mcpServers": {
"freedoculane": {
"command": "npx",
"args": ["-y", "freedoculane-mcp"]
}
}
}Quick example
# Merge two PDFs
curl -X POST https://www.freedoculane.com/api/merge-pdf \
-F "files=@first.pdf" \
-F "files=@second.pdf" \
-o merged.pdf
# Compress an image
curl -X POST https://www.freedoculane.com/api/image-compressor \
-F "file=@photo.jpg" \
-F "level=high" \
-o compressed.jpg
# Base64 encode (JSON body)
curl -X POST https://www.freedoculane.com/api/base64 \
-H "Content-Type: application/json" \
-d '{"text":"hello world","mode":"encode"}'PDF Tools
/api/merge-pdfMerge multiple PDFs into one
Fields
files[]Two or more PDF filesReturns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/merge-pdf \ -F "files=@a.pdf" \ -F "files=@b.pdf" \ -o merged.pdf
/api/split-pdfSplit a PDF into page ranges
Fields
filePDF filerangese.g. "1-2,3-5"Returns: application/pdf or application/zip
cURL example
curl -X POST https://www.freedoculane.com/api/split-pdf \ -F "file=@doc.pdf" \ -F "ranges=1-2,3" \ -o split.zip
/api/rotate-pdfRotate pages in a PDF
Fields
filePDF filepagescomma list e.g. "1,3" (all if omitted)angle90 | 180 | 270 (default 90)Returns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/rotate-pdf \ -F "file=@doc.pdf" \ -F "angle=180" \ -o rotated.pdf
/api/delete-pdf-pagesDelete specific pages from a PDF
Fields
filePDF filepagespages to remove, e.g. "2,4"Returns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/delete-pdf-pages \ -F "file=@doc.pdf" \ -F "pages=2,4" \ -o edited.pdf
/api/extract-pdf-pagesKeep only specific pages from a PDF
Fields
filePDF filepagespages to keep, e.g. "1,3,5"Returns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/extract-pdf-pages \ -F "file=@doc.pdf" \ -F "pages=1,3" \ -o extracted.pdf
/api/watermark-pdfAdd a text watermark to every page
Fields
filePDF filetextwatermark textReturns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/watermark-pdf \ -F "file=@doc.pdf" \ -F "text=CONFIDENTIAL" \ -o watermarked.pdf
/api/add-page-numbersAdd page numbers to a PDF
Fields
filePDF filepositionbottom-left | bottom-center | bottom-rightReturns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/add-page-numbers \ -F "file=@doc.pdf" \ -F "position=bottom-center" \ -o numbered.pdf
/api/pdf-to-wordConvert PDF to .docx (text extraction)
Fields
filePDF fileReturns: .docx
cURL example
curl -X POST https://www.freedoculane.com/api/pdf-to-word \ -F "file=@doc.pdf" \ -o output.docx
/api/pdf-to-excelConvert PDF to .xlsx (table extraction)
Fields
filePDF fileReturns: .xlsx
cURL example
curl -X POST https://www.freedoculane.com/api/pdf-to-excel \ -F "file=@doc.pdf" \ -o output.xlsx
/api/word-to-pdfConvert .docx to PDF
Fields
file.docx fileReturns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/word-to-pdf \ -F "file=@doc.docx" \ -o output.pdf
/api/excel-to-pdfConvert .xlsx to PDF
Fields
file.xlsx fileReturns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/excel-to-pdf \ -F "file=@sheet.xlsx" \ -o output.pdf
/api/jpg-to-pdfConvert images (JPG/PNG) to PDF
Fields
files[]One or more image filesReturns: application/pdf
cURL example
curl -X POST https://www.freedoculane.com/api/jpg-to-pdf \ -F "files=@photo1.jpg" \ -F "files=@photo2.jpg" \ -o output.pdf
Image Tools
/api/image-compressorCompress an image (JPG or PNG)
Fields
fileImage filelevellow | medium | high (default medium)Returns: Same type as input
cURL example
curl -X POST https://www.freedoculane.com/api/image-compressor \ -F "file=@photo.jpg" \ -F "level=high" \ -o compressed.jpg
/api/image-resizerResize an image to specific dimensions
Fields
fileImage filewidthTarget width in pxheightTarget height in px (optional)Returns: Same type as input
cURL example
curl -X POST https://www.freedoculane.com/api/image-resizer \ -F "file=@photo.jpg" \ -F "width=800" \ -o resized.jpg
/api/image-converterConvert image to JPEG, PNG, or WebP
Fields
fileImage fileformatjpeg | png | webp (default jpeg)Returns: Converted image
cURL example
curl -X POST https://www.freedoculane.com/api/image-converter \ -F "file=@photo.png" \ -F "format=webp" \ -o output.webp
File & Text Tools
/api/base64Encode or decode Base64
Fields
textString to encode/decodemode"encode" | "decode" (default encode)Returns: { "result": "..." }
cURL example
curl -X POST https://www.freedoculane.com/api/base64 \
-H "Content-Type: application/json" \
-d '{"text":"hello world","mode":"encode"}'/api/url-encodeURL-encode or decode a string
Fields
textString to processmode"encode" | "decode" (default encode)Returns: { "result": "..." }
cURL example
curl -X POST https://www.freedoculane.com/api/url-encode \
-H "Content-Type: application/json" \
-d '{"text":"hello world"}'/api/csv-to-jsonConvert CSV text to JSON
Fields
textCSV stringReturns: { "result": "..." }
cURL example
curl -X POST https://www.freedoculane.com/api/csv-to-json \
-H "Content-Type: application/json" \
-d '{"text":"name,age\nAlice,30"}'/api/json-to-csvConvert JSON array to CSV
Fields
textJSON array stringReturns: { "result": "..." }
cURL example
curl -X POST https://www.freedoculane.com/api/json-to-csv \
-H "Content-Type: application/json" \
-d '{"text":"[{\"name\":\"Alice\",\"age\":30}]"}'/api/json-formatterPretty-print / format JSON
Fields
textMinified JSON stringReturns: { "result": "..." }
cURL example
curl -X POST https://www.freedoculane.com/api/json-formatter \
-H "Content-Type: application/json" \
-d '{"text":"{\"a\":1}"}'/api/zip-creatorCreate a ZIP archive from files
Fields
files[]Any files to zipReturns: application/zip
cURL example
curl -X POST https://www.freedoculane.com/api/zip-creator \ -F "files=@a.txt" \ -F "files=@b.pdf" \ -o archive.zip
/api/zip-extractorExtract a ZIP archive
Fields
file.zip fileReturns: Extracted file or ZIP of multiple files
cURL example
curl -X POST https://www.freedoculane.com/api/zip-extractor \ -F "file=@archive.zip" \ -o extracted.zip
Error responses
All errors return JSON with an error field.
// 400 – bad request
{ "error": "Missing required field \"file\"." }
// 413 – file too large
{ "error": "File exceeds the 50 MB limit." }
// 415 – wrong format
{ "error": "report.txt is not a PDF file." }
// 500 – server error
{ "error": "Internal server error." }Need something we don't have?
Open a request on our GitHub or contact us — we add new endpoints regularly.
Request an endpoint