Guide · 4 min read · Updated 2026-08-09

How to Convert PDF to Text

Plain text is the most portable thing you can pull out of a PDF. This guide shows you how to do it in a couple of clicks, and — more usefully — explains what to do when the output is not what you expected.

Drop your file hereor choose a file from your deviceAccepted: PDF

This file never leaves your browser.

Convert your file

Drop a PDF into the tool below. The conversion runs inside this browser tab, so the file is never uploaded to a server and you get the .txt back immediately.

What actually happens during extraction

A PDF does not store paragraphs. It stores instructions like "draw this glyph at this coordinate". A text layer is a list of positioned text runs, and extraction means reading those runs back and rebuilding the reading order from their coordinates.

That is why extracted text sometimes looks slightly different from the page: the extractor groups runs into lines by vertical position, then orders them left to right. Multi-column layouts, footnotes and page headers all live in the same coordinate space as body text, so they come out interleaved with it.

If a PDF was made by exporting from Word, Pages, LaTeX or a browser, it almost certainly has a clean text layer and will extract well.

Steps

  1. 1
    Choose your PDFDrag it onto the drop zone or click to browse. Nothing is transmitted at this point.
  2. 2
    Press ConvertThe text layer of every page is read in order and joined with blank lines between pages.
  3. 3
    Check the previewSkim the preview before downloading. This is the fastest way to spot a scanned PDF or a column-order problem.
  4. 4
    Download the .txtThe file is generated in your browser and saved straight to your downloads folder.

When extraction returns nothing

If you get an error saying there is no text layer, the PDF contains pictures of words rather than words. This is normal for anything produced by a scanner, a fax machine or a phone camera.

No amount of retrying will fix this, because there is genuinely no text in the file to read. You need optical character recognition, which looks at the pixels and guesses the letters.

This site does not do OCR. We would rather tell you that plainly than hand you an empty file — see our guide on scanned PDFs for free tools that do handle it.

Fixing messy output

SymptomCauseWhat to do
Columns are interleaved line by lineTwo-column academic layout read across the pageExtract anyway, then split the columns manually — or try Markdown output, which preserves structure better
Headers and page numbers everywhereRunning headers are ordinary text runsStrip repeated lines with a quick find-and-replace
Words joined togetherThe PDF has no explicit space glyphs, only positioningUnavoidable in some generators; Markdown output often spaces better
Empty result, no errorPages carry only vector artTry PDF to SVG to keep the artwork instead

Frequently Asked Questions

Is my PDF uploaded anywhere?

No. The conversion is JavaScript running in your own browser tab. You can confirm it by opening your browser devtools network panel during a conversion — there is no request carrying your file.

Does it work on a phone?

Yes, as long as the browser is reasonably modern. Very large PDFs are limited by the memory your phone will give the tab, so a few hundred pages on an old device may struggle.

Will formatting be preserved?

No — plain text has no concept of bold, headings or tables by definition. If you want structure preserved, use PDF to Markdown or PDF to HTML instead.

Can it handle a password-protected PDF?

Not if the PDF requires a password to open. Remove the protection in the app that created it first, then convert.

Related Tools

Related Guides