Convert PDF to Editable DOCX via API
Convert PDF documents to fully editable Microsoft Word DOCX format via REST API. Powered by LibreOffice for accurate layout preservation. Automate document conversion pipelines with Python, Node.js, or n8n.
# Convert PDF to editable DOCX
curl -X POST \
https://api.convertfilefast.com/v2/convert/pdf-to-docx \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@document.pdf" \
--output document.docx
# HTTP 200 OK — Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.documentAdvantages
Why use our API?
Complete and reliable solution for integration in any tech stack.
Editable Word Output
Receive DOCX files that open directly in Microsoft Word, Google Docs, and LibreOffice for immediate editing.
Layout Preservation
Powered by LibreOffice for accurate text, table, and formatting preservation from the original PDF.
Simple File Upload
Upload your PDF as multipart/form-data and receive DOCX in response. No configuration needed.
Automation Pipelines
Build document processing workflows that convert archived PDFs to editable Word files at scale.
n8n & Automation Ready
Trigger PDF to DOCX conversion from any n8n node — Gmail, Google Drive, webhooks, and more.
Zero Storage
PDF files are converted in memory and deleted immediately. Your documents are never stored on our servers.
How it works
4 steps to convert application/pdf to application/vnd.openxmlformats-officedocument.wordprocessingml.document
- 1
Create an API key
Sign up at convertfilefast.com/signup and copy your cff_ API key from the dashboard. The free tier includes 10 conversions per month.
- 2
POST the PDF to the endpoint
Send a multipart/form-data POST to https://api.convertfilefast.com/v2/convert/pdf-to-docx with header X-API-Key: cff_your_key and either a file field (upload) or url field (public URL).
- 3
Receive the DOCX file
The response body is the converted DOCX, streamed back with the appropriate Content-Disposition filename. Save it to disk or forward it to the next step in your pipeline.
- 4
Or invoke via MCP for AI agents
Add the MCP server to Claude, Cursor, or any MCP-compatible client with the URL https://mcp.convertfilefast.com/mcp. Then call convert_file({ target_format: 'docx', source_url: '...' }) as a single tool call — no HTTP client needed.
Or call this from Claude, Cursor, or any MCP client
Convert File Fast ships a native Model Context Protocol server. Give this conversion to an AI agent as a single tool call — no HTTP client, no binary handling, per-user API keys.
npx -y convertfilefast-mcpconvert_file({ target_format: "docx", source_url: "https://example.com/report.pdf" })Compared with
PDF-to-DOCX conversion — Convert File Fast vs alternatives
| Product | Native MCP | Free tier | Price |
|---|---|---|---|
| Convert File Fast | Yes | 10/month | $0.004/conv from $4 |
| Smallpdf | No | 2/day (unregistered) | $9/mo Pro |
| iLovePDF | No | Rate-limited | $7/mo Premium |
| Adobe Acrobat Online | No | Limited trials | $19.99/mo Acrobat Standard |
| CloudConvert | No | 25 conv-min | From $0.01/min |
FAQ
Frequently Asked Questions
How accurate is the layout preservation from PDF to DOCX?
Conversion runs on LibreOffice, which reconstructs paragraphs, headings, tables and inline images. Text, table and heading structure are preserved for the vast majority of PDFs. Complex multi-column layouts and heavily formatted invoices may need light manual cleanup in Word.
What happens if my PDF is scanned or image-based?
This endpoint does not perform OCR. If the PDF has no embedded text (scanned images), the resulting DOCX will contain images without extractable text. For OCR workflows, extract text with the pdf-to-text endpoint against a searchable PDF first.
How do I call this from an AI agent like Claude or Cursor?
Add the ConvertFileFast MCP server to your client with the URL https://mcp.convertfilefast.com/mcp and your API key. The agent then calls convert_file({ target_format: 'docx', source_url: '...' }) as a single tool invocation, without touching HTTP or binary payloads.
Are my PDF files stored on your servers?
No. Files are processed in memory and deleted immediately after the converted DOCX is streamed back. No persistent storage, no training, no third-party sharing.
What is the maximum file size?
Individual uploads are limited to 100 MB. If your PDF is larger, split it into chunks with the pdf/split endpoint and convert each part.
How is pricing calculated?
Each conversion counts as one unit against your monthly quota. The free plan includes 10 conversions per month. Prepaid credit packs start at $4 for 1,000 conversions ($0.004 each). Subscription plans start at $9/month for 5,000 conversions.
Start Converting PDF to DOCX
Get your API key and convert PDF files to editable DOCX in seconds. Free plan includes 10 conversions per month.
No credit card. 10 free conversions on Free plan.