PDF to Text
Extract all the text from a PDF as clean, readable paragraphs. Copy it, or save it as a .txt or .json file. Your PDF is read on your device and never uploaded.
Your file is ready
- Files stay on your device. Nothing is uploaded.
- Free, no sign-up, no daily limit.
- Works with Wi-Fi off once the page has loaded. Check it yourself
Updated by Khokhar Sab
How do I convert a PDF to text?
Press Choose PDF files and pick one or more PDFs. The text appears in the box within a second or two. Choose whether to join lines into paragraphs and remove repeated headers, then press Copy text, or Download .txt for a plain TXT file. For several PDFs, the download is one ZIP with a text file for each.
- Press Choose PDF files.
- Check the text in the box; switch files with Showing if you picked several.
- Set Join lines into paragraphs and Remove repeated headers, footers and page numbers.
- Press Copy text, or Download .txt.
How do I copy text from a PDF without the line breaks?
When you copy from a PDF reader, every line ends with a hard break and words split by hyphens stay split. This tool rebuilds paragraphs from the positions of the lines: it joins lines that belong together, removes line-end hyphens inside words, and starts a new paragraph at wider gaps and indents. Untick Join lines to keep the original breaks.
Why does my PDF give no text, or strange symbols?
No text usually means the PDF is a scan: each page is a photo, with no letters stored. That needs OCR (optical character recognition), explained in the next answer. Strange symbols mean the PDF uses a font with no map back to letters, so readers cannot tell what each shape is. The tool warns you in both cases.
How do I extract text from a scanned PDF?
A scanned PDF stores pictures of pages, so there is no text to extract until OCR reads it. Open the file in OCR PDF, pick the language, set Save as to Text (.txt) and press Read text. You get a TXT file of the words it read, and the PDF still never leaves your device.
OCR PDF reads English, Spanish, French, German, Italian, Portuguese and Russian with the open-source Tesseract engine. When you open a scan here first, this tool lists the pages that have no text, so you know which ones need OCR. If you want the scan to stay a PDF you can search and copy from, leave Save as on Searchable PDF instead, then bring that file back here for clean paragraphs.
What is the JSON option for?
JSON gives the text in a structured form: one entry per page with its page number, and each block marked as a heading, paragraph, list item or code. It also includes the PDF's title, author and dates when the file has them. That suits scripts, databases and AI tools that need to cite a page.
{
"source": "report.pdf",
"pageCount": 12,
"pages": [
{ "page": 1, "text": "…",
"blocks": [{ "type": "heading", "level": 1, "text": "Annual report" }, …] }
]
}How accurate is the extracted text?
For PDFs made by a word processor or browser, the words come out exactly as stored. Order can differ in complex layouts, such as text boxes or tables. We ran the tool on test files with known content and counted results.
| Test file | Pages | Words found | Time |
|---|---|---|---|
| Long report made with Markdown to PDF | 22 | 5,741 of 5,741 | 0.3 s |
| Text pages with 2 blank pages | 5 | 1,350 of 1,350, blank pages 3 and 5 named | 0.2 s |
| Report with a photo page | 2 | 648 words, photo page 2 named as having no text | 0.2 s |
Limits and fixes
- Scans need OCR first: run OCR PDF, then convert. The tool lists pages with no text.
- Columns and tables: text follows the order the PDF stores it, which is usually reading order. Table cells come out one per line.
- Hidden text, such as white text or an invisible OCR layer, is extracted too, because it is part of the text layer.
- Right-to-left scripts (Arabic, Hebrew) may come out in the wrong order in some files.
- Locked PDFs need their password removed first with Unlock PDF.
Frequently asked questions
Is it free?
Yes, with no sign-up and no limit on files or pages.
Is my PDF uploaded?
No. The text is read in your browser with PDF.js, so the file never leaves your device.
Can I convert many PDFs at once?
Yes. Pick several files; each becomes its own .txt file inside one ZIP.
Does it keep bold, headings and links?
Plain text has no formatting. Use PDF to Markdown to keep headings, lists, bold text and links.
Can I paste the text into an AI chatbot?
Yes. Clean paragraphs and page markers help a chatbot quote the right page. Tick Mark where each page starts.
Related PDF tools
Learn more
How this tool was built and tested
- PDF.js (Apache-2.0), version 6.4: reads the positioned text from each page
- PDF.js issue 6657: missing spaces: why spaces are rebuilt from the gaps between words
- Unicode compatibility normalization (UAX #15): how ligatures such as fi become plain letters