Get the text out of a PDF, in the right reading order

Copying text out of a PDF usually produces a mess — columns interleaved line by line, headers and footers spliced into the middle of sentences, hyphenated words broken in half.

This reconstructs the reading order before giving you the text, which is the part most extractors skip. You get plain text that you can copy or download as a .txt file, for all pages or just the range you pick.

The reason it's hard is that a PDF doesn't store paragraphs, columns or reading order at all — only instructions to draw fragments of text at particular coordinates. A two-column page contains no notion that it has two columns. Working out that the left column should be read to the bottom before the right column starts is inference, not extraction, and it's where naive tools produce the interleaved nonsense everyone recognises.

Hyphenated line breaks are rejoined, and paragraph boundaries are inferred from line spacing rather than assumed at every line ending. Two options are yours to choose: dropping headers and footers that repeat across pages, and keeping the page layout with spaces, which suits tables and forms better than reflowed paragraphs.

What this does — and what it doesn't

  • This does not produce a Word document. Converting a PDF to an editable .docx with its layout and tables intact needs a commercial layout-reconstruction engine running on a server — the companies that offer it license that technology rather than build it. We'd rather give you clean text than a broken .docx.
  • Scanned documents contain no text to extract. Run OCR on them first.
  • Tables come out as text in reading order rather than as a structured table; the keep-layout option lines columns up with spaces.
  • Column detection is a heuristic. Clear two-column pages come out right, but unusual layouts such as sidebars, captions and magazine pages can be read in the wrong order. There is no Markdown output.

PDF to Text — frequently asked questions

Can you convert my PDF to Word?
Not honestly, so we don't offer it. Reconstructing a PDF's layout as an editable Word document requires a commercial engine — the major online converters license that technology and run it on their servers. What we can do well is give you clean, correctly-ordered plain text, which is what most people actually want from that search.
Why does copying from a PDF reader give me jumbled text?
Because a PDF stores where each fragment of text is drawn, not the order it should be read in. Multi-column layouts have no notion of columns in the file at all. Reconstructing that order is the work this tool does.
It found no text in my document. Why?
It's almost certainly a scan, a picture of a page rather than text, and there is nothing to extract. This page says so and offers to run OCR on it, which recognises the text on your device.
Is my PDF uploaded anywhere?
No. Every operation runs in your browser using JavaScript and WebAssembly — the file never leaves your device. You can verify it: load the page, disconnect from the internet, and the tool still works. There is no upload endpoint to send it to.

Spotted a bug or have a suggestion?

Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.