Convert PDF to HTML
Turn a PDF into web-ready content. Today you get Markdown, which converts to clean HTML with any Markdown tool.
Your Markdown or JSON shows up here.
3 free pages a day, no sign-up.
HTML download is coming soon. For now you get Markdown, which any Markdown tool converts to HTML.
How it works
- Step 1Upload your PDF
- Step 2We read text, headings and tables
- Step 3Convert the Markdown to HTML
Why use this PDF to HTML converter
Many PDF to HTML tools recreate each page with absolute positions. Markdown gives you headings, paragraphs and tables that work on mobile and for search engines.
Scanned PDFs are read with OCR, so they become web content too.
Equations come back as LaTeX, which MathJax or KaTeX render on the web.
What people use it for
- Publishing a PDF report or manual as a web page
- Moving PDF documentation into a docs site or CMS
- Making PDF content accessible and readable on phones
- Turning PDF newsletters into blog posts
Models that do this well
The free tool picks one for you. With the API you choose, and can set fallbacks so a failed page is retried on the next model.
mistral/mistral-ocr6 credits / page2MarkerHosted version of the open-source Marker and Surya models. Strong on books and papers.datalab/marker14 credits / page3LlamaParseDocument parser built for RAG pipelines, with several quality tiers.llamaindex/llamaparse5 credits / page4Gemini FlashGeneral vision model with strong handwriting and layout understanding at a low price.google/gemini-flash3 credits / pageDo it with the API
Converting more than a few files? The same conversion is one request. Pick any model, or let auto choose.
curl https://api.ocrrouter.ai/v1/ocr \
-H "Authorization: Bearer $OCRROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "auto",
"file_url": "https://example.com/invoice.pdf",
"format": "markdown"
}'