Hack the Hydra

PDF to Markdown converter

Turn any PDF into clean Markdown for ChatGPT, Claude, Notion, Obsidian or your RAG pipeline. Runs in your browser: your file is never uploaded.

🔒 Private by design: the conversion runs in this browser tab. Nothing is uploaded.

PDF to Markdown converter is a free online tool by Hack the Hydra. Convert PDF to Markdown free in your browser. Keeps headings, paragraphs and lists. No upload, no sign-up. Ready for ChatGPT, Claude and RAG.

100% freeNo upload: runs in your browserNo sign-up

Key facts

Input formatsPDF with selectable text (scanned PDFs need OCR PDF)
Size limit100 MB per file (checked in the browser)
Where it runsIn your browser with pdf.js 4.10.38; the file is not uploaded (the library itself is downloaded from a CDN)
CostFree, no sign-up
OutputMarkdown text (headings, paragraphs, lists), copy or download as .md

How headings are found

The converter measures the font size of every line. The most common size is treated as body text; lines clearly larger become headings: about 1.6 times the body size gives #, 1.3 times ##, and 1.12 times ###. Bold text at body size stays normal text, so a PDF whose titles are only bold may come out without headings: add # by hand where needed. Lines of the same paragraph are joined and hyphenated words at line ends are repaired.

What to check

Lines are read from the top of each page to the bottom, which suits most reports, contracts and manuals. Pages with two or more columns side by side can come out mixed, so check them. Tables keep their text row by row but do not become Markdown tables; images are not included. If a file gives almost no text, it is a scan: the tool tells you, and OCR PDF can read it.

Example

A one-page PDF with a title, two section headings and body text. Larger, bold lines become headings and the line break inside the paragraph is joined.

Input

(one-page PDF)
Remote work policy                         <- 20 pt bold
Who can work remotely                      <- 14 pt bold
Employees can work from home up to three days a week,
after agreement with their manager.        <- 11 pt, two lines
Equipment                                  <- 14 pt bold
The company provides a laptop and a headset.

Output

# Remote work policy

### Who can work remotely

Employees can work from home up to three days a week, after agreement with their manager.

### Equipment

The company provides a laptop and a headset.

How to use

  1. Drop your file in the box above, or click to pick it.
  2. Wait a few seconds while it converts locally.
  3. Copy the result or download it.

FAQ

Is it really free?

Yes. The conversion runs on your own computer, so there is no server cost and no limit. The paid API is only for bulk and automation.

Are my files uploaded?

No. The PDF is read by pdf.js inside your browser tab. Nothing is sent to any server.

Does it work with scanned PDFs?

Scanned PDFs are images with no text layer. Use the Image to Text tool on the page images, or the API, which OCRs scanned pages automatically.

Why convert PDF to Markdown for AI?

LLMs read Markdown far better than raw PDF text: headings and lists keep the structure, which improves answers and RAG retrieval while using fewer tokens.

Does it keep tables?

The browser version keeps table text line by line. The API version detects ruled tables and outputs real Markdown tables.

Guides

Bulk conversion API

Need hundreds of PDFs, scanned PDFs (OCR) or real Markdown tables? Use the API: $3 per 1,000 PDFs, failed files free. Open the API →

curl -X POST "https://api.apify.com/v2/acts/extas_corp~pdf-to-markdown/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" -d '{"pdfUrls":[{"url":"https://arxiv.org/pdf/1706.03762"}]}'

Use it via API, with a free plan: Document to Markdown API (RapidAPI) · Apify

More free converters

OCR PDF: scanned PDF to textImage to text (OCR)Word (DOCX) to Markdown converterExcel & CSV to Markdown tablesHTML to Markdown converterPowerPoint (PPTX) to Markdown converterJSON to Markdown tablePDF to text converterExcel to JSON converterMarkdown to HTML converterMerge PDF filesSplit PDF: extract pagesRotate PDFJPG to PDF converterPDF to JPG converterImage converter: PNG, JPG, WebPCompress image: JPG and WebPQR code generatorWord counterCase converterJSON formatter and validatorBase64 encode and decodeURL encoder and decoderUUID v4 generatorStrong password generatorLorem ipsum generatorJSON to CSV converterRemove duplicate linesUnix timestamp converterJSON to YAML converterText diff checkerImage resizerPercentage calculatorAge calculatorHash generator (SHA-256, SHA-1, SHA-512)Color converter: HEX, RGB, HSLDays between dates calculatorYAML to JSON converterUnit converterJWT decoderBinary, hex, decimal and octal converterRoman numeral converterRegex testerCron expression explainerPDF to Markdown for ChatGPTPDF to Markdown for ClaudePDF to Markdown for RAG pipelinesPDF to Markdown for ObsidianPDF to Notion (via Markdown)Screenshot to textFrench OCR: image to textCSV to Markdown tableGoogle Docs to MarkdownJPG / JPEG to text (OCR)PNG to text (OCR)CSV to JSON converterPNG to JPG converterJPG to PNG converterWebP to PNG converter