Republish a document on a website
Turn a data sheet, a set of rules or a manual into a web page that reads well on a smartphone.
Convert the text of a PDF into a structured HTML page with headings, paragraphs and tables. Processed locally in your browser, without uploading the document.
Your files are processed locally in your browser and are never sent to our servers.
Select the pages whose content should be converted to HTML. All pages are selected by default.
Drop your file here
Recommended size: up to 100 MB
PDF to HTML turns the text of a PDF into a structured web page: headings as h1 to h3 tags, paragraphs as p and tables as table. The file opens in any browser, can be pasted into a CMS, or serves as a base for republishing a document in a form that reads well on mobile and works with screen readers. The conversion runs in your browser, from the PDF’s selectable text.
The text of the chosen pages is read with its coordinates, grouped into lines and then paragraphs. A short line clearly larger than the body text becomes an h1, h2 or h3 heading; lines aligned on regular columns form a table whose first row is marked up as th.
The output is a complete, minimal HTML5 document: a <!DOCTYPE html> declaration, UTF-8 encoding, a viewport tag for mobiles, then an article element holding one section per page (data-page gives its number). Special characters such as < or & are escaped so the code never breaks.
No style sheet, image or font is carried over: you get the content structure, not the PDF layout. The lang attribute is set to und (undetermined); replace it with the document’s real language before publishing.
All pages appear selected in the grid.
Drop cover pages, tables of contents or repeated notices that would weigh down the web page.
document.html opens in a browser or in a code editor for further work.
Turn a data sheet, a set of rules or a manual into a web page that reads well on a smartphone.
Offer a structured HTML version, easier to navigate with a screen reader than an untagged PDF.
Paste the code into WordPress or another publishing tool while keeping headings and tables.
Excerpt from the document body: the page becomes a section, the large title an h1 and the table’s first row th header cells.
Input
Page with the title “Prices 2026”, one sentence and a Product / Price / Quantity tableResult
<section data-page="1">
<h1>Prices 2026</h1>
<p>Prices include VAT until 31 December.</p>
<table>
<tr><th>Product</th><th>Price</th><th>Quantity</th></tr>
<tr><td>Pen</td><td>€1.20</td><td>10</td></tr>
</table>
</section>No. The tool rebuilds the structure (headings, paragraphs, tables), not the exact position of elements, colours or fonts.
No, only the text is converted. Add images by hand, for instance after recovering them with Extract images from PDF.
Yes, it is a minimal, well-formed HTML5 document: every block is closed and special characters are escaped.
Without a text layer, the conversion fails with a message. Run the document through OCR PDF first to make it usable.
From character height: a short line larger than the body text becomes h1, h2 or h3 depending on the size difference.
No. The text is read and the HTML file is built in your browser, without uploading the PDF.
Related tools
Tools similar or complementary to this one.
Extract selectable text from a PDF and convert it to Markdown locally, without OCR or uploading the document.
Turn the text of a PDF into structured XML (pages, headings, paragraphs, tables), ready for automated processing.
Extract the tables in a PDF into a CSV file to open in Excel, LibreOffice or Google Sheets.
Learn how to visually edit a PDF in your browser: add text and annotations, insert images or signatures, apply watermarks and choose when a specialized tool is better.
Learn why covering text is not enough, how secure PDF redaction removes sensitive information and why sanitization matters before sharing.
Understand why local processing matters for sensitive PDFs, what it reduces, and which privacy precautions remain necessary before sharing a document.
Understand how PDF files are structured, the difference between native and scanned PDFs, and the right operations for merging, reorganizing, converting or completing documents.