Skip to main content
Word and Excel API

Automate Office files from your stack.

Convert Word and Excel to PDF and back, merge, split and compare Word, add, update and extract Excel rows, then watermark and password-protect the result. Call the REST API or drop the same actions into Power Automate, Make, n8n or Zapier, with no Office install.

Run it anywhere

Office conversion, on every platform.

Add the Word and Excel actions as native no-code steps, or call the same operations from the REST API. Build it once, then run it everywhere.

One call

Send a Word file, get a PDF back.

  • Consistent shape. Every action takes a Base64 docContent plus JSON options and returns the processed file.
  • Any language. Plain HTTPS with a Basic API key. No SDK required, though samples exist for C#, Java, Python and more.
  • Sync or async. Short jobs return immediately; long jobs return a polling URL you can check until the result is ready.
word-to-pdf.sh
curl -X POST https://api.pdf4me.com/api/v2/ConvertToPdf \
  -H "Authorization: Basic YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "docContent": "<base64 file>",
    "docName": "report.docx"
  }'
How it works

Five steps, same for every operation.

  • Get an API key. Grab a key from the PDF4me dashboard and send it as Authorization: Basic YOUR_API_KEY.
  • Base64 your file. Encode the source .docx, .xlsx or .pdf and put it in the docContent field with a docName.
  • POST to the action. Call the endpoint for the operation you want, for example ConvertToPdf or MergeDocuments, with your JSON options.
  • Get one file back. Every action returns the processed document as a Base64 string in JSON, ready to decode and save.
  • Route the result. Store it, attach it, or pass it to the next step, all in the same flow, with no Office license involved.
.docx & .xlsx Base64 in, Base64 out 50+ input formats
A Word document being converted and processed through the PDF4me Word and Excel API.

Convert and operate on Office files without opening Word or Excel.

Convert

Word and Excel to PDF, and back.

Conversion is the Office API entry point. Document generation from templates is a different product, on document generation.

Word or Excel to PDF

Convert .docx, .xlsx, PowerPoint, HTML, Markdown, images and 50+ formats to PDF. No Office install.

Read the docs

PDF to Word

Turn a PDF back into an editable .docx, keeping layout for downstream review or merge.

Read the docs

PDF to Excel

Extract tables from a PDF into an .xlsx workbook you can sort, filter and load.

Read the docs
Word API

Merge, split, compare and lock .docx files.

Operate on Word files over HTTPS. No Microsoft Word install, no desktop license.

Merge documents

Combine any number of .docx files into one, in array order, with formatting and compliance options.

Read the docs

Split document

Divide a document by pages, sections, headings or custom page ranges into separate files.

Read the docs

Compare documents

Redline two versions with tracked changes, with control over case, tables, footnotes and headers.

Read the docs

Add text watermark

Stamp DRAFT, CONFIDENTIAL or branding text, with font, colour, rotation and transparency control.

Read the docs

Secure document

Apply an open password and restrict editing to read-only, comments-only or form-fields-only.

Read the docs

Replace text

Find-and-replace across a .docx. Table of Contents refresh is a separate Word endpoint in the same pipeline.

Read the docs
Excel API

Read and write spreadsheets, no Excel needed.

Add, update and extract rows, merge workbooks, then password-protect or unlock. Filling an Excel template from JSON is document generation, not this API.

Add rows

Append new rows of data to a worksheet without opening Excel.

Read the docs

Update rows

Overwrite cell values in existing rows by position, straight from your data.

Read the docs

Extract rows

Pull specific rows or ranges out of a workbook to read as structured data.

Read the docs

Merge files

Combine multiple workbooks and worksheets into a single consolidated .xlsx.

Read the docs

Secure workbook

Password-protect an Excel workbook.

Read the docs

Unlock workbook

Remove password protection from an Excel file when you own the password.

Read the docs

Get your documents done.

Build it into your product with the API, automate it with no code, or use the free tools in your browser. No credit card to begin.

Start with a single callcurl -X POST https://api.pdf4me.com/v1/ConvertToPdf

Free tier · No credit card required