PDF to Text

Lift every line of text out of a PDF, then copy it or save it as a .txt file - all inside your browser.

Click to choose a PDF or drop it here
The text of every page is extracted

How the extraction works

This tool opens your PDF with the pdf.js engine, reads the text layer of each page, and reassembles it into readable lines and paragraphs. Characters are grouped back into lines by their position on the page, and a blank line is inserted where the spacing suggests a new paragraph. Everything happens locally in your browser tab - there is no upload and no server, so even sensitive documents stay private.

Page breaks and counts

Tick Mark page breaks to drop a clear --- page 2 --- line between pages, which is handy when you need to know where each page ends. Untick it for one clean run of text. The live character, word and page counts update with your choice, so you can check length before you copy or download. When you are happy, copy the whole block to the clipboard or save it as a .txt file.

Scanned PDFs contain no text

One important limit: a scanned document is a photo of a page, not text. It has no character data to extract, so this tool will return little or nothing. The quick check is to try selecting a sentence in your normal PDF reader - if the cursor will not highlight the words, they are an image and you need OCR to recognise them first.

Related tools

Want an editable Word file instead of raw text? PDF to Word builds a real .docx with paragraphs and headings. Need to combine files before extracting, or trim them down? Merge PDF, Split PDF and Delete PDF Pages handle the shuffling. To count what you have pulled out, paste it into the word counter.

Frequently asked questions

Does extracting text upload my PDF?
No. The text is pulled out inside your browser with the pdf.js engine and never sent anywhere. Your file stays on your device, so it is safe for private or confidential documents.
Why is there no text when I open my scanned PDF?
A scanned PDF is an image of a page, not real text, so there are no characters to extract. You need OCR to convert the picture back into text first. Try selecting a word in your PDF reader - if you cannot highlight it, it is an image.
Can I keep the page breaks?
Yes. Tick "Mark page breaks" to insert a line like "--- page 2 ---" between pages. Untick it to get one continuous flow of text with just blank lines between paragraphs.
What is the difference between this and PDF to Word?
This gives you raw plain text you can paste anywhere. PDF to Word builds an editable .docx file with paragraphs and headings instead. Use this when you only need the words, not formatting.