Skip to content

How to extract the text of a Word document as a TXT file

Convert a .docx to plain text in DocFila. Tables become tab-separated rows and text boxes follow their paragraph. Runs on your device, offline.

Convert in DocFila

The short answer

Choose your .docx file in the Word → Text card in DocFila's Convert hub and save. You get a plain .txt with the document's words in reading order, tables as tab-separated rows and text-box words after their paragraph. It runs on your device.

Where does it run?

On this device, offline. DocFila reads the .docx itself, with no server involved. It takes .docx files; older .doc files are not read by this card.

What is kept, and what changes?

Kept

Changed or lost

What are the steps?

  1. Open Word → Text. In Tools choose Convert and open the Word → Text card, or search for “word to txt”.
  2. Choose the document. Select Choose files to convert and pick your .docx file.
  3. Convert. Start the conversion. If the document contains no text at all, DocFila says so instead of saving an empty file.
  4. Save the text file. Choose Save converted file…. The result has the document's name with .txt.
  5. Use the text. Open it in any editor, paste it into an email or a form, or feed it to a script.

Which options does it offer?

No options. The output is always a UTF-8 plain text file. If you want to keep formatting while changing the file type, convert to PDF with the Word to PDF tool instead.

What are the limits?

Only .docx. A file that is not a real Word document is refused as unsupported, and a damaged file is reported as damaged. A document that holds only pictures, such as a scanned page placed into Word, has no text to extract; DocFila reports that there is none.

When is another route better?

To keep the look, use Word to PDF. If you need the words from a PDF instead, PDF to Text works on a PDF's text layer, and the OCR PDF tool adds one to a scan first. For editing the words in a browser, open the file with Edit Word online.

Questions

Does it keep tables?

Tables are written as rows of text with cells separated by tab characters. That keeps the data in order and lets you paste it into a spreadsheet, but borders and shading are not kept.

What about text in text boxes?

DocFila includes it. The words of a text box are written after the paragraph the box is anchored to, so forms and flyers built from boxes are not returned empty.

Can I convert an old .doc file?

Not with this card, which reads .docx. Open the .doc in the editor, or convert it to PDF through the Word to PDF conversion, which accepts .doc on the DocFila cloud.

Is my document uploaded?

No. The text is read on your own device, so the conversion works offline, and the Word document is never uploaded to DocFila's servers or anywhere else.

Convert it in DocFila

Free to start, no card needed.