Text-based PDF converter

Convert PDF to Markdown Online

Upload a PDF whose text you can select, review the Markdown preview, then copy it or download an .md file. Scanned and image-only PDFs use the OCR workflow instead of this page.

  • 3 free conversions a day, no signup
  • Up to 3 pages free, 99 with a license
  • Preview the Markdown before you copy or download it

How PDF to Markdown conversion works

PDF to Markdown conversion on this page reads the text already stored in the file. It does not redraw the page, and it does not OCR a scan. If you cannot drag a selection across the words in a PDF reader, use Scanned PDF to Markdown. If you want a plain .txt file, use PDF to Text.

  1. Upload one unlocked PDF. Free use covers 3 conversions a day, shared across files and public URLs, for PDFs up to 3 pages and 10 MB.
  2. DocToMD reads the text layer with MarkItDown and opens a Markdown preview. Clear columns in a simple table can become a pipe table.
  3. Read the preview. Add heading markers, separate any interleaved columns, and fence code you want to keep as code. Then copy the Markdown or download the .md file.
  4. If a PDF exceeds the page allowance, the interface can create a shortened copy containing the allowed first pages after explicit confirmation.

Lifetime access includes batch upload up to 10 files per request, and each file counts as one conversion. See lifetime early-bird pricing for plan limits.

What PDF to Markdown keeps

Headings

A heading in a PDF is usually a larger font, not a structural tag the extractor can trust. The words survive when they are selectable, often as their own paragraph. Hash markers such as # and ## are not added from font size or from the PDF outline.

Add those markers before the file goes into Obsidian, Notion, or a chunker. A retrieval pipeline that splits on Markdown headings will treat an unmarked title as body text.

Tables

Simple tables whose cells sit in clear columns can become Markdown pipe tables, including some borderless forms. That is the useful case: a price list, a roster, or a short specification grid you can paste into a doc.

Merged cells, nested tables, and tables that are really pictures do not reconstruct themselves. A two-column paper is not a table. If the preview alternates a sentence from the left column with a sentence from the right, fix the order or start from the publisher HTML before you rely on the text.

Images

The Markdown file contains text. Photos, diagrams, and page scans stay in the PDF. A caption is kept only when that caption is selectable text. Page images are not uploaded to an external model for a description.

If you cannot select the words in a PDF reader, this page will not invent them. Use Scanned PDF to Markdown, where OCR reads the page image. Check numbers and names after OCR.

Code

Source code inside a PDF is stored as positioned text. It comes back as lines of text, not as a fenced code block, and a line-number gutter often lands in the same lines as the source. Indentation survives when the text layer stored it.

Delete the gutter, then wrap the block in fences if you want a code block in GitHub, Obsidian, or Notion. A listing that was set in two columns, or as a screenshot, needs the same review as any other figure.

A verified one-line PDF

A one-page text PDF containing the line "DocToMD fixture".

Verified fixture output | Engine: MarkItDown | Tested: 2026-08-08Preserves: Selectable textKnown limits: Image-only and scanned pages belong to the OCR workflow
DocToMD fixture

What a simple table can look like

A one-page memo with a title line and a three-column roster can come back roughly like this when the columns are aligned in the text layer.

Project memo

The body text stays in reading order when the PDF has a single column.

| Name | Role | Hours |
| --- | --- | --- |
| Ada | Editor | 12 |
| Lin | Research | 8 |
Illustrative example. Actual output varies by input and engine.

Where a PDF to Markdown file is useful

Obsidian

A PDF attachment in a vault is hard to link and hard to search. Convert the text layer, put the .md file next to the PDF, and turn the lines you will actually open again into headings and wikilinks. Leave the original PDF embedded under the note when a chart or a figure is the part you still need to see.

Notion

Notion can import a Markdown file. Lists stay lists, and a pipe table that survived conversion becomes a Notion table. Title lines that arrived as plain paragraphs need to be turned into headings after import. This works for a spec, a report, or a meeting packet people will edit. A brochure whose meaning is the layout will not survive as the same design.

LLM and RAG preparation

