GreyScript AI

PDF to Markdown Converter

Convert a PDF to clean Markdown for docs, RAG pipelines and AI prompts. Headings, paragraphs and lists are rebuilt from the PDF's text, and the file never leaves your browser.

1. Choose files
or paste rich text or HTML
Coming soon OCR for scanned PDFs and images · AI cleanup of messy layouts
2. Markdown output (editable)
PDF files store positioned text, not structure, so headings are inferred from font size and paragraphs from line spacing. Check headings and tables in long or multi-column PDFs. Token counts use a rough 4-characters-per-token estimate. Excel dates are converted when the cell is formatted as a date; formulas show their last saved value.

How PDF to Markdown conversion works

A PDF does not store headings or paragraphs. It stores pieces of text at positions on a page. The converter reads that text layer with pdf.js, groups the pieces into lines by their position, and then rebuilds structure from the layout:

What converts well, and what does not

Reports, papers, manuals and exported documents with selectable text convert well. Three kinds of PDF need care:

For a full walkthrough of preparing documents for retrieval, see how to convert PDF and Word files to Markdown for RAG.

Questions and answers

Is my PDF uploaded to a server?

No. The PDF is read and converted in your browser with pdf.js, which is hosted on this site. Nothing is sent to a server or stored.

Can it convert a scanned PDF?

Not yet. A scanned PDF contains images of text rather than text, which needs OCR. OCR for scanned PDFs is coming soon. The converter warns you when a PDF has very little extractable text.

Does it keep tables from the PDF?

Table text is kept, but as lines of text rather than a Markdown table, because PDFs do not record table cells. Converting the original DOCX or XLSX file keeps real tables.

Is there a page or size limit?

Files up to 50 MB are accepted and there is no page limit. Long PDFs take longer because every page is read in your browser.