Extract Text From Word in n8n
Extract Text From Word is an n8n node by PDF4me that pulls clean text content out of a .docx file, with options to strip comments, headers, footers, and finalize tracked changes before extraction. Use it for content migration, text mining, or feeding document text into downstream analysis without manual copy-paste.
What this node does
PDF4me: Extract Text From Word reads a .docx file and returns its text content, optionally limited to a page range and cleaned of comments, headers/footers, or unresolved tracked changes. Accepts input via Binary Data, Base64 String, or URL. Ideal for content migration, editorial cleanup, search indexing, and feeding document text into text-mining or analysis pipelines.
Authenticating Your API Request
Every PDF4me node in n8n requires a valid Credential to connect with. Create or select one that holds your PDF4me API key so the workflow can authenticate extraction requests securely.
Important Facts You Should Not Miss

PDF4me Extract Text From Word node parameters panel in n8n
What Parameters Does Extract Text From Word Need?
Required: Input Data Type and Document Name, plus the field matching your chosen input type (Input Binary Field, Base64 Word Content, or Word URL). Start Page Number, End Page Number, Output Binary Field Name, and the three Extraction Options toggles are all optional.
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Input Data Type | Required | Format of the source Word document. Choose Binary Data (from a previous node), Base64 String, or URL. | Binary Data |
| Input Binary Field | Conditional | Name of the binary property on the incoming n8n item that holds the Word file. Required when Input Data Type is Binary Data. | data |
| Base64 Word Content | Conditional | Base64-encoded Word content. Required when Input Data Type is Base64 String. | UEsDBBQAAAAIAA... |
| Word URL | Conditional | Publicly reachable HTTPS URL to the source Word file. Required when Input Data Type is URL. | https://example.com/document.docx |
| Document Name | Required | Filename of the input Word file, including the .docx extension, used for format detection. | document.docx |
| Start Page Number | Optional | First page to include in extraction. Leave unset to start from page 1. | 1 |
| End Page Number | Optional | Last page to include in extraction. Leave unset to extract through the last page. | 3 |
| Remove Comments | Optional | Strips reviewer comments from the extracted text when enabled. | true |
| Remove Header/Footer | Optional | Excludes running headers and footers when enabled, leaving only body content. | true |
| Accept Changes | Optional | Finalizes all tracked changes before extraction when enabled, so text reflects the edited version. | true |
| Output Binary Field Name | Optional | Name of the binary property the output item exposes. Default is data. | data |
Advanced Options
{ "outputDataFormat": "json" }, layered on top of the individual fields above.Output Fields
| Field | Type | What it contains |
|---|---|---|
success | Boolean | True when extraction succeeded. Use to route error-handling branches. |
fileName | String | Generated filename for the extracted content file, typically ending in .json. |
mimeType | String | MIME type of the output, typically application/json or text/plain. |
fileSize | Number | Size of the extracted content file in bytes. |
docName | String | Original filename of the input Word document, kept for audit and tracking. |
message | String | Human-readable status message for the extraction result. |
Binary (data) | Binary | The extracted text content under Output Binary Field Name (default data). Pass into a downstream node to read or store the text. |
How Do I Set Up Extract Text From Word in n8n?
- Add PDF4me to your n8n workflow and choose the Extract Text From Word action.
- In Credential to connect with, select your PDF4me credential or click Create New Credential and paste your API key.
- Set Input Data Type to Binary Data (default), Base64 String, or URL and supply the matching source field.
- Set Document Name with the
.docxextension. - Optionally set Start Page Number and End Page Number to limit extraction to a page range.
- Set Remove Comments, Remove Header/Footer, and Accept Changes as needed for a clean or edited-version extraction.
- Execute the node and route the extracted text into your content pipeline, search index, or analysis workflow.
Typical Setups
Workflow ExamplesCommon n8n workflow patterns using Extract Text From Word.
- A Google Drive trigger fires when a legacy Word document is added to a migration folder.
- PDF4me Extract Text From Word runs with Remove Header/Footer and Remove Comments enabled for a clean body-only extraction.
- The extracted text is posted to a headless CMS as a new content entry.
- A reviewed manuscript with tracked changes and comments is uploaded via a form.
- PDF4me Extract Text From Word runs with Accept Changes and Remove Comments enabled for a clean final version.
- The finalized text is sent to a copy-editing or publishing pipeline.
- A Loop Over Items node iterates Word documents from a SharePoint document library.
- PDF4me Extract Text From Word runs on each file with default extraction options.
- The extracted text is indexed into a search engine such as Elasticsearch or Algolia.
- A workflow needs only the executive summary from a long report.
- PDF4me Extract Text From Word runs with Start Page Number 1 and End Page Number 2 to limit extraction to the summary pages.
- The extracted summary text is sent into a text-summarization or analysis step.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Extract Text From Word |
| Input Data Type | Binary Data |
| Input Binary Field | data |
| Document Name | document.docx |
| Start Page Number | 1 (optional) |
| End Page Number | (optional, defaults to last page) |
| Remove Comments | true |
| Remove Header/Footer | true |
| Accept Changes | true |
| Credentials | PDF4me API credential |