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 can take it as plain text or as Markdown with the headings and lists preserved.

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.

Repeated headers and footers are detected and dropped, hyphenated line breaks are rejoined, and paragraph boundaries are inferred from line spacing rather than assumed at every line ending.

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.

Next steps

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 text or Markdown, 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. Run OCR on it first to generate a text layer, then extract.
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.

All PDF tools