This reads the text stored inside a PDF and saves it as a plain .txt file in UTF-8, with one line of the page per line of the file. Fonts, images and layout are dropped; the words remain. It does not recognise text in pictures, so it works on PDFs made from a word processor or a website and refuses a scan that has not been through OCR.
How to use it
- Drop the PDF whose words you want on the page, or click to choose it.
- Click Extract text; the page has no options.
- Download the .txt file and open it in any text editor.
- If you are told no text could be read, run OCR on the PDF and extract again.
What the text file contains
Each line of text on a page becomes a line in the file, top to bottom. Leading and trailing spaces are trimmed and empty lines are removed, so the gaps between paragraphs and the indentation are gone, and nothing marks where one page ends and the next begins.
Text is read across the page, so on a multi-column layout lines that sit side by side can come out on the same line. Tables arrive as words separated by spaces. For rows and columns use PDF to Excel; to keep the look of the document use PDF to Word.
PDF to text, image to text and OCR
Three tools sound alike and do different jobs.
- This tool copies out text that already exists in the PDF. Nothing is recognised or guessed, so the result is exact, and a PDF without stored text gives nothing.
- Image to text takes a photo or screenshot, recognises the characters in it, and returns the words as a .txt file.
- OCR PDF takes a scanned PDF, recognises the characters, and returns the same PDF with a text layer you can search. It needs Premium. After it, this tool can extract the text.
Files that are refused
A scan is refused with a message that names OCR as the next step. A protected PDF, including one that only restricts copying, is refused until you take the protection off with Unlock PDF. A document whose text would exceed 64 MB is refused too; split it and run each part.
Questions
Why does it say no text could be read from my PDF?
The pages are images of text, not text. That is what a scanner or a phone camera produces. Run OCR PDF to add a text layer and extract from that copy.
What is the difference between PDF to text and OCR?
Extraction reads characters the PDF already stores, and is exact. OCR looks at a picture of a page and works out which characters it shows, and can make mistakes. You need OCR only when the PDF has no stored text.
Does it keep paragraphs and line breaks?
It keeps the line breaks of the page and removes blank lines and indentation. Paragraphs are therefore not separated, and a sentence that wrapped in the PDF is still broken across lines in the file.
Why is the extracted text garbled?
Some PDFs draw the right letter shapes without recording which characters they stand for, so the stored text is nonsense even though the page looks fine. Copying from a PDF viewer gives the same result. Running OCR PDF on the file reads the page as a picture and replaces it with recognised text.
Can I get the text with headings and lists intact?
Not from this tool, which outputs plain lines only. PDF to Markdown rebuilds headings, lists and tables; it is a Premium tool that uses an AI model. PDF to HTML keeps text sizes and positions.
Is the text of my document stored anywhere?
The PDF and the extracted .txt are deleted automatically within one hour. Extraction runs on servers with no access to the internet.