PDF to Text Converter

Convert a PDF to plain text in reading order, ready to copy or save as a .txt file. Two-column pages, tables and hyphenated words are handled for you, and scanned pages can be read with OCR.

Choose a PDF

or drop it here · one PDF, any size

Your PDF stays on this device. The text is extracted by your browser; nothing is uploaded.

Why convert a PDF to text?

Text locked in a PDF is awkward to reuse: copying from a viewer drags in page numbers and headers, breaks every line in two, and mixes up the columns of a two-column page. This converter reads the PDF's text layer with pdf.js (the engine inside Firefox), puts it back in reading order and hands it over as plain text, ready for a document, a spreadsheet, a translator or an AI chat. Pages that are scans get read with OCR on request. It all happens in your browser, so private documents are never uploaded.

How to convert a PDF to text

  1. Drop in your PDF, or tap Choose a PDF on a phone. If it's password-protected, type the password.
  2. The text appears a moment later. Choose Lines, Paragraphs or Layout, and whether to mark page breaks.
  3. Optionally pick a page range and tick Remove headers, footers and page numbers. Scanned pages? Press Read with OCR.
  4. Press Copy text, or Download .txt to save a UTF-8 text file.

Three ways to get the text

Switch between them at any time; the text updates instantly, without reading the PDF again.

OutputWhat you getBest for
LinesEvery line as it is on the page, columns read in order, a blank line where the page leaves a gapChecking the text against the page, lists, poems, code
ParagraphsLines joined into flowing paragraphs, words split by a hyphen at a line end joined againPasting into Word, Google Docs, an email or an AI chat
LayoutThe page's spacing kept with spaces, so columns and table cells stay lined upTables, forms, invoices, side-by-side text

How the reading order is worked out

A PDF doesn't store sentences or columns, only pieces of text and where each one sits on the page, often in a scrambled order. Copying straight from a viewer is why two-column articles come out with the columns interleaved line by line. Here the page is read the way a person reads it:

  • Lines: pieces on the same baseline become one line, with a space wherever the page shows a gap. Footnote marks stay attached to their word, and Chinese and Japanese text gets no stray spaces.
  • Columns: a strip of white space that runs down the page with prose on both sides is a column gutter. The left column is read to the bottom, then the right; a title or abstract spanning both columns is read first, and a figure caption across the page splits the columns above and below it. Right-to-left pages (Arabic, Hebrew) read their columns from the right.
  • Tables and forms: short cells side by side are not columns, so each row stays on one line with a tab between cells. Paste the result into a spreadsheet and the cells land in separate columns.
  • Sideways text such as a rotated chart label is collected after the main text of its page, and pages stored on their side read like upright ones.

Scanned PDF to text with OCR

A scanned page is a photo of words, not words: there's no text in it to extract, which is also why you can't highlight anything on it in a PDF viewer. The converter spots those pages (no text at all, only a page number or stamp added at the edge, or fonts that come out as symbols) and offers Read with OCR. OCR (optical character recognition) recognises the letters in the picture: each page is drawn at the scan's own resolution, cleaned up and read by Tesseract, the open-source OCR engine, in English, Spanish, French, German, Portuguese or Hindi.

  • Private: the recognition runs on your device. The engine and language files (a few megabytes) download once from this site, and the PDF is never uploaded, unlike online OCR services and Google Drive's Open with Google Docs.
  • Check the result: clean, straight scans of printed text read very accurately; faint copies, handwriting, tiny print and photos taken at an angle produce mistakes, so check names, figures and dates. A page takes a few seconds on a computer, longer on a phone.
  • Photos and screenshots rather than PDFs go to Image to Text, the same OCR with more controls (rotation, page layout, highlighted uncertain words). PDF to JPG turns PDF pages into images if you'd like to work on them there.

Clean text for documents, spreadsheets and AI

  • Remove headers, footers and page numbers leaves out the running title, the chapter name and the page number that would otherwise interrupt the text every page. Word and many publishing tools tag those as page furniture inside the PDF; untagged ones are recognised because they repeat near the edges of many pages.
  • Page markers (--- Page 3 ---) make it easy to cite or find a page later. Choose Blank line for one continuous text, or Form feed to match the output of the pdftotext command for scripts that split on it.
  • For an AI chat such as ChatGPT or Claude, use Paragraphs with headers and footers removed: fewer tokens, and sentences stay whole. Check the length with the Word Counter, or listen to it with Text to Speech.
  • Text copied from a PDF elsewhere that is already broken into short lines can be repaired with Remove Line Breaks.

