PDF to Text
Extract selectable text while preserving pages and line endings.
Drag & drop your file anywhere in this box.
Processed in your browser, so files never leave your deviceFree · No sign-up · No watermarks
Extract the text from a PDF into a plain text file
A PDF that was exported from Word, generated by a system or typeset from LaTeX carries its words inside it as actual text. Extraction simply reads them out, which is fast, exact and needs no interpretation at all. You get a UTF-8 file you can paste into an email, feed to a script, or search with ordinary tools.
The important distinction is between a PDF that contains text and a PDF that contains a photograph of text. If you can select a word in your PDF reader and it highlights, extraction will work. If dragging across the page selects nothing, or selects the whole page as one block, the document is a scan and there is no text layer to read. That case needs OCR, which recognises shapes and guesses at characters.
Expect to tidy up the result a little. PDF stores where each piece of text sits on the page rather than how the document is structured, so headers, footers and page numbers appear in the stream alongside the body, and multi column pages can come out interleaved. The words are all correct, the layout is what needs attention.
Simple, practical guidance
How to use PDF to Text
This reads the text layer the PDF already carries and writes it out as a plain file. It is extraction, not recognition, so what comes out depends on what is genuinely stored in the document.
- 1
Upload the PDF.
- 2
Wait while the browser checks its pages.
- 3
Start text extraction and let every page finish.
- 4
Download the UTF-8 text file and review its line breaks.
Get a better result
A PDF with a proper text layer extracts almost perfectly. Reading order follows how the text was placed in the file, which means a two column layout can interleave unless the document was built with a sensible structure.
Know how your file is handled
Extraction happens in your browser. The PDF is parsed on your own device and the text file is assembled there, so the document is never uploaded.
Check before you share
A scanned page holds a picture of words, not words, so there is nothing for extraction to read. Those documents need optical character recognition first.
Questions people ask
PDF to Text FAQ
Scanned files, reading order, encoding, and the difference between extraction and OCR.
How do I extract text from a PDF?
Upload the document, wait while its pages are checked, start the extraction, and download the text file when every page has finished. The output is UTF-8 encoded.
Why is my extracted file empty or full of nothing?
The PDF almost certainly has no text layer, which means it is a scan. Open it in a reader and try selecting a word: if nothing highlights, there is no text to extract and you need OCR instead. OCR PDF
What is the difference between this and OCR?
Extraction reads text that is already stored in the file, so it is exact. OCR looks at the picture of a page and recognises the letter shapes, which is an estimate and can make mistakes. Use extraction whenever the text layer exists.
Why is the reading order jumbled?
PDF records the position of text on a page rather than the structure of the document, so a two column layout can alternate between columns and footers can appear mid stream. The words are correct even when the order needs sorting.
Does extraction keep my formatting?
No. Plain text has no bold, headings, tables or images by definition. If the layout matters, convert to Word instead, which attempts to rebuild the structure. PDF to Word
Will Hindi or other non-Latin text come out correctly?
Usually yes, provided the PDF embeds its fonts properly, because the output is UTF-8. Some PDFs use custom encodings that store characters without a standard mapping, and those can extract as the wrong letters.
Is my PDF uploaded to extract its text?
No. Parsing happens in your browser tab, so the document stays on your device. That makes it safe for contracts and statements you would rather not send anywhere.
Can I extract text from only a few pages?
Extract those pages into a short PDF first, then run the text extraction on that. This is also quicker on a document of several hundred pages. Extract PDF
Why do line breaks appear in the middle of sentences?
Because each visual line in the PDF is stored separately, with no record of which lines belong to the same paragraph. Most text editors can rejoin them with a find and replace on the line ending.
Can I extract tables into columns?
Not into real columns, since plain text cannot hold a table structure. For tabular data, PDF to Excel reconstructs rows and columns into spreadsheet cells. PDF to Excel
