MarkPrep
pdf → markdown

PDF to Markdown

Convert a PDF to clean Markdown in your browser, then see its token count and chunks.

Drop files, paste, or click to browse
PDF, Word, Excel, PowerPoint, HTML, CSV, JSON, EPUB, images and more. Nothing is uploaded.
Live count of requests to other websites during conversion: 0To see for yourself, press F12, open the Network tab and convert a file.

MarkPrep is a free tool that converts a PDF document to Markdown online, inside your browser, so the file is never uploaded. It reads the PDF's text layer and rebuilds the structure as Markdown. Larger text becomes headings, and bullet or numbered lines become lists. Text set out in aligned columns becomes a table in GitHub Flavored Markdown (GFM), the form of Markdown used on GitHub.

Pages with no text layer, such as scans, go through OCR (optical character recognition) on your device. The OCR engine is the open-source Tesseract. It reads English only and is on by default. MarkPrep also removes page numbers and repeated headers and footers, and rejoins words hyphenated at line ends.

How to convert PDF to Markdown

  1. 1Drag a PDF into the converter above, or click it to pick a file.
  2. 2MarkPrep converts each page to Markdown. A page that is only an image goes through OCR.
  3. 3Check the Preview tab, then the Verify tab, which flags tables with uneven columns and pages where OCR was unsure.
  4. 4Copy the Markdown, or download it as a .md file. You can also export the chunks as JSONL, a file with one chunk per line. A RAG pipeline loads that file so an AI model can look up passages in your documents before it answers.

Format notes & gotchas

  • Two-column layouts are read across the full width of the page, line by line, so text from side-by-side columns can merge. Check papers and newsletters against the original.
  • Pictures, charts and diagrams are left out of the Markdown.
  • A table with merged cells or wrapped text inside cells can lose its shape. The Verify tab flags rows with a different number of columns.
  • Large PDFs convert faster on a computer than on a phone.

Related converters

Frequently asked questions

How can I convert PDF to Markdown for free?+

Use the converter above. It is free, with no page limit, no sign-up and no watermark.

Does it handle scanned PDFs?+

Yes. OCR is on by default and reads only pages with no text layer, so digital pages keep their original text. OCR reads English only, and the Verify tab lists pages where it was unsure.

Can I convert PDF to Markdown with tables?+

Yes, when the PDF has a text layer. Text set out in aligned columns becomes a Markdown table. An AI model or a RAG index then gets rows and columns instead of loose lines.

Can I convert PDF to Markdown with images?+

No. MarkPrep extracts the text and leaves images out, so the Markdown has no image links or image files. OCR runs only on pages with no text layer. So text inside a picture on a normal page is skipped, while a page that is one whole image is read.

Does it work on Mac, Windows and Linux?+

Yes. MarkPrep converts PDFs in your web browser on Mac (macOS), Windows or Linux, including Ubuntu, with nothing to install. It also runs in phone browsers on Android and iOS, where large PDFs take longer.

Can I convert PDF to Markdown offline?+

Yes, after one visit online. Your browser saves the converter's code as you use it. Formats you have already converted once then keep working with no internet connection.

Can I export a PDF as JSON?+

Yes, as JSONL chunks for retrieval. Each line holds one chunk's text with its source, heading path, page number and estimated token count.

Is my file uploaded anywhere?+

No. Conversion runs in your browser tab, and there is no upload step. Two optional features do send something, and each says so where you use it. URL to Markdown asks MarkPrep's server to fetch the public web page you name. AI enhance is a button that asks an AI model to tidy the structure of the Markdown. It sends the converted text to Anthropic with your own Anthropic API key, a personal access key you create on Anthropic's site and add in Settings.

How much does it cost?+

Conversion and the AI-Ready Pack are free and unlimited, because they run on your device. The AI-Ready Pack is the token count, the chunk preview and the JSONL export. MarkPrep Pro costs £19 once and adds tools that run outside the browser. Its command-line converter turns files into Markdown from a terminal, and it can watch a folder and convert each file you put in it. Its local MCP server lets AI apps such as Claude Code convert files on your computer. MCP is the standard those apps use to call outside tools.

Are the token counts accurate?+

Every count is an estimate, marked "approx" next to the number. OpenAI hasn't published the encoding its GPT-6 models use, so MarkPrep counts them with o200k_base, the encoding of OpenAI's earlier models. Anthropic and Google offer no tokenizer that runs in a browser. For Claude, MarkPrep counts about 2.5 characters as one token, and for Gemini about 4, the averages the two companies give. Real counts vary with the text, so leave some room below the model's limit.

MarkPrep Pro, £19 once

Pro lets you convert files to Markdown from a terminal, or from AI apps such as Claude Code, on your own computer.

See pricing