Turn any PDF into a single, self-contained web page
Drop your PDF here
or click to browse · max 100 MB · up to 200 pages
Output Style
Convert PDF to HTML Online Free
Turn a PDF into one self-contained web page that keeps its layout, selectable text, images and links, or into clean reflowable HTML.
When you need a PDF as HTML
A PDF is built for printing. A web page is built to be read on any screen, linked to and indexed by search engines. Converting a PDF to HTML helps when you want to publish a brochure or a report on a site without asking people to download a file, when you want to reuse the text of a document in a blog or a content management system, or when a recipient cannot open a PDF but can open a web page. The result is a single .html file that carries its images with it, so you can open it, upload it or send it without a folder of extra files.
How it works
Your PDF is uploaded to our server and read with PyMuPDF, a PDF library. The page range you typed is checked, and the pages are converted one by one in the style you chose.
- Preserve layout: every page becomes a box of the same size. The text is placed at its original position as real text, on top of a picture of the page that has the text removed. Links stay over their text, including on rotated pages, and highlights, stamps and other annotations are kept.
- Reflowable text: the page structure is dropped. Headings, paragraphs and images follow each other in reading order and wrap to the screen width, so the page works at phone width without sideways scrolling.
In both styles the output holds no script. Only http, https and mailto links are kept, and the images are stored inside the file. The file is named after your PDF with an .html extension.
Worked example
You have a 24-page product catalogue and want to put pages 3 to 6 on your website. Upload the PDF, keep Preserve layout, type 3-6 in the page range box and click Convert to HTML. You receive one file named after the PDF with those four pages in order. Open it in a browser to check that the text can be selected and the links work, then upload it to your site. If you only wanted the text for a blog post, convert the same pages with Reflowable text and copy the headings and paragraphs.
Tips
- Pick the style by purpose. Layout for designed documents such as brochures, invoices and résumés. Reflowable for articles and anything you plan to edit.
- Convert long PDFs in parts. The page limit is 200, and a smaller range finishes faster.
- Scanned document? Run OCR PDF first so the HTML contains real text.
- Protected file? Remove the password with Unlock PDF first.
- Need pictures instead? PDF to Image turns pages into PNG, JPG or WebP.
- Reading on an e-reader? PDF to eBook makes EPUB, MOBI or AZW3.
Limits to know about
The upload limit is 100 MB, a conversion covers at most 200 pages, the HTML output can be at most 150 MB, and a conversion is stopped after 120 seconds. Very large embedded images are scaled down for the web, so the images in the HTML can have fewer pixels than the ones in the PDF. A range that does not match the document, such as a start page beyond the last page, is refused with a message that names the valid pages. Fonts are substituted, so do not expect identical letter shapes. The converter does not read scans: that is the job of OCR.
How to Use Convert a PDF to HTML
Upload a PDF of up to 100 MB. A PDF with a password has to be unlocked first with Unlock PDF.
Choose Preserve layout (the default) to keep the pages looking like the PDF, or Reflowable text for headings and paragraphs that fit any screen.
Optionally type a page range such as 1-3, 5, 8-10. Leave it empty to convert every page. A conversion covers at most 200 pages.
Click Convert to HTML. The button first shows the upload progress, then Converting.
Check the Conversion Complete screen. If the PDF looks scanned, it tells you the text is not selectable and points to OCR PDF.
Download the single .html file, named after your PDF, and open it in any browser.
Frequently Asked Questions
Will the HTML look exactly like my PDF?
With Preserve layout, each page keeps its size and the position of its text, images and links, and the text is real, selectable text over a picture of the page without its text. Fonts are replaced by similar web fonts (serif, sans-serif or monospace), so letter shapes can differ even where sizes and positions match.
What is the difference between the two output styles?
Preserve layout reproduces each page as it looks in the PDF, which suits sharing or publishing a document as it is. Reflowable text produces headings, paragraphs and images that adapt to the screen width, which suits reusing the content on a website, blog or CMS.
Can I convert a scanned PDF to HTML?
The conversion works, but a scanned page is a picture, so the text in the HTML is not selectable. When the tool detects this, the result screen tells you and links to OCR PDF. Run the file through OCR PDF first if you need real text, then convert the result.
Are images and links included?
Images are embedded in the HTML file as data, so there are no separate files to keep together. Links that point to http, https or mailto addresses stay clickable. Other kinds of link, and any script, are left out of the output.
How many pages can I convert at once?
Up to 200 pages per conversion. If your PDF is longer, enter a page range and convert it in parts. The upload limit is 100 MB, the output may not exceed 150 MB, and a conversion that takes longer than 120 seconds is stopped.
What happens if the server is busy?
The server converts only a small number of PDFs at the same time. If every place is taken, it answers that it is busy and asks you to try again in a minute. Nothing is lost: upload the file again shortly afterwards.
Why is my password-protected PDF refused?
The tool does not open PDFs protected with a password. It tells you to remove the password with Unlock PDF first, and then you convert the unlocked copy. You need to know the password to do that.
What happens to my file?
It is uploaded over an encrypted connection to our server, converted in memory and returned to you. We do not keep the PDF or the HTML after the response is sent. The site does load Google Analytics and advertising scripts, which receive page visits, not your documents.