How to convert a PDF to HTML
- Drop the PDF. Its text and layout positions are read in the browser.
- Keep the format on web page. Word, EPUB, Markdown and CSV are in the same picker.
- Download the .html. One file, styles included, ready to open or publish.
Semantic HTML, not a screenshot of a layout
The output is the kind of HTML you would write by hand: an
h1 for the title, headings where the PDF used larger type,
p for paragraphs, and ul for bulleted lists.
Paragraphs split across lines are rejoined and hyphenated words are put
back together, so the text reflows properly at any width.
Converters that reproduce the print layout exactly do it with absolutely positioned boxes, which produces a page that cannot reflow, cannot be read on a phone, and is invisible to search engines as structured content. For anything you intend to publish, this is the more useful output.
Where this is the right conversion
The common case is a document that has been living as a PDF and now needs to be a page: a report going on the company site, minutes going into an intranet, an old newsletter joining an archive that people should be able to search. HTML is also what accessibility work usually wants, because a screen reader does far better with real headings and paragraphs than with a PDF's positioned fragments, and it is what search engines index as structured content rather than a blob.
Two kinds of document convert badly. A scanned PDF contains no text at all, so OCR it first or the output will be an empty page. And a heavily designed layout, a brochure or an infographic, loses the design by definition: what survives is the words and their structure. For those, linking the PDF itself is often the better choice. After any conversion, skim the output once for heading levels; a PDF that used large bold body text for its headings can leave the converter guessing.
Related
Markdown for notes and static sites, Word for editing, EPUB for reading, and plain text when you only want the words.
Common uses for PDF to HTML
- Publish an old document: put a PDF-only page on the web where it can be found and read.
- Make something mobile-friendly: text that reflows instead of a page to pinch and pan.
- Move into a CMS: paste real headings and paragraphs rather than a text dump.
Frequently asked questions
What kind of HTML does it produce?
One self-contained file: real headings, paragraphs and lists, with a small stylesheet inlined so it reads well in a browser straight away. No external files, no scripts, nothing to host alongside it.
Will the layout match the PDF?
No. It produces a readable web page, not a reproduction of the print layout. A PDF's layout is expressed as coordinates; turning that into a page that also works on a phone means giving up the fixed positions, which is the right trade for the web.
Can I use it on a website?
Yes. The output is plain semantic HTML you can paste into a CMS or serve as-is. The inlined styles are easy to delete if your site has its own.
Are images included?
No, the conversion covers text. To get the pictures out of a PDF, export the pages with PDF to images.
Is my document uploaded?
No. The PDF is read in this tab and the HTML is built here too.