Extract Text from a PDF, Free
Copy all the text of a PDF into a .txt file
What Extract text does
Extract text copies the text stored in a PDF into a plain text file. Each page starts with a heading, so you can see where a passage came from. It is useful for searching a long report, quoting from a document or pasting text into another tool.
How to use Extract text
- Click Choose files or drop a PDF on the drop area.
- There are no settings. Press Process.
- Read the result line, which gives the number of characters and how many pages had text.
- Download extracted-text.txt.
What the output contains
- A line reading "===== Page N =====" before each page, followed by that page's text in reading order.
- The file is UTF-8 with a byte order mark, so accents and non-Latin letters are kept.
- Reading order follows the order in which the PDF stores its text. On multi-column pages or complex layouts it can differ from what you see.
- Only plain text is saved. Fonts, bold and italics, tables and images are not kept.
- With several PDFs selected, each gives its own file named after the original, such as report-extracted-text.txt. When there is more than one, they come in one zip.
Scanned pages
Scanned pages are pictures, so they contain no text to copy. If the whole file has no text, the tool reports that it is probably scanned. If only some pages are empty, the result line says how many. Run OCR PDF first, then extract text from the searchable result.
Good to know
- For a copy that keeps layout and formatting, use PDF to Word.
- For tables, PDF to Excel splits each line into cells wherever it finds a wide gap between text items.
Common problems
- Words are out of order. The text is read in the order the PDF stores it. Multi-column pages can read across columns. Use PDF to Word if the layout matters.
- A page has no text. It is probably a scan. Run OCR PDF on the file, then extract again.
Limits and errors
- The code sets no fixed file-size or page-count limit. Memory in your browser is the practical limit.
- Files that are not PDFs are skipped with a message. Other failures show "Something went wrong reading or writing that file", with the reason.
Privacy
The text is read and saved by scripts in your browser. This tool does not upload the PDF or its text. The PDF libraries are loaded from cdnjs.cloudflare.com. See the Privacy Policy for details.
Questions and answers
Why is the text in the wrong order?
The tool reads the text in the order the PDF stores it. On multi-column pages, a line can run across columns. Use PDF to Word if you need the layout kept.
Why does a page have no text?
It is probably a scanned picture. Run OCR PDF on the file first, then extract the text from the result.
Does the .txt file keep formatting?
No. It holds plain text only, with a heading before each page. Bold, italics, fonts, tables and images are not kept.
Is the text sent anywhere?
No. This tool reads and saves the text in your browser and does not upload the PDF or its text.
You may also need
See all FirePDF tools · ← Back to Home
