How the structure is detected
The converter first measures the document: the most common font size across a page is its body size. Then each line is classified relative to it:
| Line | Becomes | Rule of thumb |
|---|---|---|
| Much larger than body text (≈1.6× or more) | <h1> | Titles and chapter heads |
| Clearly larger (≈1.25× or more) | <h2> | Section headings |
| Starts with •, -, * or a number | <li> in a <ul> | Bullet and list lines |
| Everything else | <p> | Consecutive lines merge into one paragraph |
Wrapped lines are rejoined into single paragraphs (a word split across lines by hyphenation is rejoined too), and special characters are properly escaped, so the output is valid HTML from the first line.
Honest limits
- Layout is approximated. Multi-column pages read down one column then the next in the PDF's stored order, which is usually — not always — reading order. Sidebars and pull-quotes join the main flow.
- Images are not embedded. Pictures in the PDF are not carried into the HTML; the text notes nothing in their place — re-add images yourself where they matter. (Extract Images from PDF can pull them out for you.)
- Tables become lines of text, not <table> markup. For tabular data, use PDF to Excel or Extract Tables.
- Scanned PDFs have no text layer — there is nothing to convert. OCR them first with OCR PDF.
- No styling is included. The document is semantic and unstyled by design; fonts and colours from the PDF are not reproduced.
What to do with the HTML
- Publish it — open the file in a browser to check it, then put it on your site or paste the body into your CMS.
- Add a style — a few lines of CSS (a readable font, a max-width, line-height around 1.6) turn the plain markup into a comfortable article.
- Restore the images — extract them with Extract Images from PDF and insert <img> tags where they belong.
- Check the heading order — if the PDF used big text decoratively, an h1 may need demoting; semantic order matters for accessibility and SEO.
- Set the title — the generated <title> is the file name; change it to the document's real title before publishing.
HTML vs Markdown vs Word output
| Format | Best destination | Structure kept |
|---|---|---|
| HTML (this tool) | Websites, CMSs, email templates | Headings, paragraphs, lists |
| Markdown | Blogs, docs, GitHub, note apps | Headings, paragraphs, lists, bold |
| Word (.docx) | Editing in Word or Google Docs | Text with basic structure |
Common uses
- Republishing PDF articles as web pages so search engines can index them.
- Moving content into a CMS without retyping it.
- Email content — a clean HTML body as the starting point for a newsletter.
- Accessibility remediation — real headings and paragraphs are what screen readers need.
- E-book and documentation pipelines — HTML is the interchange format most tools accept.
Privacy: nothing is uploaded
The PDF is read and the HTML is written entirely in your browser. Drafts, unreleased reports and personal documents never leave your device, and nothing is stored on any server.
Troubleshooting
- The HTML is empty — the PDF is a scan with no text layer. OCR PDF first, then convert the searchable result.
- Everything is one paragraph — the PDF may store text in tiny fragments (some design tools do). The converter merges what it can; heavy cases need manual tidying.
- A heading came out as a paragraph — its font size was too close to body size to call. Promote it by hand in the HTML — a one-word edit.
- Columns are interleaved — the PDF stored the columns out of order. This is a known limit of text-layer conversion; see the limits section.
- Protected PDF — remove the password first if it is yours, then convert.