🧩

PDF to DOCX

Convert a PDF document to an editable DOCX file

POST 10 credits /v1/convert/pdf-to-docx
curl -X POST "https://convert.toolkitapi.io/v1/convert/pdf-to-docx" \
  -H "Content-Type: application/json" \
  -d '{"pdf": "<base64-pdf>", "pages": "1-5"}'
import httpx

resp = httpx.post(
    "https://convert.toolkitapi.io/v1/convert/pdf-to-docx",
    json={"pdf": "<base64-pdf>", "pages": "1-5"},
)
print(resp.json())
const resp = await fetch("https://convert.toolkitapi.io/v1/convert/pdf-to-docx", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
  },
  body: JSON.stringify({"pdf": "<base64-pdf>", "pages": "1-5"}),
});
const data = await resp.json();
console.log(data);
# See curl example
Response 200 OK
{
  "docx": "<base64-docx>",
  "page_count": 5,
  "file_size": 42108,
  "file_url": null,
  "file_name": "output.docx",
  "file_type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
}

Description

Convert a PDF document to an editable DOCX file

How to Use

1

1. POST a JSON body containing the required `pdf` field.

2

2. Use `pages` to limit which pages are converted when working with very long PDFs.

3

3. When object storage is enabled, read `file_url` for a direct download; otherwise decode the Base64 `docx` payload.

4

4. Inspect `page_count` (or equivalent) to confirm the full document was processed.

About This Tool

Convert a PDF into an editable DOCX file. Text, basic layout and embedded images are preserved where the source PDF has extractable text.

Use it when you need to re-edit content originally locked inside a PDF — proposals, contracts, scanned-and-OCR'd reports.

Why Use This Tool

Frequently Asked Questions

Does it preserve formatting?
Text, headings and inline images are preserved. Complex layouts (multi-column, floating shapes) are approximated.
What about scanned PDFs?
Scanned PDFs without a text layer will produce empty DOCX pages — run OCR first.
Is there a page limit?
There's no hard cap, but very long PDFs may queue as async jobs — watch for a `202` response with a `job_id`.

Start using PDF to DOCX now

Get your free API key and make your first request in under a minute.