PDF to TXT Converter: Layout-Aware UTF-8 Text | MiConvert

PDF to TXT: Extract the Text Layer as Plain Text

Upload a PDF and get a UTF-8 .txt file with its text in reading position and columns spaced out as they sit on the page. Only real text is read, so a PDF that came from a scanner will give you an empty file.

📁

Drop your file here

or click to browse

Select File

Max 10 files, 50MB each

SSL Encrypted Auto-deleted No Sign Up 100% Free
PDF → TXT

What a PDF to TXT conversion gives you

A PDF stores text as glyphs placed at exact coordinates on a fixed page, not as a stream of sentences. That is why copying from a PDF viewer often breaks lines mid-sentence, blends two columns together, or loses spaces. A TXT file is only characters and line breaks, so any editor, command-line tool, search index or script can read it.

When you upload a PDF, our server runs poppler's pdftotext in layout mode and writes the result as UTF-8. Layout mode keeps each line where it sits on the page and pads it with spaces, so side-by-side columns and aligned figures stay apart instead of merging. If pdftotext writes nothing, LibreOffice gets a second attempt before the job ends.

The text layer carries over: body text and headings, plus running headers, footers and footnotes, each at the position it occupies on the page. A form-feed character separates pages. Images, links, fonts, bold, italics and colors are dropped, and tables are only approximated with spaces, so ragged ones may need tidying by hand.

Only text that exists as text can be extracted. A scanned page is a picture, and this converter has no OCR. A scanned or photographed PDF therefore produces an empty TXT file, and the job still shows as finished. Text turned into outlines in a design program behaves the same way.

Typical uses are feeding reports into a script or translation tool, quoting long passages, diffing two versions of a contract, or indexing documents for search, without installing poppler or writing Python for a one-off job.

How to convert a PDF to a TXT file

  1. Open the PDF and drag your cursor across a sentence. If individual words highlight, the text can be extracted. If the whole page highlights as one block, it is a scan and will come out empty.
  2. If the PDF asks for a password when it opens, remove it first with our PDF password-removal tool, because password-protected files are refused before conversion.
  3. Shorten very long file names, especially ones written in Chinese, Japanese or Korean characters, to avoid a file-name error on the server.
  4. Upload the PDF with TXT as the target and wait for the conversion to finish.
  5. Download the .txt file and open it in an editor with word wrap off and a monospaced font, so the space-aligned columns line up.

What the PDF to TXT converter does

  • Layout-mode extraction pdftotext's layout mode spaces each line out to mirror the page, keeping parallel columns and columns of numbers visually separated.
  • UTF-8 output The TXT file is written in UTF-8, which modern editors, terminals and programming languages read without guessing the encoding.
  • Page breaks you can split on Each page ends with a form-feed character, so a script can split the file back into pages on that single character.
  • Headers and footnotes included Running headers, footers and footnotes are kept where they appear on each page. Strip them afterwards if you want clean prose.
  • Plain output for any editor The result is a single .txt file with no markup, ready for grep, diff, a translation tool or a search index.

Video Tutorial

Watch this step-by-step tutorial to learn how to convert PDF files to TXT format online for free using MiConvert.com. No software installation required.

PDF to TXT questions

Can it convert a scanned PDF to text with OCR?

No. There is no OCR here, so only text already stored as text in the PDF is extracted. A scanned PDF produces an empty TXT file while the conversion still shows as successful, so check the result. For scans, first add a text layer with OCR software such as OCRmyPDF or Adobe Acrobat, then convert that PDF here.

Will columns and tables come out correctly?

They come out aligned with spaces, not as structured data. A two-column article stays side by side on each line, which matches the page but reads awkwardly as prose. Tables keep their visual alignment but have no delimiters. Our PDF to XLSX converter splits lines into cells at runs of two or more spaces, but it currently garbles any non-ASCII character, including accented letters and CJK.

Why are there strange symbols in my TXT file?

A box or ^L between pages is the form-feed page separator, which you can delete or replace with a blank line. Real gibberish, where letters become unrelated characters, usually means the PDF's fonts have no mapping back to Unicode. Extraction cannot recover that text; OCR of the rendered pages is the workaround.

What if my PDF is password-protected?

A PDF that needs a password to open is refused before conversion, with a message pointing to our PDF password-removal tool. Remove the password there (you must know it), then convert the new copy. PDFs that open without a password pass this check.

Should I convert to TXT or to Word?

Pick TXT when you only need the words. Our PDF to DOCX converter keeps bold, images and CJK text, but it puts every line in its own positioned text box, and tables do not become Word tables, so editing long passages is clumsy. Pasting the TXT into Word and reformatting is often cleaner.

How do I do this on Linux, Mac or in Python?

On Linux, install poppler-utils and run pdftotext -layout input.pdf output.txt, the same tool and mode this page uses. On a Mac, Homebrew's poppler package gives the same command, and Automator has an Extract PDF Text action. In Python, pypdf or pdfminer.six extract text, or call pdftotext via subprocess.

Is it free, and how big can my PDF be?

Yes. Without an account you can convert files up to 50 MB, up to 10 files per upload and 10 jobs per hour per IP address. A signed-in free account raises the per-file limit to 100 MB. Plus allows 200 MB and 25 files per upload, Pro 1 GB and 50 files, both at 50 jobs per hour. Each result downloads separately.

What happens to my PDF after conversion?

Files travel over HTTPS and are converted on our servers, not in your browser. Your upload is deleted as soon as the conversion finishes. The TXT file can be downloaded for about 4 hours through a random, unguessable link, then it is deleted automatically. The link is not one-time, so anyone you share it with can use it until it expires. File names, sizes and outcomes are logged to run the service.

Convert PDF to...

Other Pdf Converters