Extract text from PDF
Copy the selectable text of a PDF into a plain .txt file, page by page.
Use the tool
PDF files only. Your file stays on this device.
One PDF up to 300 MB. Copies selectable text only: scanned pages need OCR first, and the layout is not kept.
This did not work
Nothing was saved or uploaded. You can choose a file and try again.
Good to know
- This copies only text that is already selectable in the PDF. It reads the text layer and does not recognize text in pictures of pages. Scanned pages need OCR first: run the file throughOCR PDF, then extract the text from the searchable copy. If none of the chosen pages has selectable text, no file is made and a message points you to OCR instead.
- Formatting and layout are not kept. The file holds plain text only: no fonts, sizes, colours, images, or links. Each line of text on the page becomes one line in the file.
- The reading order may differ from what you see. Lines come out in the order the PDF stores them, from the top of the page down. Tables and columns are flattened, so the cells of a table row or the lines of side-by-side columns can run together or follow one another.
- The file is UTF-8 plain text that any text editor opens. Each page starts with a line such as
--- Page 1 of 10 ---, and accented letters and other scripts come out as they are stored in the text layer. A chosen page without selectable text is marked[No selectable text on this page]. - A password-protected PDF, or one whose owner turned off copying text, is not read here. If you know the password or are allowed to change the file, remove the protection with Unlock PDF first.
How to extract text from a PDF
- Choose the PDF from your device, or drop it on the picker above.
- Keep All pages, or choose Selected pages and type pages such as 1-3, 5.
- Press Extract text. Progress is shown page by page, and you can cancel at any time.
- Save the
.txtfile and open it in any text editor.
Everything happens in this browser tab. The PDF and its text stay on your device.