PDF to Text Converter

Convert your PDF files to editable text online for free with smallpdf.tools

Extracting plain text from a PDF

Converting to TXT gives you every word in the PDF as plain text with no layout. It is the fastest way to reuse the wording of a document.

It is useful for quoting from reports, pasting into a translation tool, counting words, searching long documents and feeding text into a spreadsheet or script.

Reading order can surprise you. Multi-column pages are usually read column by column, but headers, footers, captions and sidebars may turn up in unexpected places.

Tables lose their structure and come out as lines of words and numbers. For tables, our blog guide on converting PDF tables to Excel explains better options.

Words hyphenated at the end of a line may stay split, such as docu- and ment on separate lines. A find-and-replace in your text editor fixes most of them.

Unusual fonts can occasionally turn letter pairs such as fi and fl, or symbols, into the wrong characters. Spot-check important names and numbers.

Scanned PDFs contain images, not text, so there is nothing to extract without OCR.

Plain text is compact. Even a 300-page book becomes a file of well under 1 MB.

If you want to keep headings, bold text and images while you edit, PDF to Word is the better choice.

To turn plain text back into a document, use TXT to PDF.

When to use PDF to TXT

Use PDF to TXT to copy all the text out of a PDF at once, for example to quote from a report, paste into a translator or feed into a spreadsheet.

PDF to TXT: common questions

What is kept and what is dropped?

You get the words only. Images, fonts, colours and page layout are removed.

Why is my text file empty?

The PDF is probably a scan, which contains a picture of text rather than real text. You need OCR (text recognition) for scans.

Why are lines broken in odd places?

PDFs store text line by line as it appears on the page, so paragraphs can come out split. Joining lines in a text editor fixes it.

Full guide on our blog: How to convert PDF to editable text