Convert PDF to HTML
Turn a PDF into web-ready content. Today you get Markdown, which converts to clean HTML with any Markdown tool.
Result
Your Markdown or JSON shows up here.
3 free pages a day, no sign-up.
How it works
- 1Upload your PDF
- 2We read text, headings and tables
- 3Convert the Markdown to HTML
Why use this PDF to HTML converter
Semantic, not positioned
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.
Scans work
Scanned PDFs are read with OCR, so they become web content too.
Maths stays editable
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.
1Mistral OCRFast document OCR that returns clean Markdown with tables and embedded images.
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"
}'Questions
OCR API by document and language
More free tools
PDF to MarkdownPDF to textImage to textHandwriting to textPDF to JSONJPG to textPNG to textPhoto to textPicture to textScreenshot to textGIF to textExtract text from imageCopy text from imageExtract text from PDFOCR PDFScanned PDF to textImage to LaTeXPDF to LaTeXImage to MarkdownImage to JSONImage to tablePDF to ExcelPDF to CSVImage to ExcelImage to WordPDF to Word (OCR)Make PDF searchableBank statement converterPDF to TXTPDF to Google DocsPDF to linkImage to linkVideo to linkMP3 to linkFile to link