Local by default
No Signups
Back to Blog
PDF to Markdown
RAG
Tutorial

Convert PDF to Markdown — Clean Output for LLMs & RAG

Published 2026-04-21 · Updated 2026-11-04

8 min read

Written by Madhav Mallya

Treat Markdown as an editable extract

Markdown is useful when you need to review PDF text, maintain documentation or prepare passages for retrieval. It does not automatically fix every ambiguity in the source. ExactPDF's PDF to Markdown reads selectable text in your browser and infers structure from text placement, font size and recognizable list patterns. Review that inference before using it as a source of answers.

The standard converter and Structured PDF to Markdown serve related but different jobs. The standard page offers a page range, optional page separators and a Markdown preview. The structured page adds export profiles and page-aware JSONL chunks. Both browser workflows rely on embedded text; neither performs OCR inside the conversion.

Check the source before converting

Select a paragraph in a PDF reader and paste it into a text field. If the pasted characters are readable and in order, the file is a useful candidate for text extraction. If nothing can be selected, the page may be an image. If copying produces unrelated symbols, the PDF may have an unusable character mapping even though it looks normal on screen.

The standard converter detects empty extracted text and some patterns of broken character mapping, then offers recovery. This is a safeguard, not a complete correctness detector. Mixed documents can contain both readable pages and scanned pages. Check the specific pages you need rather than assuming that one selectable paragraph establishes that the whole document is extractable.

