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.
Related tools
Comparing two versions of a document? Paste both texts into Text Diff on browserutils
How to use PDF to Text
- Drop a PDF. The text is read page by page, with a progress bar for long documents.
- Choose what goes between pages: a blank line, page markers like
--- Page 3 ---, or a form feed character (whatpdftotextwrites). - Optionally type a page range, such as
2-5, to get just those pages. - 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