Skip to main content
PPDF123

Convert PDF to Text

PDF to Text extracts the text that already exists in a PDF and returns it as a plain .txt file, or as RTF. It does not run OCR, so image-only scans come out empty.

Drag and drop files here, or click to choose

Accepts PDF · up to 500.0 MB per file · up to 20 files at once

You can also paste a file with Ctrl/Cmd+V, or from the clipboard menu.

PDF to Text extracts words that already exist as text objects. The default `txt` path uses the same native extractor as other pdf-core ops (`pdfio::extract_text`) and returns `text/plain`. It does not run OCR and it does not call LibreOffice.

Choose `rtf` and the file goes through LibreOffice `writer_pdf_import` instead. That path needs `soffice` on the server and rebuilds a rough rich-text document. Expect substitution and broken tables; treat RTF as a draft.

Image-only scans yield an empty or nearly empty `.txt`. For the words of a scan, OCR PDF to Text returns a .txt directly, and a searchable PDF from OCR PDF has a text layer this tool can read.

There is no page-range field. Every page is read. Password-protected files are unlocked for you on this page once you enter the password; API callers run Unlock first.

If you need headings and lists rather than a text dump, PDF to Markdown is the closer tool. If you need tables as rows, use PDF to CSV or PDF to Excel.

The output keeps the uploaded file's base name, so `minutes.pdf` becomes `minutes.txt` or `minutes.rtf`. The TXT path loads the whole document, asks the extractor for every page in one call and returns the string as `text/plain`. An outputFormat other than `txt` or `rtf` is rejected with a 400 that lists the two allowed values.

A worked case: a 30-page born-digital policy manual exported from a word processor. Run it with TXT and open the result in an editor: you should find the paragraphs and headings as lines of text, which you can search or feed to a script. A scan of the same manual, saved from a copier as one picture per page, would give an empty or nearly empty file, because there are no text objects to read.

Quick test for a text layer: if you can select a word with the cursor in a viewer, the extractor has something to read. If you cannot, the file is images. This tool has no OCR, so for a scan the practical route is OCR PDF to Text for a .txt, or OCR PDF with the Searchable PDF output and then this tool on the result.

If the output has the right words in the wrong order, the PDF probably stores its text in an order that differs from the visual one, which is common with multi-column layouts. Try PDF to Markdown, which uses a different extractor, or copy the affected page by hand. If RTF fails with a missing-dependency error, the server has no LibreOffice installed; use TXT instead.

Features

  • Default TXT via native text extraction, not pdftotext and not OCR
  • Optional RTF through LibreOffice `writer_pdf_import`
  • Reads every page; no page-range parameter
  • Anonymous API at /api/v1/convert/pdf/text

When to use this tool

  • Dump a text-layer report into grep or a script
  • Get a rough RTF draft from a born-digital memo
  • Check whether a PDF even has a text layer
  • Pull the wording of a policy manual into an editor for a comparison against an older version

How do I extract text from a PDF?

  1. Check that the PDF has a text layer by selecting a word in a viewer; if you cannot, use OCR PDF to Text instead, or run OCR PDF with the Searchable PDF output first.
  2. Upload the PDF and enter its password if the page asks for one.
  3. Keep TXT for a plain dump you can search, or choose RTF only if you want a LibreOffice rich-text draft.
  4. Click Process and download `.txt` or `.rtf`; the name matches the upload.
  5. Spot-check the first and last pages against the PDF. An empty file means no text layer; scrambled order means the PDF stores its text out of reading order.

Limits and edge cases

  • Not OCR; scans produce little or no text
  • No page-range control
  • Multi-column visual order is not reconstructed for TXT
  • No headings, lists or tables are rebuilt in TXT
  • RTF needs LibreOffice on the server and is a rough rebuild
  • Upload limit on this website: 500 MB per file, sent in chunks above about 95 MB. A single direct API request body is capped at 100 MB.

Examples

  • A selectable annual report usually yields a long .txt of its paragraphs
  • A photographed whiteboard PDF usually yields a blank or tiny file
  • A 30-page born-digital manual named handbook.pdf downloads as handbook.txt
  • An outputFormat of `docx` sent to this endpoint returns a 400 listing txt and rtf

Privacy for this tool

Files are uploaded over HTTPS, processed in memory or a short-lived temporary directory on our servers, and deleted when your result is ready. We do not keep copies for later browsing, training, or advertising profiles. See the Privacy Policy for retention details and AdSense cookie disclosures.

Frequently asked questions

Why is the text file empty?
The PDF has no text objects for the extractor to read. For a scan, use OCR PDF to Text, or run OCR PDF with the Searchable PDF output first and send that PDF here.
Is TXT the same as copying from a viewer?
Close, but not identical. Order follows how text is stored in the page content stream, which can differ from visual reading order in multi-column layouts.
When should I pick RTF?
Only when you want LibreOffice to rebuild a document. TXT is the direct extract and does not need soffice.
Does this keep fonts and layout?
TXT is plain text. RTF is a best-effort rebuild, not a pixel match.
Can I extract the text of only some pages?
Not with this tool; every page is read. Run Extract Pages first to cut the PDF down to the pages you want, then convert that file.
Which tool gives me headings and lists instead of a plain dump?
PDF to Markdown. PDF to Text returns the text without structure.
My scanned PDF gave an empty .txt. Is the file broken?
No. A scan is pictures of text, so there is no text for the extractor to read. OCR PDF to Text returns the recognized words as a .txt.
What name does the downloaded file get?
The uploaded file's base name with `.txt` or `.rtf`, for example `minutes.pdf` becomes `minutes.txt`.
Why is RTF slower or unavailable compared with TXT?
RTF goes through LibreOffice on the server. If that program is missing, RTF fails with a missing-dependency error while TXT still works.

Last updated:

Call this from code

Every tool on this site is a plain REST endpoint - no account or API key needed for anonymous use. Built for AI agents and developers as much as for browsers.

curl -X POST "https://pdf123.xyz/api/v1/convert/pdf/text" \
  -F "[email protected]" \
  -F "outputFormat=txt" \
  -o output.pdf

Also available as an MCP tool for agent clients that speak Model Context Protocol (JSON-RPC 2.0 over POST /mcp). Full API reference

Use it from an AI agent

Skill

Claude Code, Codex, Cursor and other AI agents can run PDF to RTF (Text) for you with this skill: /skills/pdf123-pdf-to-text.md

All agent skills

Files are used only for this processing job and deleted automatically afterward.