PDF to HTML
Turn a PDF into a web page you can put on a website, open on any phone or paste into a content system. Choose a reflowing page, where headings, paragraphs, lists and tables adapt to the screen, or a fixed layout that keeps every line where it sits on the PDF page. Pictures are stored inside the one .html file. Scanned pages can be read with OCR.
or drop a file here · PDF · up to 200 MB
Processed on your device. Your files are not uploaded.
About PDF to HTML
A PDF is built for paper: fixed pages, small print on a phone, and text that search engines and screen readers handle less well than a normal web page. Converting it to HTML lets you publish the content on a site, send it as a page that opens in any browser, or start a web version you can edit.
Two kinds of page
Reflowing rebuilds the document’s structure. Larger text becomes headings, lines of a paragraph are joined back together, bullets and numbers become proper lists, aligned columns become an HTML table, and pictures appear where they stood in the text. Running headers, footers and page numbers can be left out. The result wraps to any screen width and is easy to copy into a blog or content system.
Fixed layout keeps the look of each page. Every line is placed at the same distance from the top and left of the page as in the PDF, pictures sit in their spots, and each PDF page becomes a white sheet on a grey background. The text stays real text that can be selected and searched. Because standard fonts stand in for the PDF’s fonts, a line can be slightly wider or narrower than the original.
Checking and downloading
The preview shows the actual file in a locked-down frame where nothing can run or load from the internet. Switch to the code view to see or copy the markup. The download is one .html file; pictures are embedded inside it, which makes it larger but means nothing gets lost when you move or email it.
What to expect
Links, form fields, footnote numbering, colours of shapes, drawn lines and shading are not carried over. On pages with unusual styling a heading may come out as a paragraph, or the other way round. Scanned pages have no text until OCR reads them, and recognition can misread words, so proofread before publishing. Up to 300 pages can be converted at once. The PDF is processed on your device and is never uploaded.
How to use PDF to HTML
- Choose the PDF (optionally type the pages you want).
- Pick reflowing or fixed layout and whether to include pictures. For a scanned PDF, tick OCR and the language.
- Select Convert to HTML, look at the web page preview or the code, then download the .html file or copy the code.
Privacy: how it works
Your PDF is read and converted on your own device by your browser. It is not uploaded. If you use OCR for scanned pages, the OCR engine and language data are downloaded once from cdn.jsdelivr.net.
Frequently asked questions
Reflowing or fixed layout: which should I choose?
Reflowing suits reading on phones and pasting into a website or blog: text wraps to the screen and headings become real headings. Fixed layout suits forms, posters and pages where position matters; it looks like the PDF but needs horizontal scrolling on narrow screens.
Is the HTML file safe to publish?
The file contains only HTML and a short style sheet: no scripts, no tracking and no links to other servers. Pictures are embedded in the file itself. All text from the PDF is escaped, so it cannot turn into code.
What is not kept?
Links, form fields, footnote numbering, drawn lines and shading, and the PDF’s own fonts (standard fonts are used instead). Check the preview; headings and tables are worked out from text sizes and positions and may need a small fix.