AgentContextKit
Home / PDF & Docs to Markdown

PDF & Docs to Markdown Converter

100% Local Processing · 0 Bytes Uploaded

Extract clean Markdown from PDFs, HTML, CSV, or JSON offline using our self-hosted PDF.js worker, count tokens, and split text into RAG-ready JSON chunks.

Drop a PDF, HTML, CSV, or JSON file here

or click to browse — processed strictly inside your browser memory

PDF Extraction Options

Ready. Zero network uploads.

RAG Chunk Splitter

Markdown Output

Frequently Asked Questions

Are my PDFs or internal documents ever uploaded to a server?
No. Extraction runs completely inside your browser via a self-hosted PDF.js Web Worker (/pdf.worker.min.mjs). Zero file bytes leave your device.
How does PDF heading inference work?
The converter measures the median body font size across your PDF and promotes significantly larger runs to # H1, ## H2, and ### H3 headings while preserving lists and fixing line-wrap hyphens.
Why split Markdown into RAG chunks with token overlap?
Vector embeddings and LLM prompts retrieve cleaner answers when documents are split at paragraph boundaries (512–1024 tokens) with ~100-token overlap so context across boundaries is preserved.

See Converting PDFs to Clean Markdown for RAG & LLM Context Windows for chunking benchmarks.