When the text comes out wrong

  • Symbols instead of letters: some PDFs embed fonts without a table that maps each glyph back to a letter. The text looks fine on screen but has no readable letters behind it; the converter flags those pages and offers to read them with OCR instead.
  • Missing spaces or odd breaks: try Layout, which places words by position, or Lines instead of Paragraphs.
  • Complex magazines and posters with text boxes scattered across the page may still read out of order; Layout shows how the text sits so you can pick what you need.
  • Only part of a long file? Choose the page range here, or cut the file first with Split PDF. For an e-reader, PDF to EPUB rebuilds chapters and paragraphs as an ebook.

Frequently Asked Questions

How do I convert a PDF to text for free?

Open the PDF on this page. Its text appears in the box a moment later, in reading order, with a marker at the start of each page. Press Copy text to paste it anywhere, or Download .txt to save a plain text file. There's no sign-up or page limit, and the PDF never leaves your device.

Can I extract text from a scanned PDF?

Yes. A scanned PDF holds photos of the pages, not letters, so the converter lists those pages and offers Read with OCR. OCR (optical character recognition) recognises the letters in each page's picture, here with the Tesseract engine running on your device, in English, Spanish, French, German, Portuguese or Hindi. The engine downloads once from this site and the PDF is never uploaded. Check the result: clean scans of printed text read well, while faint copies and handwriting cause mistakes.

Why can't I copy text from my PDF?

There are three usual reasons. The pages are scans (pictures, which need OCR); the PDF's permissions block copying (this tool reads the text anyway, as Firefox's built-in PDF viewer does); or the fonts were embedded without a map from their shapes back to letters, so even selectable text comes out as symbols. The page spots the first and last cases and can read those pages with OCR.

Does PDF to text keep the layout?

Plain text can't hold fonts or pictures, but you can choose how much of the page's arrangement survives. Lines keeps each line as it is on the page. Paragraphs joins lines into flowing paragraphs and rejoins words split by a hyphen, best for pasting into a document or an AI chat. Layout keeps the spacing, so columns and tables stay lined up when the text is shown in a fixed-width font.

How does it handle two-column PDFs and tables?

Columns are found from the gap between them, so a two-column paper reads down the left column and then the right one, with a title that spans both read first. Table rows are kept together on one line, with a tab between cells, so they paste neatly into Excel or Google Sheets. Use Layout to see a complicated table exactly as it's arranged.

Can I remove page numbers, headers and footers from the text?

Yes. Tick Remove headers, footers and page numbers. It leaves out text the PDF itself marks as page furniture (as Word and many publishing tools do), lines repeated at the top or bottom of many pages, such as a running title, and bare page numbers near the top or bottom edge. Body text in the middle of the page is never touched.

Can I convert a password-protected PDF to text?

Yes, if you know the password: the page asks for it and opens the file in your browser. PDFs that open without a password but block copying are read normally. To remove the password from the file itself, use PDF Password Remover.

How do I extract text from only some pages?

Under Pages, choose Some pages and type them as in a print dialog, for example 3-7, 12 or 5-end. The text updates straight away; the whole document is still checked for repeating headers and footers.

What format is the downloaded text file?

A .txt file in UTF-8, the encoding that every current text editor, spreadsheet and programming language reads, including Notepad on Windows 10 and 11 and TextEdit on a Mac. Accented letters, Greek, Cyrillic, Arabic, Hebrew, Chinese, Japanese and Korean all come through. Pages are marked with a line such as --- Page 3 ---, or with a form feed, which is what the pdftotext command uses.

Can I convert a PDF to text on my iPhone or Android phone?

Yes. Open this page in Safari or Chrome, tap Choose a PDF and pick the file from Files, iCloud Drive, Google Drive or Downloads. When the text appears, tap Copy text to paste it into Notes, Docs or a message, or Download .txt to save the file.

Is there a size or page limit?

No set limit. A progress bar counts the pages as they're read, and you can cancel at any time. Very large files (hundreds of megabytes) are limited only by your device's memory, so they go faster on a computer than on a phone.

Is my PDF uploaded when I convert it to text?

No. The text is extracted by your browser with pdf.js, the PDF engine built into Firefox, so the document never leaves your device. That makes it safe for contracts, bank statements and other private files.

Advertisement