PDF Tools
PDF to text.
Pull the text out of a PDF and copy it or save it as a .txt file. The PDF is read in your browser and never uploaded. If the PDF is a scan with no real text, the page says so instead of returning nothing.
How to extract text from a PDF
- Choose a PDF of up to 40 MB and 300 pages.
- Choose whether to add a Page N line before each page.
- Press Extract text.
- Copy the text or download it as a .txt file.
When extraction works
Most PDFs created from Word, Google Docs or a website contain a real text layer. This tool reads that layer, joins the pieces into lines and gives you plain text you can paste anywhere. A quick test: if you can select a word with your cursor in a viewer, the text can be extracted.
A scanned document or a photograph of a page contains only a picture, so there is nothing to extract. The tool tells you when it finds no text rather than returning an empty file. To read a scan, use OCR, which recognises letters from the image, such as the receipt scanner on this site.
Private extraction
The extractor runs in your browser, inside an isolated frame on this page that has no network access. Your file is read and written back by your own device, so it is not uploaded to TNAADO or anyone else, and nothing is stored. The advertising on this page sits outside the frame and cannot see what you choose.
- Reading order for multi-column pages follows the order stored in the file and may need tidying.
- Tables become lines of text rather than rows and columns.
About this PDF to text converter
Most PDFs created from Word, Google Docs or a website contain a real text layer: each word is stored as text with a position on the page. This tool reads that layer with the pdf.js library, groups the pieces into lines, and outputs plain text. It does not guess at pictures of text.
Scanned PDFs
A scan or a photographed document is a picture, so there is no text to extract, and the page tells you when it finds none. To get text from a scan you need OCR. A quick test: if you cannot select a single word with your cursor in a PDF viewer, it has no text layer.
What to expect in the output
- Reading order: lines are rebuilt top to bottom, left to right using each piece's position. Single-column documents come out well. Multi-column pages, sidebars and tables can interleave columns.
- Line breaks: each visual line becomes one line. For flowing paragraphs run the result through the line break remover.
- Hyphenation, headers and footers are kept exactly as they appear on the page.
- Special fonts: a PDF whose fonts map to private code points can extract as garbled characters even though text is selectable.
Limits
Up to 40 MB and 300 pages. Password-protected PDFs stop with an error. The file is read in your browser and the isolated tool frame loads no advertising or analytics scripts.
FAQ
How do I copy text from a PDF I cannot select?
If you cannot select any text, the PDF is an image and needs OCR. If you can select text, choose the file here, press Copy text, and paste it anywhere.
Why is the extracted text in the wrong order?
The tool follows each piece of text by its page position. Two-column layouts, tables and text boxes can interleave. Extract one page at a time with Split PDF if one page is the problem.
Is my PDF uploaded?
No. Extraction happens in your browser.
Source
- pdf.js, Mozilla's PDF rendering and text-extraction library: mozilla.github.io/pdf.js.