Copy a paragraph from a report
Open the PDF > Copy text > paste into your document
Faster than selecting across page breaks, and the page marks help you find where a passage came from.
Pull the text out of a PDF, copy it, or save it as a .txt file. Nothing is uploaded.
Last updated
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
A PDF to text converter reads the words stored in a PDF and gives them back as plain text. Use it to copy a paragraph from a file that will not let you select text well, to feed a document into another program, or to search a long PDF in a text editor.
The tool reads the text of every page as soon as the file opens. The text shows in a box, with "Copy text" and "Download .txt" buttons. A checkbox, "Mark where each page starts", adds a line like --- Page 3 --- before each page. The text follows the order stored in the PDF. Columns and tables come out as plain lines.
This tool does not do OCR. A scanned PDF is a picture of a page and holds no text to read, and the tool tells you when that is the case. Your file never leaves your device, because the reading runs in your browser. If the PDF needs a password to open, the tool asks for it.
Drop the file on the page or click "Choose a PDF file". If it needs a password to open, type it when asked.
The tool reads every page and shows progress. The text then appears in the box.
Keep "Mark where each page starts" ticked to get a --- Page N --- line before each page, or untick it for one continuous text.
Click "Copy text" to put it on your clipboard, or "Download .txt" to save a text file named after your PDF.
Whether the text comes out depends on how the PDF was made.
| Kind of PDF | What you get |
|---|---|
| Exported from Word, Docs or a website | The text, in its stored order |
| Scanned page or photo of a page | Nothing: it holds a picture, and the tool says there is no text |
| Text with columns | Lines of the columns can come out one after another or mixed |
| Tables | Plain lines of text, without the grid |
| Text drawn as shapes or outlines | May be missing, because it is not stored as text |
| PDF with only an owner password | Opens without asking for a password |
| PDF that needs a password to open | The tool asks for the password first |
| Page marks ticked | A --- Page N --- line before each page |
Open the PDF > Copy text > paste into your document
Faster than selecting across page breaks, and the page marks help you find where a passage came from.
--- Page 1 --- Introduction --- Page 2 --- Methods
Introduction Methods
Keep the marks to know where each page starts. Turn them off for text you want to paste as one piece.
This PDF has no text to copy. It is probably a scan or a photo of a page.
You will see this message for a scanned PDF. There are no words stored in the file, only a picture of them.
import pymupdf
doc = pymupdf.open("report.pdf")parts = []for number, page in enumerate(doc, start=1): parts.append(f"--- Page {number} ---\n{page.get_text()}")
with open("report.txt", "w", encoding="utf-8") as f: f.write("\n\n".join(parts))page.get_text() returns the text of one page. The loop adds the same page marks as the checkbox on this page.
Yes. There is no sign-up and no watermark, and nothing to pay.
No. The text is read in your browser, so the file stays on your device.
The file is probably a scan or a photo of a page. It holds a picture of the words, not the words themselves, and this tool does not do OCR.
Yes. Click "Copy text" and paste it anywhere.
Click "Download .txt". The file is named after your PDF.
It adds a line like --- Page 2 --- before each page's text, so you can see where pages begin. Untick it for one continuous text.
The tool follows the text order stored in the PDF. Columns and tables come out as plain lines, which can look different from the page.
Yes. If the file needs a password to open, the tool asks for it. A PDF that only restricts printing or copying opens without one.
Yes. A library like PyMuPDF reads the text of each page with get_text(), as in the example above.