Skip to content

Word to text

Pull the plain text, HTML or Markdown out of a .docx.

Updated

Add your files

DOCX

How to extract Word text

  1. 1

    Add one or more .docx files. Each becomes its own text file under the same name.

  2. 2

    Choose the Output: Plain text for a .txt, HTML for a page you can open in a browser, or Markdown for a .md.

  3. 3

    Press Extract Word text and download the files. Everything is read in your browser.

  • Use PDF to text when the document is a PDF; it can read scanned pages with OCR as well.
  • Use Text to Word when you are going the other way, from a text or Markdown file to a .docx.

How the document is read

The .docx is opened in your browser and its body read paragraph by paragraph: headings, paragraphs, lists with the numbering Word shows, tables, pictures, links and character formatting, including the manual page breaks between them. Headers and footers, comments and the document properties are not part of the text and are left out. The reading is the same for all three outputs; what differs is how much of it each format can hold.

Text, HTML or Markdown

Plain text is the choice for pasting into another program or feeding to a script: the words in reading order and nothing else. HTML keeps the most, pictures included, and is the file to open in a browser or import into another editor; it is written as a complete page with the file name as its title. Markdown keeps the structure, headings, lists, tables and code, in the form that notes apps and static-site tools read, and two lists that follow each other are separated by an HTML comment so the second does not continue the numbering of the first. A file that is not a valid .docx is reported rather than converted.

Questions about Word to text

What happens to tables and lists in plain text?

A table becomes one line per row with the cells separated by tabs, so it pastes cleanly into a spreadsheet. A list keeps a bullet or its number before each item, indented two spaces per level. Headings become plain lines, a manual page break becomes a form-feed character and a horizontal rule three hyphens. Pictures are dropped.

Are the pictures kept in the HTML?

Yes: each picture is embedded in the page as data, so the single .html file shows them with no other files beside it. The page also carries the headings, lists, tables, links, bold, italic, underline, strikethrough, text colour and size, highlights and alignment the document had. Plain text and Markdown leave pictures out.

Which Markdown does it write?

Headings with # to ####, bold with **, italic with *, inline code with backticks, bullet items with - and numbered items with 1., nested by four spaces, pipe tables with a separator row under the header, fenced code blocks, and --- for a rule or a page break. Links keep their text but not their address, and colours and highlights are not written.

Advertisement