Chunkers split on blank lines and on Markdown headings. A text PDF you have corrected, with running headers removed and real headings marked, retrieves more reliably than the same file pasted in as a blob. Do that review on the preview before you index anything.

This converter does not call a model, so it will not fill in a paragraph that was never in the text layer, and it will not repair a two-column paper whose lines interleaved. There is no API. A job that has to run overnight belongs on a parser you host or on a parsing API. For a handful of files in one sitting, lifetime access includes batch upload up to 10 files per request, and each file counts as one conversion.

PDF to Markdown compared with other options

The right tool is the one whose failure mode you can check. This page is the no-install path for a text PDF you will read. A local parser or a hosted API is the path when the same job has to run without you.

Ways to turn a PDF into Markdown or text
ApproachWhat you set upWhat comes throughUse it when
DocToMD in the browserNo install. The free allowance does not require an account.Selectable text, lists, and simple aligned tables. Heading lines stay text until you mark them. Images stay in the PDF. Code stays text until you fence it.One PDF, or a small licensed batch, that you are going to read before you keep it.
Export text from a PDF appThe reader you already have, offline.A text dump. Tables, heading levels, images, and code fences are usually gone, and page headers repeat.You need a paragraph or two and you do not want to upload the file.
A local parser you runA Python environment for something like MarkItDown, Docling, or PyMuPDF.Depends on the library. Layout-focused tools recover harder tables and reading order, and you can keep the files on a machine you control.The same conversion has to run unattended across a corpus.
A hosted parsing APIAn account, a key, and usage or subscription billing.Often the strongest recovery of tables and reading order. Figure handling depends on that product.Volume matters, and you accept that another service reads the PDF.

Named libraries and APIs, including Docling, MarkItDown, LlamaParse, and MinerU, are compared in PDF to Markdown tools for AI workflows.

PDF to Markdown FAQ

Practical limits for text PDFs, tables, headings, images, and code.

How do I convert a PDF to Markdown online?

Upload an unlocked PDF whose text you can select in a PDF reader. DocToMD reads that text layer, shows a Markdown preview, and lets you copy the text or download an .md file. Image-only files are turned away on this page.

Do tables survive PDF to Markdown conversion?

Aligned tables and form-like grids can become Markdown pipe tables when the words sit in clear columns. Merged cells, nested tables, and tables drawn as images need to be rebuilt. A two-column article is prose, and its reading order can still mix the columns.

Will headings become Markdown headings?

The heading words stay in the file when they are selectable text. Font size and the PDF outline are not turned into hash markers, so a title often arrives as its own plain paragraph. Add the heading levels you want before you import the note or split it for retrieval.

What happens to images and code?

Captions that are real text are kept. Figures, photos, and diagrams stay in the PDF, and page images are not sent out for a written description. Selectable code comes back as text lines. After you delete a line-number gutter, wrap the lines in a fence if you want a code block.

Can I convert a scanned PDF to Markdown here?

Scans and image-only PDFs use the separate OCR workflow, which requires paid access. Recognition quality depends on resolution, contrast, rotation, and language.

Is the PDF to Markdown converter free?

You can convert PDFs on the free allowance: 3 conversions a day, shared with other file and URL conversions, up to 3 pages and 10 MB per file. A license raises the limit to 99 pages per PDF. Unlock password-protected files before you upload them.

Can I use the Markdown in Obsidian, Notion, or a RAG setup?

Yes, after you read it. Obsidian stores the .md file as a note you can link. Notion can import Markdown, including pipe tables that survived. For retrieval, the heading markers you add and the tables that stayed pipes are what a chunker can use. This page has no API for an unattended pipeline.

What if the PDF is longer than the page limit?

Free conversion allows 3 pages and a license allows 99. If a PDF exceeds the page allowance, the interface can create a shortened copy containing the allowed first pages after explicit confirmation. Split the file yourself when the section you need is not at the front.

Are uploaded PDFs stored?

Files are processed for conversion and temporary files are removed after processing. Avoid uploading password-protected or highly sensitive files unless you are comfortable processing them through the service.