Skip to content

PDF to Text

Copy all the text out of a PDF as plain text, page by page.

Drop a file here

or paste with ⌘V / Ctrl V

One PDF. Text is pulled from the PDF’s text layer, page by page.

Your file is processed in this tab and isn’t uploaded to our servers.

Comparing two versions of a document? Paste both texts into Text Diff on browserutils

How to use PDF to Text

  1. Drop a PDF. The text is read page by page, with a progress bar for long documents.
  2. Choose what goes between pages: a blank line, page markers like --- Page 3 ---, or a form feed character (what pdftotext writes).
  3. Optionally type a page range, such as 2-5, to get just those pages.
  4. Click Copy text or Download .txt. Word and character counts update as you change the range.

Features

  • Reads the PDF’s text layer with pdf.js, the engine Firefox uses to show PDFs.
  • Rebuilds lines and paragraph breaks from where text sits on the page, and adds spaces where words were placed apart rather than separated by a space character.
  • Flags pages with no text layer (usually scans), so you know why they came out empty.
  • Page markers or form feeds between pages, for feeding the text into scripts, spreadsheets or AI tools.
  • Live word and character counts for the selected pages.

About PDF to Text

A PDF doesn’t store paragraphs. It stores positioned runs of glyphs: draw “Invoice” at this point in this font, draw “total” over there. Getting plain text back means reading those runs and inferring where lines break and where spaces belong. This tool uses pdf.js to read the runs, then starts a new line when the vertical position changes, a new paragraph when the gap is bigger than a line, and adds a space when two runs on one line sit apart.

Text comes out in the order it was written into the file. For most documents that’s reading order. Multi-column layouts, tables and forms can come out in a different order, because the PDF producer may have written them cell by cell or column by column. Ligatures and special characters depend on the fonts carrying a proper character map; when they don’t, letters can come out wrong, and no extractor can fix that.

Scanned PDFs are pictures of pages with no text layer, so there’s nothing to extract. Those need OCR (optical character recognition), which this hub doesn’t offer yet. Page-level flags tell you which pages are affected.

PDF to Text specs

Runs
In this browser tab
Built on
pdf-lib (writing PDFs) and pdf.js (reading text)
Cost
Free, no account needed
Browsers
Current Chrome, Edge, Firefox and Safari
Last updated
November 27, 2026
Part of
14 free tools on docutils.dev
Output
Plain text (.txt, UTF-8), copy or download
Page separators
Blank line, page markers, or form feed
Scanned pages
Detected and flagged; no OCR

Questions

How do I copy all the text from a PDF?
Drop the PDF here and click Copy text. Every page’s text is joined in order, with a blank line or a page marker between pages.
Why is the extracted text empty?
The PDF is almost certainly a scan or a photo of a document: its pages are images with no text layer. Extracting text from those needs OCR.
Why are words run together or split oddly?
Some PDFs place every word or letter separately without space characters. The tool adds spaces based on the gaps between runs, which works for most files; unusual fonts or tight kerning can still trip it up.
Does it keep tables and formatting?
No, the output is plain text: no fonts, bold or table cells. Table rows usually come out as lines with the cells separated by spaces.
Can I extract text from a password-protected PDF?
Remove the password first with Unlock PDF (you need to know it), then drop the unlocked copy here.

More in Convert to and from PDF

All 4 convert to and from pdf