Extract PDF Text

Extract an existing PDF text layer locally, with page selection, line grouping and UTF-8 text downloads.

Drop files here. Files stay on your device.

Extract the existing text layer

Choose a PDF and page range, then copy the result or download extracted.txt. Optional page labels identify the source page; form-feed separators keep page boundaries in the text file. Line grouping uses text positions to add line breaks and gaps where appropriate.

Reading order depends on the PDF’s text objects. Multi-column layouts, tables, ligatures and unusual encodings can require manual cleanup. This extracts text and does not reproduce the page’s typography, table structure or image layout.

Scans and limits

A scanned image has no extractable text unless a text layer was added earlier. Empty-page status means no text was found; it is not an OCR result. Limits: 100 MiB input, 200 selected pages, 200,000 text objects per page and 1,000,000 output characters. Font/CMap support files are served locally when needed.

Local processing and file limits

A PDF can have up to 2,000 source pages, but text extraction reads at most 200 selected pages per run. The browser reads the text layer locally from files up to 100 MiB. Encrypted or damaged PDFs are rejected and changing the range clears the previous text.

Questions & answers

Can it read Chinese PDFs?

Yes, when the document has a usable text layer and character mappings. Scanned Chinese pages need OCR; malformed or missing mappings can still produce incomplete text.

Are files uploaded to a server?

No. Files, input text and results stay in your browser. Required engines, fonts and support files load from this site.

Other Languages

Extract PDF Text — Base64.sh

Extract PDF Text

Extract an existing PDF text layer locally, with page selection, line grouping and UTF-8 text downloads.

Share:

References

How we make sure

We check this tool with the automated test suites linked below. Example checks are shown in their original language.

Verification method
Read a PDF with a real text layer and compare text; ensure scanned pages are reported without invented extracted text.
Comparison reference
Actual PDF text fixtures and PDF.js extraction results.
Verification scope
These samples and boundaries do not prove correctness for every input.
Test source and cases (select a file to read it)
  • document-tools.test.js
    • PDF rotate preserves all page boxes and modifies each selected page once
    • PDF organizer inserts, duplicates, removes and orders actual page contents across sources

These checks cover the listed examples and boundaries, not every possible input. Round trips and checks using the same library are not independent verification.