PDF to Text
Extract the text from a PDF as plain text, with page separators, optional layout preservation and hyphen joining.
This guide is not yet available in your language and is shown in English.
Tool guide
What this tool does
PDF to Text pulls the text layer out of a PDF using pdf.js and rebuilds readable lines and paragraphs. Choose pages, keep the column layout for tables, join hyphenated words, and copy or download the result as a .txt file.
Copying text out of a PDF viewer often goes wrong: line breaks appear in the middle of sentences, columns get interleaved, and long documents need page-by-page selection. When you want to quote a report, feed a document into another tool, or search it with your own scripts, plain text is far easier to work with.
This tool reads the text layer with pdf.js, then groups the individual text fragments into lines by their vertical position, orders them left to right, and inserts spaces where there are visible gaps. Blank space between lines becomes paragraph breaks. Scanned pages that contain only images have no text layer, and the tool reports how many such pages it found. Everything runs locally.
How to use PDF to Text
- Drop a PDF onto the upload area.
- Optionally type a page range in Pages, for example 5-12.
- Choose whether to include Page separators between pages.
- Switch on Keep layout for tables and multi-column forms, or leave it off for flowing paragraphs.
- Leave Join words hyphenated across lines on to repair words split at line ends.
- Press Extract text, then copy the result or download it as a .txt file.
Tips for better results
- Keep layout uses spaces to mimic horizontal positions, which preserves table columns when viewed in a monospaced font.
- The Characters and Words figures are handy for estimating translation or reading time.
- If the text contains odd symbols instead of letters, the PDF uses fonts without a proper character map; the text cannot be recovered reliably without OCR.
- For very long documents, extract in page ranges to keep the output manageable.
Common use cases
- Quoting passages from a research paper or report.
- Getting the text of a contract into a diff tool to compare versions.
- Feeding invoices or statements into a spreadsheet or script for processing.
- Making a PDF readable for screen readers or text-to-speech.
Common mistakes to avoid
- Expecting text from scanned documents. Image-only pages need optical character recognition, which this tool does not perform.
- Using Keep layout for prose, which adds runs of spaces that make copying awkward.
- Assuming the reading order of complex magazine layouts will match the visual order; sidebars and captions can appear between paragraphs.
Frequently asked questions
Why is some text missing?
Text drawn as vector shapes or embedded in images is not part of the text layer. Only real text objects can be extracted.
Does it work with multi-column layouts?
Lines are built from vertical positions, so two columns on the same line are joined left to right. Keep layout separates them with spaces, which is usually easier to read for columns and tables.
Can I extract text from a password-protected PDF?
Files that require a password to open cannot be read. Open and re-save the file without protection first.
Is the PDF uploaded?
No. Extraction happens in your browser with pdf.js.
Feedback & suggestions
Help us improve PDF to Text. We read every message.