ToolsEdit PDFArticlesPricingContact
GuidesNov 6, 2026·3 min read

PDF to TXT, Markdown or JSON: Which Text Format to Pick

TPTry PDF Kit team
PDF to TXT, Markdown or JSON: Which Text Format to Pick

Compare PDF to TXT, Markdown and JSON text extraction: what each keeps, what it drops, and which fits notes, publishing or developer work.

You can pull the words out of a PDF in several shapes, and the best one depends on what you will do next. Plain text is the simplest, Markdown keeps headings and lists, and JSON keeps layout details for programmers. Here is how to choose when you convert PDF to TXT or one of the others.

Plain text: PDF to TXT

PDF to TXT saves the text of a PDF as a plain .txt file. It is the right choice when you only want the words: to paste into a note, count, search or feed to another program. There is no formatting at all, so headings and lists become ordinary lines.

It works for PDFs with real text, not scans. If your PDF is a photo of a page, there is nothing to extract.

Markdown: keeping some structure

PDF to Markdown turns the text into Markdown with headings, paragraphs and lists. Tables and images are left out. Markdown is a lightweight way of writing structure, supported by note apps, static websites and documentation tools.

Choose it when you plan to republish a document online, move notes into an app, or edit in a plain text editor and keep headings.

JSON: text with layout

PDF to JSON extracts PDF text and layout into structured JSON. It is aimed at people writing scripts or feeding data into software, because positions and structure are included. If you are not a developer, you will probably never need it.

Quick comparison

  • Plain text: smallest and simplest. No structure, no tables.
  • Markdown: headings, paragraphs and lists kept. Tables and images dropped.
  • JSON: text with layout data in a machine friendly form.

Tables are a special case

None of these formats is good at tables. If numbers in rows and columns are what you need, go to PDF to Excel or the PDF table extractor instead.

Other uses

  • To count words or estimate reading time, use PDF word counter, which gives words and characters page by page, with the reading time.
  • To find where a phrase appears, use Search text in PDF, which shows every page with matches and the text around each one.
  • To turn a book into a reflowable ebook, try PDF to EPUB.

Check the output

Extraction can produce odd line breaks, especially in two column layouts where the reading order can jump between columns. Skim the beginning, the middle and the end before using the text. If hyphenated words are split across lines, a find and replace in your editor will fix them.

What to do with scans

A scanned PDF has no text layer, so all these tools return nothing useful. This is common with old documents. The honest answer is that you need character recognition software, which these tools do not provide.

Frequently asked questions

How do I convert a PDF to plain text for free? Add the PDF to the PDF to TXT tool in your browser and download the .txt file. You get a few free uses before signing in with Google.

Does PDF to Markdown keep tables? No. Tables and images are left out. Use a table extractor if you need the data in rows.

Why is my extracted text empty? The PDF is probably a scan, so the page is a picture and has no text to read.

Ready to try it on your own files? Try PDF Kit gives you 3 free uses without an account.

Browse all toolsBrowse all tools

Keep reading.

Every PDF tool you need, in one place.

Try 3 tools free, no account needed.

Start for freeStart for freeBrowse all toolsBrowse all tools
PDF to TXT, Markdown or JSON: Which Text Format to Pick | Try PDF Kit