Use the standard converter for notes and drafts

  • Select the PDF in PDF to Markdown. The input limit is 150MB, with practical processing capacity also dependent on device memory.
  • Enter a page range if you only need part of the document. A blank range processes all pages. A range such as 2-4, 8 is useful for a focused extract.
  • Decide whether to include page separators. They help preserve review boundaries, but they are horizontal rules rather than a complete citation system.
  • Convert and inspect the preview, including headings, lists and the joins between paragraphs.
  • Download the .md file, or open the result in the Markdown editor for cleanup before using it elsewhere.
  • If the range produces no valid pages, the interface reports the range and the document's page count. Correct the selection before retrying. Keep the PDF's actual file-page positions distinct from printed page numbers in the document. A preface or cover can shift the relationship between those two numbering systems.

    Understand the extraction boundaries

    Heading detection uses relative font size together with checks on the shape of the text. Lists are inferred from recognizable prefixes. These rules can produce useful structure, but typography is not the same as authored semantics. Review large numbers, captions, section labels and nested lists instead of accepting every generated heading.

    The structured extractor explicitly describes tables as reading-order text only, images as not extracted, and OCR as not run. Do not expect an image asset folder, reconstructed equations, semantic footnotes or a reliable grid of table cells. The standard converter also works from text blocks; it is not an asset-preserving document importer. For data tables, use PDF to JSON / CSV or PDF to Excel and validate separately.

    Two-column papers need particular attention. Compare the end of one column with the start of the next, and inspect where captions or footnotes interrupt the main text. If the extract has the wrong reading order, repair it against the PDF or obtain a better source. Switching to Markdown alone does not establish that a passage was reconstructed correctly.

    Choose a structured export profile deliberately

    Developer / docs refines prose without page rules. Academic retains page separators. RAG applies paragraph-oriented cleanup for ingestion. The profiles change post-processing; they are not separate recognition engines with guaranteed subject knowledge. Try a representative section and compare the output before applying the same profile to your entire collection.

    Structured output can be downloaded as Markdown or JSONL. Its chunks carry identifiers and source-page references, with page anchors such as page-3. This is useful for keeping an extract connected to its source while building a retrieval index. The generated chunks are text records, not embeddings, and the converter does not create or host a vector database for you.

    A practical ingestion record should retain the original filename, document version and the source-page information supplied with each chunk. Stable chunk identifiers help comparison, but do not assume they are permanent across edits to the source text or changes to conversion behavior. Keep the conversion output together with the PDF version that produced it.

    Research notes and academic reading

    For a paper, begin with the abstract, one body section, a figure caption and a reference entry. This sample exposes different text arrangements without requiring a whole-library conversion. Use the academic profile when page boundaries help your review. Check quotations directly against the PDF, especially where equations or superscripts affect meaning.

    Keep mathematical notation as a separate review task. If symbols are missing or reordered, do not guess an equation from surrounding prose. Link your note to the original page or transcribe it carefully from a reliable source. Likewise, attach figures separately when needed; the structured extractor's text export does not supply the original images.

    For Notion, Obsidian or another notes system, first save and inspect a local Markdown file. Then use the destination's current import or paste workflow and check the result there. ExactPDF does not create application-specific backlinks, databases or wiki links as part of PDF conversion. A readable heading in the file is not proof of a correctly imported note hierarchy.

    Documentation, repositories and static sites

    When turning a PDF manual into repository documentation, work on a copy and review the text before committing it. Check command examples, indentation, punctuation and identifiers against the original. A PDF's visible monospace appearance does not guarantee that copied text has the spaces or delimiters a runnable command requires. Do not execute extracted commands merely because they look familiar.

    For a README or static-site page, add the project's required metadata and image references yourself. The converter does not publish to GitHub, build a site, generate your site's frontmatter or configure navigation. Preview the cleaned document in the destination renderer, and verify relative links after placing the file in its final directory.

    Use a focused review diff: one document or section at a time, with the original available for comparison. Remove repeated running headers only after confirming they are boilerplate. If a repeated line is actually a warning or a section label, deleting it can change meaning. Automated cleanup should make review easier, not eliminate the review step.

    Recover scanned or broken-font PDFs

    When the converter says that no selectable text was found or that text cannot be converted cleanly, use a recognition workflow. Free OCR PDF recognizes English in batches of up to fifteen pages and downloads TXT, Markdown or JSON. You can use its Markdown directly; it does not produce a new searchable PDF to feed back into this converter.

    Max OCR is a separate server workflow with upload and account requirements. Check its current supported languages, limits and output choices before using it. The local-processing statement for browser Markdown conversion must not be carried over to that path. For material that cannot leave your device, choose an approved local OCR application with the needed language support instead.

    Verify before indexing or sharing

    Open the downloaded file and inspect a beginning section, a page boundary and the final page you intended to include. Compare numbers, negations, units and quotations against the PDF. For retrieval work, test that a returned passage points to the correct source page; conversion completion alone says nothing about the quality of later answers.

    Keep a corrected Markdown copy when you need to edit the extract, and keep the untouched export for traceability. Do not claim token savings, recognition accuracy or improved retrieval quality without measuring your own workflow. The useful outcome is a readable, checked text artifact whose limitations and source are still visible.

    Free Tool
    Try PDF to Markdown

    Extract selectable text as Markdown, then check structure before notes or ingestion.

    Open Tool
    This conversion runs in your browser.

    Frequently asked questions

    Does browser Markdown conversion run OCR?

    No. It extracts an embedded text layer. For English scans, the separate free OCR tool can export recognized Markdown directly; it does not create a searchable PDF.

    What does the structured converter add for RAG?

    It offers Developer, Academic and RAG profiles plus JSONL chunks with identifiers and source-page references. It does not generate embeddings or create a vector database.

    Are images and table cells preserved?

    The structured extractor does not extract images and describes tables as reading-order text only. Check tables separately with a data-extraction workflow.


    Found this helpful?

    ❤️ Love ExactPDF? Share it with friends

    Related Articles
    AI PDF Summarizer That Never Uploads Your Files — Free in 2026

    Most AI PDF tools upload your documents to their servers. This free browser-based AI summarizer processes your PDF locally — no upload, no account, works offline.

    Free AI-Powered PDF Tools: OCR, Smart Redaction & Auto-Renaming

    Discover our suite of free AI tools that run entirely in your browser.

    Merge PDF Files: Order, Bookmarks & Quality

    Build a checked PDF packet with page selection, file-level bookmarks and clear quality choices. Learn the limits for covers, invoices and scanned chapters.