Convert any file.
One API call.

DOCX to PDF. Excel to CSV. HTML to Word. 50 free conversions per month.

API key created
Also emailed to you. Keep it secret.

Free tier: 50 conversions/month. No credit card. No watermark.

convert.sh
DOCX to PDF
HTML to DOCX
# Convert a DOCX file to PDF
curl -X POST https://n8n.myaibuffet.com/webhook/pdfapi \
  -H "Content-Type: application/json" \
  -H "x-api-key: pk_your_api_key_here" \
  -d '{
    "file_base64": "UEsDBBQAAAAIAG1...",
    "filename": "invoice.docx",
    "output_format": "pdf"
  }'

# Response:
{
  "success": true,
  "output_base64": "JVBERi0xLjQK...",
  "output_format": "pdf",
  "input_format": "docx",
  "mime_type": "application/pdf",
  "size_bytes": 24310,
  "duration_ms": 1843,
  "usage": { "used": 1, "limit": 50, "plan": "free" }
}
// supported formats

17 input formats. 15 output formats.

Input

docxdocodtrtf xlsxxlsodscsv pptxpptodp htmltxtmd pdf pngjpg
Output
docxdocodtrtf xlsxxlsodscsv pptx htmltxt pdf pngjpg
docx -> pdf
xlsx -> csv
html -> docx
pptx -> pdf
csv -> xlsx
md -> pdf
pdf -> png
html -> pdf
// features

What you get

Fast

Most conversions finish in under 2 seconds. No queue, no waiting.

Auto-detect input

Send a file with its filename and the API detects the format. Or set input_format manually.

Any direction

Documents, spreadsheets, presentations, images, text. Convert between any supported pair.

No watermark

Even on the free tier. Your files, your brand. Nothing added.

Base64 in/out

Send files as base64, get results as base64. Decode and save. No multipart hassle.

Usage tracking

Every response includes your current usage count and limit. No surprises.

// pricing

Simple. Per month.

Free

Starter

$0/mo
  • 50 conversions per month
  • All formats supported
  • No watermark
  • Email support
Sign Up Free
Popular

Pro

$9/mo
  • 1,000 conversions per month
  • Priority processing
  • All formats supported
  • Email support
Upgrade
Volume

Business

$29/mo
  • 5,000 conversions per month
  • Priority processing
  • All formats supported
  • Dedicated support
Contact Us
// api reference

Documentation

POST /webhook/pdfapi

Convert a file between any supported format.

Headers

HeaderValueRequired
Content-Typeapplication/jsonREQUIRED
x-api-keypk_your_keyREQUIRED

Body Parameters

ParamTypeDescription
html or contentstringText/HTML content to convert. Use for text-based input. Max 500KB.
file_base64 or base64stringBase64-encoded file content. Use for binary files (DOCX, XLSX, PPTX, images, etc.)
filenamestringOriginal filename with extension, e.g. "report.docx". Used for format detection.
input_formatstringOverride auto-detected input format. e.g. "docx", "xlsx", "html"
output_formatstringDesired output format. Default: pdf. e.g. "pdf", "docx", "csv", "png"
marginobject{"top": 20, "right": 15, "bottom": 20, "left": 15} in mm. HTML to PDF only.
landscapebooleanLandscape orientation. Default: false. HTML to PDF only.
page_sizestringPage size: Letter, A4, Legal. Default: Letter. HTML to PDF only.

You must provide either html/content or file_base64/base64. If sending a binary file, include filename for auto-detection or set input_format explicitly.

Response

FieldTypeDescription
successbooleanWhether the conversion succeeded
output_base64stringBase64-encoded output file
output_formatstringThe output format produced, e.g. "pdf"
input_formatstringThe detected or specified input format
mime_typestringMIME type of the output file
size_bytesintegerOutput file size in bytes
duration_msintegerConversion time in milliseconds
usageobject{"used": 1, "limit": 50, "plan": "free"}

Error Codes

StatusMeaning
401Missing or invalid API key
400Missing input content, unsupported format, or payload exceeds 500KB
429Usage limit reached for your plan
500Conversion failed (server error)

POST /webhook/pdfapi-signup

Create a free API key. No credit card needed.

signup.sh
curl -X POST https://n8n.myaibuffet.com/webhook/pdfapi-signup \
  -H "Content-Type: application/json" \
  -d '{ "email": "you@example.com" }'

# Response:
{
  "api_key": "pk_aBcDeFgHiJkLmNoPqRsTuVwXyZ012345",
  "plan": "free",
  "usage": { "used": 0, "limit": 50 }
}