MarkPrep

MarkPrep vs Pandoc

Start with the fact that decides most of this comparison: Pandoc cannot read PDF as input. Pandoc is the universal document converter, brilliant at translating between Markdown, HTML, LaTeX, DOCX, EPUB and dozens of other markup formats — but PDF is only an output for it, never a source. If you are holding a PDF or a scan, Pandoc simply cannot help you.

That is precisely MarkPrep's job. MarkPrep extracts clean Markdown from PDFs, scans, and Office documents in your browser, then prepares it for an LLM. So these two are not rivals so much as different stages of a pipeline — Pandoc for markup-to-markup conversion, MarkPrep for getting documents into Markdown and ready for retrieval.

Side by side

 MarkPrepPandoc
Reads PDF as inputYesNo — PDF is not an input format
Where it runsBrowser (WebAssembly), localCommand-line tool, local
Install requiredNone — open a web pagePandoc install
Best atPDF/scan/Office → Markdown + AI prepMarkup ↔ markup conversion
Token countingLive, per-modelNone
Chunking for RAGHeading-aware preview + JSONLNone
OCRLocal Tesseract, offlineNone
License / priceFree unlimited; Pro $4/moGPL, free

When to use which

Use Pandoc when your source is already structured text — converting Markdown to DOCX, HTML to LaTeX, EPUB to Markdown, and so on. Its breadth of supported formats is unmatched and it is the reference tool for markup-to-markup conversion. Just remember it cannot ingest a PDF.

Use MarkPrep when you need to turn a PDF, scan, or Office file into Markdown, especially for an LLM. It runs in your browser with no install, keeps files private, and adds a live token count, context-window verdict, heading-aware chunk preview, and JSONL export with heading-path and page metadata. Many teams use MarkPrep to extract, then Pandoc to convert onward.

Frequently asked questions

Can Pandoc convert a PDF to Markdown?+

No. Pandoc cannot accept PDF as an input format. It is a superb converter between markup and document formats — Markdown, HTML, LaTeX, DOCX, EPUB and many more — but PDF is an output target for Pandoc, not an input. If you need to turn a PDF into Markdown, Pandoc is not the tool. MarkPrep is built for exactly that.

So are MarkPrep and Pandoc competitors?+

Not really. They are complementary. Pandoc excels at converting between structured text formats, and MarkPrep excels at extracting Markdown from PDFs, scans, and Office documents and then preparing it for an LLM. Many workflows use both.

Does Pandoc count tokens or chunk for RAG?+

No. Pandoc is a format converter and stops there. It has no token counting, no context-window verdict, and no chunking. MarkPrep adds a live per-model token count, a context-window verdict, heading-aware chunk preview, and JSONL export with heading-path and page metadata.

When is Pandoc the better choice?+

When your source is already text-based markup — say converting Markdown to DOCX, or HTML to LaTeX — Pandoc is the gold standard and MarkPrep is not trying to replace it. Pandoc's breadth of format conversions is unmatched.

Do I need to install either one?+

Pandoc is a command-line tool you install locally. MarkPrep is a web page — nothing to install, and files never leave your device. For PDF-to-Markdown and AI prep, MarkPrep is the faster path; for markup-to-markup conversion, Pandoc is the reference tool.

Try it in your browser

Pandoc can't read PDFs — MarkPrep can. Convert a file and see the token count in seconds.