ILOVESMTHNG
Free · No auth · CORS enabled

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.

Base URL: https://www.freedoculane.com/api22 endpointsMax file size: 50 MB

Integrate with Claude

1

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.
2

Then just talk to Claude naturally

YouMerge report.pdf and appendix.pdf into one file
Claude✅ Done — merged.pdf saved (3 pages, 142 KB)
YouNow compress photo.jpg to under 200 KB
Claude✅ Compressed photo_compressed.jpg — 187 KB (was 1.2 MB)
YouConvert that CSV to JSON
Claude✅ [{"name":"Alice","age":30}, {"name":"Bob","age":25}]
3

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

POST
/api/merge-pdf

Merge multiple PDFs into one

Fields

files[]Two or more PDF files

Returns: 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
POST
/api/split-pdf

Split a PDF into page ranges

Fields

filePDF file
rangese.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
POST
/api/rotate-pdf

Rotate pages in a PDF

Fields

filePDF file
pagescomma 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
POST
/api/delete-pdf-pages

Delete specific pages from a PDF

Fields

filePDF file
pagespages 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
POST
/api/extract-pdf-pages

Keep only specific pages from a PDF

Fields

filePDF file
pagespages 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
POST
/api/watermark-pdf

Add a text watermark to every page

Fields

filePDF file
textwatermark text

Returns: application/pdf

cURL example

curl -X POST https://www.freedoculane.com/api/watermark-pdf \
  -F "file=@doc.pdf" \
  -F "text=CONFIDENTIAL" \
  -o watermarked.pdf
POST
/api/add-page-numbers

Add page numbers to a PDF

Fields

filePDF file
positionbottom-left | bottom-center | bottom-right

Returns: 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
POST
/api/pdf-to-word

Convert PDF to .docx (text extraction)

Fields

filePDF file

Returns: .docx

cURL example

curl -X POST https://www.freedoculane.com/api/pdf-to-word \
  -F "file=@doc.pdf" \
  -o output.docx
POST
/api/pdf-to-excel

Convert PDF to .xlsx (table extraction)

Fields

filePDF file

Returns: .xlsx

cURL example

curl -X POST https://www.freedoculane.com/api/pdf-to-excel \
  -F "file=@doc.pdf" \
  -o output.xlsx
POST
/api/word-to-pdf

Convert .docx to PDF

Fields

file.docx file

Returns: application/pdf

cURL example

curl -X POST https://www.freedoculane.com/api/word-to-pdf \
  -F "file=@doc.docx" \
  -o output.pdf
POST
/api/excel-to-pdf

Convert .xlsx to PDF

Fields

file.xlsx file

Returns: application/pdf

cURL example

curl -X POST https://www.freedoculane.com/api/excel-to-pdf \
  -F "file=@sheet.xlsx" \
  -o output.pdf
POST
/api/jpg-to-pdf

Convert images (JPG/PNG) to PDF

Fields

files[]One or more image files

Returns: 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

POST
/api/image-compressor

Compress an image (JPG or PNG)

Fields

fileImage file
levellow | 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
POST
/api/image-resizer

Resize an image to specific dimensions

Fields

fileImage file
widthTarget width in px
heightTarget 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
POST
/api/image-converter

Convert image to JPEG, PNG, or WebP

Fields

fileImage file
formatjpeg | 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

POST
/api/base64

Encode or decode Base64

Fields

textString to encode/decode
mode"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"}'
POST
/api/url-encode

URL-encode or decode a string

Fields

textString to process
mode"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"}'
POST
/api/csv-to-json

Convert CSV text to JSON

Fields

textCSV string

Returns: { "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"}'
POST
/api/json-to-csv

Convert JSON array to CSV

Fields

textJSON array string

Returns: { "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}]"}'
POST
/api/json-formatter

Pretty-print / format JSON

Fields

textMinified JSON string

Returns: { "result": "..." }

cURL example

curl -X POST https://www.freedoculane.com/api/json-formatter \
  -H "Content-Type: application/json" \
  -d '{"text":"{\"a\":1}"}'
POST
/api/zip-creator

Create a ZIP archive from files

Fields

files[]Any files to zip

Returns: 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
POST
/api/zip-extractor

Extract a ZIP archive

Fields

file.zip file

Returns: 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