Extract Text from PDF Online: Copy Text Out of Any PDF (Free, No Upload)
Copying from a PDF usually gives broken lines, split words and page numbers in the middle of sentences. This tool pulls the text out of the whole PDF, joins lines back into paragraphs, fixes hyphenated words and removes repeated headers and footers. Everything runs on your device.
- PriceFree, no login or sign-up needed
- Your dataProcessed in your browser, never uploaded
- Works onPhone, tablet or computer, any modern browser
- Made byDr. Muhammad Aammar Tufail, Codanics
- Published17 November 2026
- Last updated16 November 2026
📚 How to cite this tool
This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.
Tufail, M. A. (2026). Extract text from PDF [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/extract-text-from-pdf/
In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)
The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 17 November 2026.
How to use the extract text from pdf
- Click Select PDF or drop a PDF on the box. An example three-page paper is loaded so you can see the result first.
- Optionally type the pages you want, for example
2-5. Leave it empty to read every page. - Choose Join lines into paragraphs for clean text, or Keep the original lines for poems, tables and code.
- Click Extract text. Copy the text, download it as a .txt file, or send it to the word counter.
Why not just copy and paste?
PDFs store text as positioned pieces, not as paragraphs. Copying from a PDF viewer therefore gives a line break at the end of every printed line, words split with hyphens (“manage-
ment”), and running headers and page numbers in the middle of sentences. This tool reads the text layer with Mozilla’s open-source pdf.js library and cleans it up:
- Paragraphs: lines are joined unless there is a larger gap, a short line ending a sentence, a change of font size (a heading) or a list item.
- Hyphens: a word split across two lines is joined again when the next line starts with a lowercase letter. Real hyphens such as “drought-tolerant” in the middle of a line are kept.
- Headers and footers: lines at the top or bottom of the page that repeat on at least half of the pages (ignoring numbers), and lone page numbers, are removed.
What it can’t do
- Scanned PDFs are pictures of pages and have no text layer. The tool tells you which pages have no text; those need OCR (optical character recognition) software.
- Tables and complex layouts come out as plain lines. Use “Keep the original lines” for tables, then paste into a spreadsheet.
- Two-column papers are usually read column by column, in the order the PDF stores the text. A few PDFs store text in an unusual order; check the result.
Frequently asked questions
Is my PDF uploaded?
No. The PDF is read by JavaScript in your browser and never leaves your device. You can disconnect from the internet after the page has loaded.
How do I remove line breaks from PDF text?
Choose ‘Join lines into paragraphs’ and keep ‘Fix words split with a hyphen’ ticked. The tool joins the printed lines into paragraphs and keeps a blank line between paragraphs.
Why does the tool find no text in my PDF?
Your PDF is probably a scan: each page is a picture. Text can only be extracted from PDFs with a text layer. Use OCR software on scanned pages first.
Can I extract text from only some pages?
Yes. Type a page range such as 1-3, 7 or 10-end in the Pages box.
Does it keep tables and formatting?
No. The output is plain text. Bold, italics, fonts and table structure are not kept. Use ‘Keep the original lines’ to keep table rows on separate lines.
Can it read password-protected PDFs?
Not if the PDF needs a password to open. Remove the password in the original program first.
Do I need to log in or create an account to use the extract text from pdf?
No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.
How do I cite this tool in my thesis or paper?
Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Extract text from PDF [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/extract-text-from-pdf/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.
Free guides and courses from Codanics
More free tools
See all free Codanics tools → · Codanics on YouTube · WhatsApp channel